{"info":{"_postman_id":"dc6474af-3347-eca5-b819-60bdc1f5ba1c","name":"OpenID Connect v1 - OneLogin API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"2629710","collectionId":"dc6474af-3347-eca5-b819-60bdc1f5ba1c","publishedId":"T17DgU94","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-01T01:20:02.000Z"},"item":[{"name":"Implicit Flow","id":"4ac1ba19-d614-fcb6-80da-a8b0b0445d22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{subdomain}}.onelogin.com/oidc/1/auth?client_id={{OIDC_client_id}}&nonce=84ae8a84-d891-4991-9dd9-938a321bf454&redirect_uri={{OIDC_redirect_uri}}&response_type=id_token&scope=openid&state=","description":"<p>This GET call is part of the Implicit Flow and must be made via a web browser. The user will be redirected to login at OneLogin and then redirected back again to the registered redirect_uri.</p>\n","urlObject":{"protocol":"https","path":["oidc","1","auth"],"host":["{{subdomain}}","onelogin","com"],"query":[{"key":"client_id","value":"{{OIDC_client_id}}"},{"key":"nonce","value":"e378aec2-862b-4074-be1d-19b4726930c8"},{"key":"redirect_uri","value":"{{OIDC_redirect_uri}}"},{"key":"response_type","value":"id_token"},{"key":"scope","value":"openid"},{"key":"state","value":""},{"disabled":true,"key":"resource","value":null}],"variable":[]}},"response":[],"_postman_id":"4ac1ba19-d614-fcb6-80da-a8b0b0445d22"},{"name":"Authorization Code Flow","id":"1049745e-7eaa-7040-797a-a67942ab8945","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{subdomain}}.onelogin.com/oidc/1/auth?client_id={{OIDC_client_id}}&nonce=565ea7ef-35f6-4239-8e29-1424cdbb12d2&redirect_uri={{OIDC_redirect_uri}}&response_type=code&scope=openid&state=","description":"<p>This GET call is part of the Authentication Flow and must be made via a web browser. The user will be redirected to login at OneLogin and then redirected back again to the registered redirect_uri.</p>\n","urlObject":{"protocol":"https","path":["oidc","1","auth"],"host":["{{subdomain}}","onelogin","com"],"query":[{"key":"client_id","value":"{{OIDC_client_id}}"},{"key":"nonce","value":"e8b74a4a-616c-4f9f-9392-59c5cceb7a5a"},{"key":"redirect_uri","value":"{{OIDC_redirect_uri}}"},{"key":"response_type","value":"code"},{"key":"scope","value":"openid"},{"key":"state","value":""},{"disabled":true,"key":"resource","value":""}],"variable":[]}},"response":[],"_postman_id":"1049745e-7eaa-7040-797a-a67942ab8945"},{"name":"Get Access Token via Authorization Code","id":"89dbf262-4104-3b15-98f3-e3ad5d4336c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{OIDC_client_id}}"},{"key":"password","value":"{{OIDC_client_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"code","value":"{{OIDC_authorization_code}}","type":"text"},{"key":"redirect_uri","value":"{{OIDC_redirect_uri}}","type":"text"},{"key":"grant_type","value":"authorization_code","type":"text"}]},"url":"https://{{subdomain}}.onelogin.com/oidc/1/token","urlObject":{"protocol":"https","path":["oidc","1","token"],"host":["{{subdomain}}","onelogin","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"89dbf262-4104-3b15-98f3-e3ad5d4336c5"},{"name":"Client Credentials Grant","id":"efe0d182-5d34-4c55-a4e2-7bb4ce00094d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{OIDC_client_id}}"},{"key":"password","value":"{{OIDC_client_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"}]},"url":"https://{{subdomain}}.onelogin.com/oidc/1/token","urlObject":{"protocol":"https","path":["oidc","1","token"],"host":["{{subdomain}}","onelogin","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"efe0d182-5d34-4c55-a4e2-7bb4ce00094d"},{"name":"Password Grant","event":[{"listen":"test","script":{"id":"618a8efd-0461-4d12-abc4-d09a6f39c975","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"OIDC_access_token\", jsonData.access_token);","postman.setEnvironmentVariable(\"OIDC_refresh_token\", jsonData.refreshToken);"],"type":"text/javascript"}}],"id":"cb712c95-2b14-0c29-bc54-80f502cc760e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{OIDC_client_id}}"},{"key":"password","value":"{{OIDC_client_secret}}"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"{{username}}","type":"text"},{"key":"password","value":"{{password}}","type":"text"},{"key":"client_id","value":"{{OIDC_client_id}}","type":"text"},{"key":"grant_type","value":"password","type":"text"},{"key":"scope","value":"openid profile email","type":"text"},{"key":"response_type","value":"id_token ","type":"text"},{"key":"resource","value":"https://example.com/contacts","type":"text","disabled":true}]},"url":"https://{{subdomain}}.onelogin.com/oidc/1/token","urlObject":{"protocol":"https","path":["oidc","1","token"],"host":["{{subdomain}}","onelogin","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb712c95-2b14-0c29-bc54-80f502cc760e"},{"name":"Introspect Token","id":"2f5c2fa8-81c5-8c1b-cee9-99732ab3c8f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{OIDC_client_id}}"},{"key":"password","value":"{{OIDC_client_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"{{OIDC_access_token}}","type":"text"},{"key":"token_type_hint","value":"access_token","type":"text"}]},"url":"https://{{subdomain}}.onelogin.com/oidc/1/token/introspection","urlObject":{"protocol":"https","path":["oidc","1","token","introspection"],"host":["{{subdomain}}","onelogin","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f5c2fa8-81c5-8c1b-cee9-99732ab3c8f6"},{"name":"Refresh Token","event":[{"listen":"test","script":{"id":"134f73df-3282-4920-8c40-91f51d238a68","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"OIDC_access_token\", jsonData.access_token);","postman.setEnvironmentVariable(\"OIDC_refresh_token\", jsonData.refresh_token);"],"type":"text/javascript"}}],"id":"5832c6d4-0bb6-f197-0567-0e463dce182e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{OIDC_client_id}}"},{"key":"password","value":"{{OIDC_client_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"refresh_token","value":"{{OIDC_refresh_token}}","type":"text"},{"key":"grant_type","value":"refresh_token","type":"text"}]},"url":"https://{{subdomain}}.onelogin.com/oidc/1/token","urlObject":{"protocol":"https","path":["oidc","1","token"],"host":["{{subdomain}}","onelogin","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5832c6d4-0bb6-f197-0567-0e463dce182e"},{"name":"Revoke Token","id":"a0c42dc5-c049-459e-dda9-8cd7cb6cc813","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{OIDC_client_id}}"},{"key":"password","value":"{{OIDC_client_secret}}"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"{{OIDC_access_token}}","type":"text"},{"key":"token_type_hint","value":"access_token","type":"text"}]},"url":"https://{{subdomain}}.onelogin.com/oidc/1/token/revocation","urlObject":{"protocol":"https","path":["oidc","1","token","revocation"],"host":["{{subdomain}}","onelogin","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0c42dc5-c049-459e-dda9-8cd7cb6cc813"},{"name":"Get Provider Configuration Metadata","id":"95a5286c-c2e7-30bd-5b34-24f6dab7f4f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{subdomain}}.onelogin.com/oidc/1/.well-known/openid-configuration","urlObject":{"protocol":"https","path":["oidc","1",".well-known","openid-configuration"],"host":["{{subdomain}}","onelogin","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"95a5286c-c2e7-30bd-5b34-24f6dab7f4f3"},{"name":"Get User Info","id":"b579dcf8-49bd-2e73-3bc2-5b9af002bc76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{OIDC_access_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{{subdomain}}.onelogin.com/oidc/1/me","description":"<p>Returns user information associated with the session</p>\n","urlObject":{"protocol":"https","path":["oidc","1","me"],"host":["{{subdomain}}","onelogin","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b579dcf8-49bd-2e73-3bc2-5b9af002bc76"}]}