{
	"info": {
		"_postman_id": "09bbf13d-7689-4358-9b88-076db7b80a8f",
		"name": "Authentication",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "24717466"
	},
	"item": [
		{
			"name": "get token",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "",
						"value": "",
						"type": "default",
						"disabled": true
					},
					{
						"key": "",
						"value": "",
						"type": "default",
						"disabled": true
					},
					{
						"key": "",
						"value": "",
						"type": "default",
						"disabled": true
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "apikey",
							"value": "{{API_key}}",
							"type": "default"
						},
						{
							"key": "grant_type",
							"value": "api_key",
							"type": "default"
						},
						{
							"key": "client_id",
							"value": "IDP",
							"type": "default"
						}
					]
				},
				"url": {
					"raw": "https://authenticate.foundation.api.oneatlas.airbus.com/auth/realms/IDP/protocol/openid-connect/token",
					"protocol": "https",
					"host": [
						"authenticate",
						"foundation",
						"api",
						"oneatlas",
						"airbus",
						"com"
					],
					"path": [
						"auth",
						"realms",
						"IDP",
						"protocol",
						"openid-connect",
						"token"
					],
					"query": [
						{
							"key": "apikey",
							"value": "{{API_key}}",
							"disabled": true
						},
						{
							"key": "grant_type",
							"value": "api_key",
							"disabled": true
						},
						{
							"key": "client_id",
							"value": "IDP",
							"disabled": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "get token for key management",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "",
						"value": "",
						"type": "default",
						"disabled": true
					},
					{
						"key": "",
						"value": "",
						"type": "default",
						"disabled": true
					},
					{
						"key": "",
						"value": "",
						"type": "default",
						"disabled": true
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "apikey",
							"value": "{{API_key}}",
							"type": "default"
						},
						{
							"key": "grant_type",
							"value": "api_key",
							"type": "default"
						},
						{
							"key": "client_id",
							"value": "AAA",
							"type": "default"
						}
					]
				},
				"url": {
					"raw": "https://authenticate.foundation.api.oneatlas.airbus.com/auth/realms/IDP/protocol/openid-connect/token",
					"protocol": "https",
					"host": [
						"authenticate",
						"foundation",
						"api",
						"oneatlas",
						"airbus",
						"com"
					],
					"path": [
						"auth",
						"realms",
						"IDP",
						"protocol",
						"openid-connect",
						"token"
					],
					"query": [
						{
							"key": "apikey",
							"value": "{{API_key}}",
							"disabled": true
						},
						{
							"key": "grant_type",
							"value": "api_key",
							"disabled": true
						},
						{
							"key": "client_id",
							"value": "IDP",
							"disabled": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "delete api key",
			"request": {
				"method": "DELETE",
				"header": [
					{
						"key": "Authorization",
						"value": "{{key_token}}",
						"type": "default"
					},
					{
						"key": "",
						"value": "",
						"type": "default",
						"disabled": true
					},
					{
						"key": "",
						"value": "",
						"type": "default",
						"disabled": true
					}
				],
				"url": {
					"raw": "https://authenticate.foundation.api.oneatlas.airbus.com/api/v1/apikeys/962cbb13-7a3a-4bad-b9e9-e8e8abbbd46a",
					"protocol": "https",
					"host": [
						"authenticate",
						"foundation",
						"api",
						"oneatlas",
						"airbus",
						"com"
					],
					"path": [
						"api",
						"v1",
						"apikeys",
						"962cbb13-7a3a-4bad-b9e9-e8e8abbbd46a"
					],
					"query": [
						{
							"key": "apikey",
							"value": "{{API_key}}",
							"disabled": true
						},
						{
							"key": "grant_type",
							"value": "api_key",
							"disabled": true
						},
						{
							"key": "client_id",
							"value": "IDP",
							"disabled": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "create additional api key",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "{{key_token}}",
						"type": "default"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{ \"description\": \"New API key for GIS tools\" }"
				},
				"url": {
					"raw": "https://authenticate.foundation.api.oneatlas.airbus.com/api/v1/apikeys",
					"protocol": "https",
					"host": [
						"authenticate",
						"foundation",
						"api",
						"oneatlas",
						"airbus",
						"com"
					],
					"path": [
						"api",
						"v1",
						"apikeys"
					]
				}
			},
			"response": []
		},
		{
			"name": "get api keys",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "{{key_token}}",
						"type": "default"
					}
				],
				"url": {
					"raw": "https://authenticate.foundation.api.oneatlas.airbus.com/api/v1/apikeys",
					"protocol": "https",
					"host": [
						"authenticate",
						"foundation",
						"api",
						"oneatlas",
						"airbus",
						"com"
					],
					"path": [
						"api",
						"v1",
						"apikeys"
					]
				}
			},
			"response": []
		}
	]
}