{
	"info": {
		"name": "Auth",
		"_postman_id": "12894cd9-fbae-1c4a-e6eb-70c61b46fa58",
		"description": "",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Tenants",
			"description": "",
			"item": [
				{
					"name": "Find Tenants",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"disabled": true
							}
						],
						"body": {},
						"url": {
							"raw": "{{auth}}/tenants",
							"host": [
								"{{auth}}"
							],
							"path": [
								"tenants"
							],
							"query": [
								{
									"key": "active",
									"value": "true",
									"equals": true,
									"disabled": true
								}
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Get Tenant By Id",
					"request": {
						"method": "GET",
						"header": [],
						"body": {},
						"url": {
							"raw": "{{auth}}/tenants/21bbc2d6-0986-43c7-8691-2b59dc3282b8",
							"host": [
								"{{auth}}"
							],
							"path": [
								"tenants",
								"21bbc2d6-0986-43c7-8691-2b59dc3282b8"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Get Tenant By Label",
					"request": {
						"method": "GET",
						"header": [],
						"body": {},
						"url": {
							"raw": "{{auth}}/tenants/label/Best-co",
							"host": [
								"{{auth}}"
							],
							"path": [
								"tenants",
								"label",
								"Best-co"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Create Tenant",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"name\": \"My Best Tenant Company\",\n  \"label\": \"Best-co\",\n  \"auth0ConnectionId\": \"conId_1232323\",\n  \"identityProviderName\": \"BestCo, Google Account\"\n}"
						},
						"url": {
							"raw": "{{auth}}/tenants",
							"host": [
								"{{auth}}"
							],
							"path": [
								"tenants"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Activate/Deactivate Tenant",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {},
						"url": {
							"raw": "{{auth}}/tenants/21bbc2d6-0986-43c7-8691-2b59dc3282b8/activate",
							"host": [
								"{{auth}}"
							],
							"path": [
								"tenants",
								"21bbc2d6-0986-43c7-8691-2b59dc3282b8",
								"activate"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Add Idnetity Provider to Identity",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"auth0ConnectionId\": \"con_99888\",\n  \"identityProviderName\": \"BestCo User Database\"\n}"
						},
						"url": {
							"raw": "{{auth}}/tenants/21bbc2d6-0986-43c7-8691-2b59dc3282b8/identity-providers",
							"host": [
								"{{auth}}"
							],
							"path": [
								"tenants",
								"21bbc2d6-0986-43c7-8691-2b59dc3282b8",
								"identity-providers"
							]
						},
						"description": ""
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "a6a99b26-ac63-4c51-8b91-031cd64c30d5",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "7c63a5e2-21aa-40e0-accc-66d0e6fef0d3",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "Identities",
			"description": "",
			"item": [
				{
					"name": "Find Identities",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"disabled": true
							}
						],
						"body": {},
						"url": {
							"raw": "{{auth}}/identities?active=true&tenantId=21bbc2d6-0986-43c7-8691-2b59dc3282b8",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identities"
							],
							"query": [
								{
									"key": "active",
									"value": "true",
									"equals": true
								},
								{
									"key": "tenantId",
									"value": "21bbc2d6-0986-43c7-8691-2b59dc3282b8",
									"equals": true
								}
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Get Identity By Id",
					"request": {
						"method": "GET",
						"header": [],
						"body": {},
						"url": {
							"raw": "{{auth}}/identities/05ef9a2f-aa5e-4d36-9e90-ea7aec85e225",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identities",
								"05ef9a2f-aa5e-4d36-9e90-ea7aec85e225"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Create Identity",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"name\": \"Russell Allen (NF.io)\",\n  \"tenantId\": \"21bbc2d6-0986-43c7-8691-2b59dc3282b8\"\n}"
						},
						"url": {
							"raw": "{{auth}}/identities",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identities"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Activate/Deactivate Identity",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {},
						"url": {
							"raw": "{{auth}}/identities/05ef9a2f-aa5e-4d36-9e90-ea7aec85e225/activate",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identities",
								"05ef9a2f-aa5e-4d36-9e90-ea7aec85e225",
								"activate"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Map Auth0 User to Identity",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"auth0UserId\": \"google|111222333444455\",\n  \"identityProviderId\": \"6494ae5f-8972-4625-b2ca-d1529125aaa1\"\n}"
						},
						"url": {
							"raw": "{{auth}}/identities/05ef9a2f-aa5e-4d36-9e90-ea7aec85e225/mapping",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identities",
								"05ef9a2f-aa5e-4d36-9e90-ea7aec85e225",
								"mapping"
							]
						},
						"description": ""
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "a6a99b26-ac63-4c51-8b91-031cd64c30d5",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "7c63a5e2-21aa-40e0-accc-66d0e6fef0d3",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "Invitations",
			"description": "",
			"item": [
				{
					"name": "Find Invitations",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"disabled": true
							}
						],
						"body": {},
						"url": {
							"raw": "{{auth}}/invitations?toTenantId=21bbc2d6-0986-43c7-8691-2b59dc3282b8",
							"host": [
								"{{auth}}"
							],
							"path": [
								"invitations"
							],
							"query": [
								{
									"key": "fromIdentityId",
									"value": "33d4480f-f40d-49df-94d9-ea210ae04924",
									"equals": true,
									"disabled": true
								},
								{
									"key": "toTenantId",
									"value": "21bbc2d6-0986-43c7-8691-2b59dc3282b8",
									"equals": true
								}
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Get Invitation By ID",
					"request": {
						"method": "GET",
						"header": [],
						"body": {},
						"url": {
							"raw": "{{auth}}/invitations/75690163-7b5b-4164-aaa7-7a2a134ff633",
							"host": [
								"{{auth}}"
							],
							"path": [
								"invitations",
								"75690163-7b5b-4164-aaa7-7a2a134ff633"
							],
							"query": [
								{
									"key": "active",
									"value": "true",
									"equals": true,
									"disabled": true
								}
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Get Invitation By Key",
					"request": {
						"method": "GET",
						"header": [],
						"body": {},
						"url": {
							"raw": "{{auth}}/invitations/key/1DYv3aRyTb6QhUAimxkXPvrARpaTBS1Enmoi",
							"host": [
								"{{auth}}"
							],
							"path": [
								"invitations",
								"key",
								"1DYv3aRyTb6QhUAimxkXPvrARpaTBS1Enmoi"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Create Invitation",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"invitationUrl\": \"https://google.com\",\n  \"invitedEmailAddress\": \"Russell.Allen@netfoundry.io\",\n  \"toTenantId\": \"21bbc2d6-0986-43c7-8691-2b59dc3282b8\",\n  \"targetIdentityId\": \"05ef9a2f-aa5e-4d36-9e90-ea7aec85e225\"\n}"
						},
						"url": {
							"raw": "{{auth}}/invitations",
							"host": [
								"{{auth}}"
							],
							"path": [
								"invitations"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Accept/Decline Invitation",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {},
						"url": {
							"raw": "{{auth}}/invitations/MR6slWoOHS6Wm8qKoacskbW9evyJAVXiSoeC/decline",
							"host": [
								"{{auth}}"
							],
							"path": [
								"invitations",
								"MR6slWoOHS6Wm8qKoacskbW9evyJAVXiSoeC",
								"decline"
							],
							"query": [
								{
									"key": "active",
									"value": "true",
									"equals": true,
									"disabled": true
								}
							]
						},
						"description": ""
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "a6a99b26-ac63-4c51-8b91-031cd64c30d5",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "7c63a5e2-21aa-40e0-accc-66d0e6fef0d3",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "Edge Permissions",
			"description": "",
			"item": [
				{
					"name": "Find Edge Permissions",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"disabled": true
							}
						],
						"body": {},
						"url": {
							"raw": "{{auth}}/edge-permissions",
							"host": [
								"{{auth}}"
							],
							"path": [
								"edge-permissions"
							],
							"query": [
								{
									"key": "identityId",
									"value": "05ef9a2f-aa5e-4d36-9e90-ea7aec85e225",
									"equals": true,
									"disabled": true
								},
								{
									"key": "serviceId",
									"value": "33d4480f-f40d-49df-94d9-ea210ae04924",
									"equals": true,
									"disabled": true
								},
								{
									"key": "organizationId",
									"value": "33d4480f-f40d-49df-94d9-ea210ae04924",
									"equals": true,
									"disabled": true
								},
								{
									"key": "networkId",
									"value": "33d4480f-f40d-49df-94d9-ea210ae04924",
									"equals": true,
									"disabled": true
								},
								{
									"key": "appWanId",
									"value": "33d4480f-f40d-49df-94d9-ea210ae04924",
									"equals": true,
									"disabled": true
								}
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Get Edge Permission By Id",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"disabled": true
							}
						],
						"body": {},
						"url": {
							"raw": "{{auth}}/edge-permissions/75e3ef2b-cb52-4809-b4d9-31b921cb1bd5",
							"host": [
								"{{auth}}"
							],
							"path": [
								"edge-permissions",
								"75e3ef2b-cb52-4809-b4d9-31b921cb1bd5"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Create Edge Permission",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"identityId\": \"33d4480f-f40d-49df-94d9-ea210ae04924\",\n  \"serviceId\": \"33d4480f-f40d-49df-94d9-ea210ae04924\",\n  \"organizationId\": \"33d4480f-f40d-49df-94d9-ea210ae04924\",\n  \"networkId\": null,\n  \"appWanId\": null\n}"
						},
						"url": {
							"raw": "{{auth}}/edge-permissions",
							"host": [
								"{{auth}}"
							],
							"path": [
								"edge-permissions"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Delete Edge Permission",
					"request": {
						"method": "DELETE",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "{{auth}}/edge-permissions/75e3ef2b-cb52-4809-b4d9-31b921cb1bd5",
							"host": [
								"{{auth}}"
							],
							"path": [
								"edge-permissions",
								"75e3ef2b-cb52-4809-b4d9-31b921cb1bd5"
							]
						},
						"description": ""
					},
					"response": []
				}
			]
		},
		{
			"name": "Identity Permissions",
			"description": "",
			"item": [
				{
					"name": "Find Identity Permissions",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"disabled": true
							}
						],
						"body": {},
						"url": {
							"raw": "{{auth}}/identity-permissions",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identity-permissions"
							],
							"query": [
								{
									"key": "identityId",
									"value": "33d4480f-f40d-49df-94d9-ea210ae04924",
									"equals": true,
									"disabled": true
								},
								{
									"key": "serviceId",
									"value": "33d4480f-f40d-49df-94d9-ea210ae04924",
									"equals": true,
									"disabled": true
								},
								{
									"key": "tenantId",
									"value": "33d4480f-f40d-49df-94d9-ea210ae04924",
									"equals": true,
									"disabled": true
								}
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Get Identity Permission By Id",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"disabled": true
							}
						],
						"body": {},
						"url": {
							"raw": "{{auth}}/identity-permissions/33d4480f-f40d-49df-94d9-ea210ae04924",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identity-permissions",
								"33d4480f-f40d-49df-94d9-ea210ae04924"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Create Identity Permission",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"identityId\": \"33d4480f-f40d-49df-94d9-ea210ae04924\",\n  \"serviceId\": \"33d4480f-f40d-49df-94d9-ea210ae04924\",\n  \"tenantId\": \"33d4480f-f40d-49df-94d9-ea210ae04924\"\n}"
						},
						"url": {
							"raw": "{{auth}}/identity-permissions",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identity-permissions"
							]
						},
						"description": ""
					},
					"response": []
				},
				{
					"name": "Delete Identity Permission",
					"request": {
						"method": "DELETE",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "{{auth}}/identity-permissions/33d4480f-f40d-49df-94d9-ea210ae04924",
							"host": [
								"{{auth}}"
							],
							"path": [
								"identity-permissions",
								"33d4480f-f40d-49df-94d9-ea210ae04924"
							]
						},
						"description": ""
					},
					"response": []
				}
			]
		}
	]
}