{ "info": { "_postman_id": "9a060f8d-1bef-4887-a2e6-0a5a955b7996", "name": "Privilege runtime intetration", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Get SERVICE TOKEN for privilege API", "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "grant_type", "value": "client_credentials", "type": "text" }, { "key": "scope", "value": "privilege_api", "type": "text" }, { "key": "client_id", "value": "6075a779-713a-4d6f-9a48-ccce85c4bcbc", "type": "text" }, { "key": "client_secret", "value": "d8qXriaUHgH2BpikD/jsEChKDKUKCKq5aAnAKqnwlE10OCEr8l7skptyCc7FZOGURorMNTAFuFZmyhAxYDHqDQ==", "type": "text" } ] }, "url": { "raw": "https://pp.netseidbroker.dk/op/connect/token", "protocol": "https", "host": [ "pp", "netseidbroker", "dk" ], "path": [ "op", "connect", "token" ] }, "description": "1: Get service token for organization DK00000002 API client\r\n2: Copy access_token over as Authorization Bearer header for the other calls" }, "response": [] }, { "name": "Get runtime privileges using SERVICE TOKEN", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjA0ODA1OEJCNTlGNEQzMDA3MDQ1ODk2RkQ0ODhDRTgxRjRFQjQ5MjMiLCJ0eXAiOiJhdCtqd3QifQ.eyJpc3MiOiJodHRwczovL3BwLm5ldHNlaWRicm9rZXIuZGsvb3AiLCJuYmYiOjE2ODMxNDQyMzUsImlhdCI6MTY4MzE0NDIzNSwiZXhwIjoxNjgzMTQ3ODM1LCJhdWQiOiJodHRwczovL25ldHNlaWRicm9rZXIuZGsvcHJpdmlsZWdlYXBpIiwic2NvcGUiOlsicHJpdmlsZWdlX2FwaSJdLCJjbGllbnRfaWQiOiI2MDc1YTc3OS03MTNhLTRkNmYtOWE0OC1jY2NlODVjNGJjYmMiLCJjbGllbnRfb3JnX2lkIjoiYWZhMDA5ZGUtZDUyMy00MzdjLThjYzAtOWI0MjA4ZDdmMmM2IiwiY2xpZW50X3NlcnZpY2VfcHJvdmlkZXJfaWQiOiJiYTU3NWI2Ny1mZjU3LTQ2MDQtYTJkMi0yMzZmMzJmZTAwYmQiLCJjbGllbnRfc2VydmljZV9pZCI6IjNlYjQzMWY0LTZmOWEtNDVmZS04MjM5LTJmNWJlMDE0YzQ1NCIsImNsaWVudF9hdF90eXBlIjoic2VydmljZV90b2tlbiIsImp0aSI6IkM0NDdDNTc0OEE5Q0NBQTk1OTAyQkJDNUQ2RUM3QjE5In0.GoCHBpcrAZR6QTb99OExqCOmZl2Y3A6pqWm9WLnrXFIC2LWDeFQd4Y-7N9h36umm1JnQVuAXdFpTcBrzVXljL-x2dQAtugsm40boXwtQmcVDU13Z62HlyiXavLed9tDOo1ddDHDcfHLvfeOBtq4yrGo-ndmzhlOTrgY1MyS0KVOFjEpVz97k3qftaVJ_DamgOYKEnibdcE6apnznn4wG8DwzStsIlP7ER2cDum4h-LYPqfvlQOKtCM4ale3snTzOHnWGw6O6Tq0n_mlnBd6iMrrfXzodZwBjgxHLX5vVtYq6GJ83JtrZI5VuMY4fPR7yyc5Rp6W9m0oRGeTuHS4kUA", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "text/plain" } ], "url": { "raw": "https://pp.netseidbroker.dk/privileges-api//api/v1/organizations/DK00000002/assignedIdentityPrivileges/mitid/06087080-dab1-4015-bf88-a4b4d6486537/runtime", "protocol": "https", "host": [ "pp", "netseidbroker", "dk" ], "path": [ "privileges-api", "", "api", "v1", "organizations", "DK00000002", "assignedIdentityPrivileges", "mitid", "06087080-dab1-4015-bf88-a4b4d6486537", "runtime" ] }, "description": "A http GET operation that retrieves the privilege assignments from the identity.

Requires the following privileges to execute the operation:

AssignIdentityPrivilegesRead" }, "response": [ { "name": "No identity privileges found", "originalRequest": { "method": "GET", "header": [ { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/api/v1/organizations/:organizationTin/assignedIdentityPrivileges/:idp/:idpIdentityId", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "organizations", ":organizationTin", "assignedIdentityPrivileges", ":idp", ":idpIdentityId" ], "variable": [ { "key": "organizationTin", "value": "", "description": "(Required) " }, { "key": "idp", "value": "", "description": "(Required) " }, { "key": "idpIdentityId", "value": "", "description": "(Required) " } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "text", "header": [ { "key": "Content-Type", "value": "text/plain" } ], "cookie": [], "body": "" }, { "name": "assigned identity privileges from requested identity", "originalRequest": { "method": "GET", "header": [ { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/api/v1/organizations/:organizationTin/assignedIdentityPrivileges/:idp/:idpIdentityId", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "organizations", ":organizationTin", "assignedIdentityPrivileges", ":idp", ":idpIdentityId" ], "variable": [ { "key": "organizationTin", "value": "", "description": "(Required) " }, { "key": "idp", "value": "", "description": "(Required) " }, { "key": "idpIdentityId", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "[\n {\n \"idpIdentityId\": \"consectetur ut exercitation sit dolor\",\n \"idp\": \"proident laboris consectetur\",\n \"privilegeId\": \"urn:uuid:f02b4d7b-7015-0495-7b50-d7b771975fbd\",\n \"privilegeName\": \"Duis adipisicing\",\n \"privilegeDescriptionDanish\": \"minim non\",\n \"privilegeDescriptionEnglish\": \"laboris\",\n \"privilegeOrganizationTin\": \"ut nisi adipisicing\",\n \"created\": \"nisi aute incididunt id\",\n \"updated\": \"ullamco exercitation\",\n \"assignedByOrganizationTin\": \"incididunt\"\n },\n {\n \"idpIdentityId\": \"officia reprehenderit adipisicing\",\n \"idp\": \"exercitation sunt Ut dolore deserunt\",\n \"privilegeId\": \"93bf28c9-0b19-836e-d0e9-93d2abfb362d\",\n \"privilegeName\": \"qui\",\n \"privilegeDescriptionDanish\": \"sint laboris officia ni\",\n \"privilegeDescriptionEnglish\": \"deserunt adipisicing commodo Excepteur labor\",\n \"privilegeOrganizationTin\": \"Excepteur\",\n \"created\": \"Ut laborum anim laboris\",\n \"updated\": \"fugiat in ad\",\n \"assignedByOrganizationTin\": \"Duis non sint ut\"\n }\n]" } ] }, { "name": "Get runtime privileges using ACCESS TOKEN", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjA0ODA1OEJCNTlGNEQzMDA3MDQ1ODk2RkQ0ODhDRTgxRjRFQjQ5MjMiLCJ0eXAiOiJhdCtqd3QifQ.eyJpc3MiOiJodHRwczovL3BwLm5ldHNlaWRicm9rZXIuZGsvb3AiLCJuYmYiOjE2ODMxNDU5NTksImlhdCI6MTY4MzE0NTk1OSwiZXhwIjoxNjgzMTQ5NTU5LCJzY29wZSI6WyJvcGVuaWQiLCJwcml2aWxlZ2VzIl0sImFtciI6WyJjb2RlX2FwcCJdLCJjbGllbnRfaWQiOiIxNDE0OGUyMy0xZDMyLTRkNWItYTdlZi04OTM1ZmRmNjU4MzYiLCJzdWIiOiI0ZDFkZTU4OS00OGVlLTRmOWEtOGUwZC03N2UwMzZiMzZkZTAiLCJhdXRoX3RpbWUiOjE2ODMxNDU5NTgsImlkcCI6Im1pdGlkIiwiYWNyIjoiaHR0cHM6Ly9kYXRhLmdvdi5kay9jb25jZXB0L2NvcmUvbnNpcy9TdWJzdGFudGlhbCIsIm5lYl9zaWQiOiIwZTI2YzU1OC04ODBiLTQyY2EtODEyMy0xYjc3YTlmNjgwYWIiLCJpZHBfdHJhbnNhY3Rpb25faWQiOiIwZWY1OTExMi0xNGJjLTQ0NjQtOGM5Yy1iNjM0ODZiMGQ1MjAiLCJ0cmFuc2FjdGlvbl9pZCI6IjcyMzgyMTE4LTY5YWUtNGEzZC05ODBjLTFiYzAzYWI4NmYzZiIsImlkcF9pZGVudGl0eV9pZCI6IjA2MDg3MDgwLWRhYjEtNDAxNS1iZjg4LWE0YjRkNjQ4NjUzNyIsImlkZW50aXR5X3R5cGUiOiJwcml2YXRlIiwiY2xpZW50X29yZ19pZCI6Ijg0ZTExYTE2LWQ5M2ItNDhhNi04ZGFkLWJmNWVmMjZmMzFiZSIsImNsaWVudF9vcmdfdGF4YXRpb25fbnVtYmVyIjoiREsyOTkxNTkzOCIsImp0aSI6IjU4Q0QxNzc4MjVGQjhFMkZCMzQ0N0I5NkZBNEM2RTI2In0.vLIw6bOii1Z2FkR1ULVdWAu_2w-GSnoqbzlo-7WsMGwREfz66pbTRtoPkOlOvfrrww4wk8tbdfgYziAFHTQ9XxYnbZ48b875uSotyNnU7AsxfbwrVZI2eHDeMGyYEzKlu2DU1IxzEHIcDsWODenHrDD1xyfm9ak7EYLAsFwsmdUvSoGHfgzZib4JfN6eAu6NW0jgx5IxF_EKq_wi8m3Tms5TKR1dQu4HqF54UHKh561SfKcDEAhEbpp0qDDRmpuhfOw2ghRoVOZGza6Hnh1UlhjCZRYXhI5ssQ95bY2wD67RxAS7Fj3gXNdWsiGEES9S7V-2F9Q8HVjb3t7FPl8JwA", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "text/plain" } ], "url": { "raw": "https://pp.netseidbroker.dk/privileges-api/api/v1/identity/privileges", "protocol": "https", "host": [ "pp", "netseidbroker", "dk" ], "path": [ "privileges-api", "api", "v1", "identity", "privileges" ] }, "description": "A http GET operation that retrieves the privilege assignments from the identity.

Requires the following privileges to execute the operation:

AssignIdentityPrivilegesRead" }, "response": [ { "name": "assigned identity privileges from requested identity", "originalRequest": { "method": "GET", "header": [ { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/api/v1/organizations/:organizationTin/assignedIdentityPrivileges/:idp/:idpIdentityId", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "organizations", ":organizationTin", "assignedIdentityPrivileges", ":idp", ":idpIdentityId" ], "variable": [ { "key": "organizationTin", "value": "", "description": "(Required) " }, { "key": "idp", "value": "", "description": "(Required) " }, { "key": "idpIdentityId", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "[\n {\n \"idpIdentityId\": \"consectetur ut exercitation sit dolor\",\n \"idp\": \"proident laboris consectetur\",\n \"privilegeId\": \"urn:uuid:f02b4d7b-7015-0495-7b50-d7b771975fbd\",\n \"privilegeName\": \"Duis adipisicing\",\n \"privilegeDescriptionDanish\": \"minim non\",\n \"privilegeDescriptionEnglish\": \"laboris\",\n \"privilegeOrganizationTin\": \"ut nisi adipisicing\",\n \"created\": \"nisi aute incididunt id\",\n \"updated\": \"ullamco exercitation\",\n \"assignedByOrganizationTin\": \"incididunt\"\n },\n {\n \"idpIdentityId\": \"officia reprehenderit adipisicing\",\n \"idp\": \"exercitation sunt Ut dolore deserunt\",\n \"privilegeId\": \"93bf28c9-0b19-836e-d0e9-93d2abfb362d\",\n \"privilegeName\": \"qui\",\n \"privilegeDescriptionDanish\": \"sint laboris officia ni\",\n \"privilegeDescriptionEnglish\": \"deserunt adipisicing commodo Excepteur labor\",\n \"privilegeOrganizationTin\": \"Excepteur\",\n \"created\": \"Ut laborum anim laboris\",\n \"updated\": \"fugiat in ad\",\n \"assignedByOrganizationTin\": \"Duis non sint ut\"\n }\n]" }, { "name": "No identity privileges found", "originalRequest": { "method": "GET", "header": [ { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/api/v1/organizations/:organizationTin/assignedIdentityPrivileges/:idp/:idpIdentityId", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "organizations", ":organizationTin", "assignedIdentityPrivileges", ":idp", ":idpIdentityId" ], "variable": [ { "key": "organizationTin", "value": "", "description": "(Required) " }, { "key": "idp", "value": "", "description": "(Required) " }, { "key": "idpIdentityId", "value": "", "description": "(Required) " } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "text", "header": [ { "key": "Content-Type", "value": "text/plain" } ], "cookie": [], "body": "" } ] } ], "protocolProfileBehavior": {} }