{
	"info": {
		"_postman_id": "11c8af85-9029-0328-ade3-65477ac8ad8a",
		"name": "SAML Assertion v1 - OneLogin API",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Generate SAML Assertion",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "Authorization",
						"value": "bearer:{{access_token}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"username_or_email\": \"{{username_or_email}}\",\n    \"password\": \"{{password}}\",\n    \"app_id\": \"{{app_id}}\",\n    \"subdomain\":\"{{subdomain}}\"\n}"
				},
				"url": {
					"raw": "https://{{api-domain}}/api/1/saml_assertion",
					"protocol": "https",
					"host": [
						"{{api-domain}}"
					],
					"path": [
						"api",
						"1",
						"saml_assertion"
					]
				}
			},
			"response": []
		},
		{
			"name": "Verify Factor SAML",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "bearer:{{access_token}}"
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"app_id\": \"{{app_id}}\",\n    \"otp_token\": \"{{otp_token}}\",\n    \"device_id\": \"{{device_id}}\",\n    \"state_token\": \"{{state_token}}\"\n}"
				},
				"url": {
					"raw": "https://{{api-domain}}/api/1/saml_assertion/verify_factor",
					"protocol": "https",
					"host": [
						"{{api-domain}}"
					],
					"path": [
						"api",
						"1",
						"saml_assertion",
						"verify_factor"
					]
				}
			},
			"response": []
		}
	]
}