{
	"info": {
		"_postman_id": "6acb2533-1158-4998-bcf3-46a41ea07954",
		"name": "Armor Okta API SSO",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Primary Authentication to get session token",
			"protocolProfileBehavior": {
				"disabledSystemHeaders": {
					"accept": true
				}
			},
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"username\":\"{userName}\",\r\n    \"password\":\"{password}\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://auth.armor.com/api/v1/authn",
					"protocol": "https",
					"host": [
						"auth",
						"armor",
						"com"
					],
					"path": [
						"api",
						"v1",
						"authn"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get the Code from Session token",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://auth.armor.com/oauth2/default/v1/authorize?client_id=0oab141ypCQYHHQgI696&response_mode=form_post&sessionToken={SessiionToken From Previous endpoint}&response_type=id_token&scope=openid email profile&redirect_uri=https://amp.armor.com&state=state-296bc9a0-a2a2-4a57-be1a-d0e2fd9bb601&nonce=g5ly497e8ps&prompt=none",
					"protocol": "https",
					"host": [
						"auth",
						"armor",
						"com"
					],
					"path": [
						"oauth2",
						"default",
						"v1",
						"authorize"
					],
					"query": [
						{
							"key": "client_id",
							"value": "0oab141ypCQYHHQgI696"
						},
						{
							"key": "response_mode",
							"value": "form_post"
						},
						{
							"key": "sessionToken",
							"value": "{SessiionToken From Previous endpoint}"
						},
						{
							"key": "response_type",
							"value": "id_token"
						},
						{
							"key": "scope",
							"value": "openid email profile"
						},
						{
							"key": "redirect_uri",
							"value": "https://amp.armor.com"
						},
						{
							"key": "state",
							"value": "state-296bc9a0-a2a2-4a57-be1a-d0e2fd9bb601"
						},
						{
							"key": "nonce",
							"value": "g5ly497e8ps"
						},
						{
							"key": "prompt",
							"value": "none"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Example APi call (Me)",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {id_token_from previous endpoint}",
						"type": "text"
					},
					{
						"key": "x-account-context",
						"value": "{account_id}",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://api.armor.com/me",
					"protocol": "https",
					"host": [
						"api",
						"armor",
						"com"
					],
					"path": [
						"me"
					]
				}
			},
			"response": []
		}
	]
}