{"info":{"_postman_id":"7c950f0a-e1dd-470c-9386-7b90ddd353de","name":"VGIdentityServer 2024","description":"<html><head></head><body><p>It contains API documentation. How to use VGIdentityServer?</p>\n<p>You can have more information on <a href=\"https://docs.visual-guard.com/\">https://docs.visual-guard.com/</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25890945","collectionId":"7c950f0a-e1dd-470c-9386-7b90ddd353de","publishedId":"2s9YJhwzbo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-10T08:54:55.000Z"},"item":[{"name":"Authenticate","item":[{"name":"Visual-Guard User","item":[{"name":"Authenticate with VG User","event":[{"listen":"prerequest","script":{"id":"1f28f5e7-bd7e-4f65-9807-a527ac52f72c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"d93ecf26-1eea-45d9-94b2-13d70d2f2ef4","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript","packages":{}}}],"id":"98a31057-130f-41ec-936e-0b4a4758cff7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"Username","value":"tt29","type":"text","description":"<p>Username or login</p>\n"},{"key":"Password","value":"test","description":"<p>The user's password.  Delete this as soon as the response is recieved. </p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationMethod","value":"VisualGuard","type":"text","description":"<p>Authentication mode (ex. VisualGuard, Windows, WindowsByCredential, Passwordless, OKTA, Database etc)</p>\n"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Authenticates a visual-guard user.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"98a31057-130f-41ec-936e-0b4a4758cff7"},{"name":"Authenticate with VGToken","event":[{"listen":"prerequest","script":{"id":"1f28f5e7-bd7e-4f65-9807-a527ac52f72c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"d93ecf26-1eea-45d9-94b2-13d70d2f2ef4","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript","packages":{}}}],"id":"a0335363-64eb-4ad2-bf92-2b3a99348632","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"VGToken","value":"8B0AA2A3AF40554929727CE9678839066FFA0533D8D24F80B4D58697ACAF4C06FE1B31AAED4E24810169C0C5D3DDD77B2C4EFE2A25F349C23EBC04C86F8F5B3A","type":"text","description":"<p>Username or login</p>\n"},{"key":"grant_type","value":"VGTokenResourceOwnerPassword","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"VGApplicationId","value":"de0799c7-241a-4e58-91bc-5153a856fbe5","type":"text"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Authenticates a visual-guard user.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0335363-64eb-4ad2-bf92-2b3a99348632"}],"id":"963ac95d-fd59-4213-a76f-d83b7f17831a","description":"<p>Authentication of VisualGuard user accounts</p>\n","_postman_id":"963ac95d-fd59-4213-a76f-d83b7f17831a"},{"name":"Windows","item":[{"name":"Authenticate with Windows by credential","event":[{"listen":"prerequest","script":{"id":"c1ce5311-8360-49a2-ae07-8a2f1ba879cc","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"5207e73c-7db6-436b-8ea8-38cd5d9c31b5","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"251f771a-327e-4cbc-ba7a-75ecc1d91d26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"Username","value":"{{username}}","description":"<p>Username or login</p>\n"},{"key":"Password","value":"{{password}}","description":"<p>The user's password.  Delete this as soon as the response is recieved. </p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationMethod","value":"WindowsByCredential","type":"text","description":"<p>Authentication mode (ex. VisualGuard, Windows, WindowsByCredential, Passwordless, OKTA, Database etc)</p>\n"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Authenticates a windows by credential user.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"251f771a-327e-4cbc-ba7a-75ecc1d91d26"},{"name":"Authenticate with Windows","event":[{"listen":"prerequest","script":{"id":"c1ce5311-8360-49a2-ae07-8a2f1ba879cc","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"5207e73c-7db6-436b-8ea8-38cd5d9c31b5","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"6feb6d7a-8dfa-4860-aae8-f185ee60b6cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"Username","value":"{{username}}","description":"<p>Username or login</p>\n"},{"key":"Password","value":"{{password}}","description":"<p>The user's password.  Delete this as soon as the response is recieved. </p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationMethod","value":"Windows","type":"text","description":"<p>Authentication mode (ex. VisualGuard, Windows, WindowsByCredential, Passwordless, OKTA, Database etc)</p>\n"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Authenticates a windows by credential user.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6feb6d7a-8dfa-4860-aae8-f185ee60b6cd"}],"id":"eba46352-9880-4825-b4a0-9602182e4425","description":"<p>Authentication of Windows By credential user accounts</p>\n","_postman_id":"eba46352-9880-4825-b4a0-9602182e4425"},{"name":"Database","item":[{"name":"Authenticate with Database User","event":[{"listen":"prerequest","script":{"id":"bb831d51-a13c-45bc-8657-83bab2ed0ce2","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"ddd3e54c-7eca-4df4-b934-5c8b90b95c89","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"36714afe-27b8-4584-9071-27521731a0d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"Username","value":"{{username}}","description":"<p>The upn of the user that wants to log in.</p>\n"},{"key":"password","value":"{{password}}","description":"<p>The user's password.  Delete this as soon as the response is recieved. </p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationMethod","value":"Database","type":"text","description":"<p>Authentication mode (ex. VisualGuard, Windows, WindowsByCredential, Passwordless, OKTA, Database etc)</p>\n"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Authenticates with database user.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"36714afe-27b8-4584-9071-27521731a0d9"}],"id":"0e3b1c28-26a9-49fd-887a-625b10d10b9d","description":"<p>Authentication of Database user accounts</p>\n","_postman_id":"0e3b1c28-26a9-49fd-887a-625b10d10b9d"},{"name":"Password Less","item":[{"name":"Authenticate PasswordlessUser","event":[{"listen":"prerequest","script":{"id":"85ee0ed0-f8a0-4a59-a836-0e97f3221ead","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"7a06ddfc-f29e-4c64-b692-e7285836b8ad","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"28de0d60-de91-4f22-9684-f70f421bedd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"Username","value":"m2","description":"<p>Username or login</p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationMethod","value":"Passwordless","type":"text","description":"<p>Authentication mode (ex. VisualGuard, Windows, WindowsByCredential, Passwordless, OKTA, Database etc)</p>\n"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>It sends a request to ask for the OTP (Transport mode - SMS).</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28de0d60-de91-4f22-9684-f70f421bedd0"}],"id":"b98b5d2a-e515-4278-b327-2813ec3d9549","description":"<p>Authentication of Passwordless accounts</p>\n","_postman_id":"b98b5d2a-e515-4278-b327-2813ec3d9549"},{"name":"Okta (Beta not yet available)","item":[{"name":"Authenticate with Okta user","event":[{"listen":"prerequest","script":{"id":"c30b2802-386b-4f6b-8331-659b0434b187","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"2d478643-e7fb-4ea0-a178-332cba5c05d1","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"64b1635c-6c37-4a62-8c6b-619302019496","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"Username","value":"{{username}}","description":"<p>Username or login</p>\n"},{"key":"Password","value":"{{password}}","description":"<p>The user's password.  Delete this as soon as the response is recieved.</p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationMethod","value":"OKTA","type":"text","description":"<p>Authentication mode (ex. VisualGuard, Windows, WindowsByCredential, Passwordless, OKTA, Database etc)</p>\n"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Authenticates an OKTA user.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"64b1635c-6c37-4a62-8c6b-619302019496"}],"id":"638da3f7-873f-4cc9-8afa-c82539c6517d","description":"<p>Not yet available (Beta purpose)</p>\n<p>Authentication of Okta user accounts</p>\n","_postman_id":"638da3f7-873f-4cc9-8afa-c82539c6517d"},{"name":"MultiFactorAuthentication","item":[{"name":"MFA_OTP","item":[{"name":"MFA - Request OTP","event":[{"listen":"prerequest","script":{"id":"1f28f5e7-bd7e-4f65-9807-a527ac52f72c","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"d93ecf26-1eea-45d9-94b2-13d70d2f2ef4","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"a15b4d71-4e2b-4886-a20a-92dbdad117db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationRequestId","value":"{{AuthenticationRequestId}}","description":"<p>RequestId of the selected mfa available method (Guid). Once you authenticate with first factor authentication, available options will be shown in the response</p>\n","type":"text"},{"key":"MFAAvailableId","value":"{{MFAAvailableId}}","description":"<p>Id of the selected mfa available method (Guid). Once you authenticate with first factor authentication, available options will be shown in the response</p>\n","type":"text"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>It sends a request to ask for the OTP for multi factor authentication.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a15b4d71-4e2b-4886-a20a-92dbdad117db"},{"name":"MFA - Validation OTP","event":[{"listen":"prerequest","script":{"id":"1f28f5e7-bd7e-4f65-9807-a527ac52f72c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"d93ecf26-1eea-45d9-94b2-13d70d2f2ef4","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript","packages":{}}}],"id":"0adf3e42-230f-4462-a752-fc3af67a43a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationRequestId","value":"{{AuthenticationRequestId}}","description":"<p>RequestId of the selected mfa available method (Guid). Once you authenticate with first factor authentication, available options will be shown in the response</p>\n","type":"text"},{"key":"MFAAvailableId","value":"{{MFAAvailableId}}","description":"<p>Id of the selected mfa available method (Guid). Once you authenticate with first factor authentication, available options will be shown in the response</p>\n","type":"text"},{"key":"MFASecureCode","value":"294940","description":"<p>MFA Secure Code (OTP)</p>\n","type":"text"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Authenticates a visual-guard user.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0adf3e42-230f-4462-a752-fc3af67a43a9"}],"id":"e83b3d6d-7e8d-4266-92cf-d2c0378b343f","_postman_id":"e83b3d6d-7e8d-4266-92cf-d2c0378b343f","description":""},{"name":"MFA_Link","item":[{"name":"MFA - Request Link","event":[{"listen":"prerequest","script":{"id":"1f28f5e7-bd7e-4f65-9807-a527ac52f72c","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"d93ecf26-1eea-45d9-94b2-13d70d2f2ef4","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"4d1a8d77-df83-46bd-b164-d9ae03de1bab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationRequestId","value":"{{AuthenticationRequestId}}","description":"<p>RequestId of the selected mfa available method (Guid). Once you authenticate with first factor authentication, available options will be shown in the response</p>\n","type":"text"},{"key":"MFAAvailableId","value":"{{MFAAvailableId}}","description":"<p>Id of the selected mfa available method (Guid). Once you authenticate with first factor authentication, available options will be shown in the response</p>\n","type":"text"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>It sends a request to ask for the OTP for multi factor authentication.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d1a8d77-df83-46bd-b164-d9ae03de1bab"}],"id":"3eb342f7-e9bc-4eaf-bcd1-1bdb3d39fd10","_postman_id":"3eb342f7-e9bc-4eaf-bcd1-1bdb3d39fd10","description":""}],"id":"5602b8d6-65bb-4338-916f-f1c35f67828c","_postman_id":"5602b8d6-65bb-4338-916f-f1c35f67828c","description":""},{"name":"Group-Role selection","item":[{"name":"Authenticate with VG User GroupRoleSelection","event":[{"listen":"prerequest","script":{"id":"1f28f5e7-bd7e-4f65-9807-a527ac52f72c","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"d93ecf26-1eea-45d9-94b2-13d70d2f2ef4","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"073aac6d-3f77-4126-a069-fd71dc6956c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"Username","value":"{{username}}","type":"text","description":"<p>Username or login</p>\n"},{"key":"Password","value":"{{password}}","description":"<p>The user's password.  Delete this as soon as the response is recieved. </p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationMethod","value":"VisualGuard","type":"text","description":"<p>Authentication mode (ex. VisualGuard, Windows, WindowsByCredential, Passwordless, OKTA, Database etc)</p>\n"},{"key":"SelectedContextualGroups","value":"\"d084ba2b-9882-46fe-a565-eabeb3f782a0\"","description":"<p>Provide comma separated group ids</p>\n","type":"text"},{"key":"SelectedContextualRoles","value":"\"41a4711c-c4a3-45cd-85fd-dbbe33887f51\"","description":"<p>Provide comma separated role ids</p>\n","type":"text"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Authenticates a visual-guard user.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"073aac6d-3f77-4126-a069-fd71dc6956c3"}],"id":"1d6996d8-6161-43df-904f-73a1c2680595","_postman_id":"1d6996d8-6161-43df-904f-73a1c2680595","description":""}],"id":"a40d33b7-4db7-44c4-ba80-7a1476de6e87","description":"<p>This folder contains all methods for authentication (VisualGuard, Windows, Database, Passwordless, etc.)</p>\n","_postman_id":"a40d33b7-4db7-44c4-ba80-7a1476de6e87"},{"name":"User","item":[{"name":"GetAllUsers","event":[{"listen":"test","script":{"id":"4e0019e1-254a-4fb7-85f2-59655a1263f8","exec":[""],"type":"text/javascript"}}],"id":"d57324e6-4f2a-41c0-a4df-532c9efa6b94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{VGIdentityServerUrl}}/api/User/GetAllUsers?pageIndex=0&pageSize=10&isLoadProfileValues=true","description":"<p>Gets all users.</p>\n","urlObject":{"path":["api","User","GetAllUsers"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>PageIndex</p>\n","type":"text/plain"},"key":"pageIndex","value":"0"},{"description":{"content":"<p>PageSize</p>\n","type":"text/plain"},"key":"pageSize","value":"10"},{"description":{"content":"<p>Set it to true, If also want to load profile values for user</p>\n","type":"text/plain"},"key":"isLoadProfileValues","value":"true"}],"variable":[]}},"response":[],"_postman_id":"d57324e6-4f2a-41c0-a4df-532c9efa6b94"},{"name":"GetProfileValues","id":"3ed47203-6863-49ef-9977-0269e1f20eec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/User/GetProfileValues?userId=test","description":"<p>Gets all profile values for user.</p>\n","urlObject":{"path":["api","User","GetProfileValues"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>UserId</p>\n","type":"text/plain"},"key":"userId","value":"test"}],"variable":[]}},"response":[],"_postman_id":"3ed47203-6863-49ef-9977-0269e1f20eec"},{"name":"ChangePassword","id":"16df1e21-c193-49e9-b93d-760ac11d6667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Username\": \"test\",\r\n  \"OldPassword\": \"test1\",\r\n  \"NewPassword\": \"test\",\r\n  \"PasswordConfirmation\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/User/ChangePassword","description":"<p>Changes the password of the user by old password.</p>\n","urlObject":{"path":["api","User","ChangePassword"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16df1e21-c193-49e9-b93d-760ac11d6667"},{"name":"GetQuestionForChangePassword","id":"0122a91f-778b-434e-8bd2-a0098407299a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Username\": \"test\",\r\n  \"AuthenticationMode\": \"VisualGuard\" \r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/User/GetQuestionForChangePassword","description":"<p>Gets the secret question for changing password by username.</p>\n","urlObject":{"path":["api","User","GetQuestionForChangePassword"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0122a91f-778b-434e-8bd2-a0098407299a"},{"name":"ForcePassword","id":"02975367-a808-49d1-9409-d74bfeeafa6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"UserId\": \"test\",\r\n  \"NewPassword\": \"pwd\",\r\n  \"PasswordConfirmation\" : \"pwd\" \r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/User/ForcePassword","description":"<p>Sets the new password of the user.</p>\n<p>Requires permissions:</p>\n<ol>\n<li>Read User 2) CanForcePassword permission</li>\n</ol>\n","urlObject":{"path":["api","User","ForcePassword"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"02975367-a808-49d1-9409-d74bfeeafa6a"},{"name":"WriteLog","id":"19c8b49d-2af6-4653-81ad-f02af7fec2e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Title\": \"Testing from Postman\",\r\n  \"Message\": \"Testing from Postman-Admin\",\r\n  \"EventId\": 108,\r\n  \"Severity\": \"1\",\r\n  \"ApplicationId\": \"7503e1ea-212a-4903-abb6-93702214fa87\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/User/WriteLog","description":"<p>Writes a log for the user.</p>\n","urlObject":{"path":["api","User","WriteLog"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"19c8b49d-2af6-4653-81ad-f02af7fec2e6"},{"name":"ChangePasswordByAnswer","id":"e6967e28-7fcc-444e-8331-a6e79a2f1278","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Username\": \"test\",\r\n  \"Answer\": \"test1\",\r\n  \"NewPassword\": \"test\",\r\n  \"PasswordConfirmation\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/User/ChangePasswordByAnswer","description":"<p>Changes the password of the user by answer of the secret question.</p>\n","urlObject":{"path":["api","User","ChangePasswordByAnswer"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6967e28-7fcc-444e-8331-a6e79a2f1278"}],"id":"457582d9-b666-49c2-b3d5-cd335819f3fa","description":"<p>It contains methods for user operations.</p>\n","_postman_id":"457582d9-b666-49c2-b3d5-cd335819f3fa"},{"name":"Role","item":[{"name":"GetAllRoles","id":"adeb400d-bf83-48e5-89f9-d64976a5c427","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Role/GetAllRoles?applicationId=a8f29316-c16e-4a21-8a21-c753dfedec66&onlyActiveRoleAndGrantedToUsers=true&isLoadMemberShipRoles=true&isLoadProfileValues=false","description":"<p>Gets all roles.</p>\n","urlObject":{"path":["api","Role","GetAllRoles"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>Id of the application</p>\n","type":"text/plain"},"key":"applicationId","value":"a8f29316-c16e-4a21-8a21-c753dfedec66"},{"description":{"content":"<p>Set it to true, if only want to load roles which are active and granted to users</p>\n","type":"text/plain"},"key":"onlyActiveRoleAndGrantedToUsers","value":"true"},{"description":{"content":"<p>Set it to true, if want to include membership roles also</p>\n","type":"text/plain"},"key":"isLoadMemberShipRoles","value":"true"},{"description":{"content":"<p>Set it to true, if want to load role's profile values also</p>\n","type":"text/plain"},"key":"isLoadProfileValues","value":"false"}],"variable":[]}},"response":[],"_postman_id":"adeb400d-bf83-48e5-89f9-d64976a5c427"},{"name":"ContainsPermission","id":"b4668bb9-dd88-4d19-b8c7-25f8862396c5","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"RoleId\": \"72ee1b3d-2e9e-48d8-a7bf-0b8d4121d9f0\",\r\n  \"PermissionId\": \"f2a1d508-1920-41cb-9ef9-0b5a4e078ee4\"  \r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Role/ContainsPermission","description":"<p>Checks whether a role contains given permission or not.</p>\n","urlObject":{"path":["api","Role","ContainsPermission"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4668bb9-dd88-4d19-b8c7-25f8862396c5"},{"name":"GrantRolesToUsers","id":"6c30b00b-8b0f-4ef5-89c0-acc611fcb0dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Roles\": [\r\n    {\r\n      \"RoleId\": \"17395782-ca09-4602-b43b-4e774ab89b1e\",\r\n      \"AppId\": \"ac60cfa1-8416-4d56-a50b-71bebeeb3b45\"\r\n    }\r\n  ],\r\n  \"UserIds\": [\r\n    \"pbuser\"\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Role/GrantRolesToUsers","description":"<p>Grants role(s) to the user(s).</p>\n","urlObject":{"path":["api","Role","GrantRolesToUsers"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c30b00b-8b0f-4ef5-89c0-acc611fcb0dd"},{"name":"RevokeRolesFromUsers","id":"93d01d58-2ae3-4e32-9eb6-cfb61847c843","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Roles\": [\r\n    {\r\n      \"RoleId\": \"17395782-ca09-4602-b43b-4e774ab89b1e\",\r\n      \"AppId\": \"ac60cfa1-8416-4d56-a50b-71bebeeb3b45\"\r\n    }\r\n  ],\r\n  \"UserIds\": [\r\n    \"pbuser\"\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Role/RevokeRolesFromUsers","description":"<p>Revokes role(s) from the user(s).</p>\n","urlObject":{"path":["api","Role","RevokeRolesFromUsers"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"93d01d58-2ae3-4e32-9eb6-cfb61847c843"}],"id":"d8cd7846-5990-4cbc-b481-862447480c31","description":"<p>It contains methods for role operations.</p>\n","_postman_id":"d8cd7846-5990-4cbc-b481-862447480c31"},{"name":"Application","item":[{"name":"UpdateProfileValue","event":[{"listen":"prerequest","script":{"id":"b9fca3b2-383f-4a93-83f5-a674b1f14bd7","exec":[""],"type":"text/javascript"}}],"id":"490b4b41-914b-42f0-a104-641ed9541220","protocolProfileBehavior":{"disabledSystemHeaders":{"content-type":true},"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"PropertyName\": \"CompanyName\",\r\n  \"PropertyValue\": \"ABC\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Application/UpdateProfileValue","description":"<p>Updates profile value for given attribute for a given application. (If applicationId is not provided, it will process for current application by default)</p>\n","urlObject":{"path":["api","Application","UpdateProfileValue"],"host":["{{VGIdentityServerUrl}}"],"query":[{"disabled":true,"key":"PropertyName","value":"CompanyName"},{"disabled":true,"key":"PropertyValue","value":"AA"}],"variable":[]}},"response":[],"_postman_id":"490b4b41-914b-42f0-a104-641ed9541220"},{"name":"GetAllApplications","id":"babd3a88-5de5-4f03-9541-c09f4943d559","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Application/GetAllApplications?isLoadProfileValues=true","description":"<p>Gets all applications</p>\n","urlObject":{"path":["api","Application","GetAllApplications"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>Set it to true, if want to load application's profile values also</p>\n","type":"text/plain"},"key":"isLoadProfileValues","value":"true"}],"variable":[]}},"response":[],"_postman_id":"babd3a88-5de5-4f03-9541-c09f4943d559"},{"name":"GetCurrentApplication","id":"0a42bb72-b788-49bf-b504-e93019644494","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Application/GetCurrentApplication?isLoadProfileValues=true","description":"<p>Gets current application for which the user has been authenticated to.</p>\n","urlObject":{"path":["api","Application","GetCurrentApplication"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>Set it to true, if want to load application's profile values also</p>\n","type":"text/plain"},"key":"isLoadProfileValues","value":"true"}],"variable":[]}},"response":[],"_postman_id":"0a42bb72-b788-49bf-b504-e93019644494"},{"name":"GetAllProfileAttributes","id":"02e2b142-ecfd-4366-8926-e7648821fa9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Application/GetAllProfileAttributes","description":"<p>Gets all profile attributes and values for given application if specified, if not specified, it will take current application.</p>\n","urlObject":{"path":["api","Application","GetAllProfileAttributes"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"02e2b142-ecfd-4366-8926-e7648821fa9f"}],"id":"262c1cee-0f3a-45f7-9522-2ec95d74fd1b","description":"<p>It contains methods for application operations.</p>\n","_postman_id":"262c1cee-0f3a-45f7-9522-2ec95d74fd1b"},{"name":"Principal","item":[{"name":"GetPrincipal","id":"64e16bfa-5b2f-4250-abbe-02030861764e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{VGIdentityServerUrl}}/api/Principal/GetPrincipal","description":"<p>Gets current principal.</p>\n","urlObject":{"path":["api","Principal","GetPrincipal"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"64e16bfa-5b2f-4250-abbe-02030861764e"},{"name":"SetProfileValue","id":"b8fcf718-6c9b-45c4-b889-6755e251d926","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"PropertyName\": \"int\",\r\n  \"PropertyValue\": \"45\"\r\n  \r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Principal/SetProfileValue","description":"<p>Sets profile values for current principal.</p>\n","urlObject":{"path":["api","Principal","SetProfileValue"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8fcf718-6c9b-45c4-b889-6755e251d926"},{"name":"GetProfileValues","id":"607bbf1e-eb0a-4525-842f-2737c263f373","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/GetProfileValues","description":"<p>Gets all profile values of the current principal.</p>\n","urlObject":{"path":["api","Principal","GetProfileValues"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"607bbf1e-eb0a-4525-842f-2737c263f373"},{"name":"ChangePassword","id":"3a4e78ca-c429-4b2d-b5dc-f32a80ad063f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"NewPassword\": \"Admin@123\",\r\n  \"PasswordConfirmation\": \"Admin@123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Principal/ChangePassword","description":"<p>Changes the password of the current principal.</p>\n","urlObject":{"path":["api","Principal","ChangePassword"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a4e78ca-c429-4b2d-b5dc-f32a80ad063f"},{"name":"SelectContextualRoles","id":"d18c48d1-d3e8-47f2-92f6-1120f0307d9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Ids\": [\r\n    \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Principal/SelectContextualRoles","description":"<p>Selects contextual roles for current principal and returns updated principal (To get the selectable contextual roles, call method - GetAllSelectableContextualRoles().</p>\n","urlObject":{"path":["api","Principal","SelectContextualRoles"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d18c48d1-d3e8-47f2-92f6-1120f0307d9f"},{"name":"SelectContextualGroups","id":"b4b7900c-ef9e-4e0a-bba0-0299ba6fc9a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Ids\": [\r\n    \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Principal/SelectContextualGroups","description":"<p>Selects contextual groups for current principal and returns updated principal. (To get the selectable contextual groups, call method - GetAllSelectableContextualGroups() ).</p>\n","urlObject":{"path":["api","Principal","SelectContextualGroups"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4b7900c-ef9e-4e0a-bba0-0299ba6fc9a8"},{"name":"SignOut","id":"d2052072-2368-4b66-a41e-614aed096827","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Principal/SignOut","description":"<p>SignOuts the current user.</p>\n","urlObject":{"path":["api","Principal","SignOut"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2052072-2368-4b66-a41e-614aed096827"},{"name":"WriteLog","id":"ee7d2c5e-ac97-4953-8341-d3898c373ee3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"Title\": \"Testing from Postman\",\r\n  \"Message\": \"Testing from Postman-Admin\",\r\n  \"EventId\": 108,\r\n  \"Severity\": \"1\",\r\n  \"ApplicationId\": \"7503e1ea-212a-4903-abb6-93702214fa87\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/Principal/WriteLog","description":"<p>Writes a log for current principal.</p>\n","urlObject":{"path":["api","Principal","WriteLog"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee7d2c5e-ac97-4953-8341-d3898c373ee3"},{"name":"GetIdentity","id":"35a3d4b5-3e03-48c8-99b4-a5be0bf2fde7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/GetIdentity","description":"<p>Gets the identity of your current user.</p>\n","urlObject":{"path":["api","Principal","GetIdentity"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"35a3d4b5-3e03-48c8-99b4-a5be0bf2fde7"},{"name":"GetCurrentPermissions","id":"7f93267d-da38-4407-bb2e-123558820ed9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/GetCurrentPermissions","description":"<p>Gets all permissions for current principal.</p>\n","urlObject":{"path":["api","Principal","GetCurrentPermissions"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f93267d-da38-4407-bb2e-123558820ed9"},{"name":"GetCurrentRoles","id":"22331052-b390-4b40-920a-142fbd4a1db1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/GetCurrentRoles","description":"<p>Gets all roles for current principal.</p>\n","urlObject":{"path":["api","Principal","GetCurrentRoles"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"22331052-b390-4b40-920a-142fbd4a1db1"},{"name":"IsInRoleById","id":"1d66324e-de26-4341-b9ce-3e913f1aa008","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/IsInRoleById?roleId=72ee1b3d-2e9e-48d8-a7bf-0b8d4121d9f0","description":"<p>Does the user have a role (role ID), Returns true, else false.</p>\n","urlObject":{"path":["api","Principal","IsInRoleById"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>Id of the role to check</p>\n","type":"text/plain"},"key":"roleId","value":"72ee1b3d-2e9e-48d8-a7bf-0b8d4121d9f0"}],"variable":[]}},"response":[],"_postman_id":"1d66324e-de26-4341-b9ce-3e913f1aa008"},{"name":"IsInRoleByName","id":"a4cd7b6d-72fd-4923-bff5-bebdf2163d48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/IsInRoleByName?roleName=Admin","description":"<p>Does the user have a role (role name), Returns true, else false.</p>\n","urlObject":{"path":["api","Principal","IsInRoleByName"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>Name of the role to check</p>\n","type":"text/plain"},"key":"roleName","value":"Admin"}],"variable":[]}},"response":[],"_postman_id":"a4cd7b6d-72fd-4923-bff5-bebdf2163d48"},{"name":"HasPermissionById","id":"dfbf9b2d-4d49-4dfc-9b35-fa6a7072dd96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/HasPermissionById?permissionId=8bdf5823-7852-4665-8829-2d2c71d0865f","description":"<p>Does the user have a permission (permissionId), Returns true, else false</p>\n","urlObject":{"path":["api","Principal","HasPermissionById"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>Id of the Permission to check</p>\n","type":"text/plain"},"key":"permissionId","value":"8bdf5823-7852-4665-8829-2d2c71d0865f"}],"variable":[]}},"response":[],"_postman_id":"dfbf9b2d-4d49-4dfc-9b35-fa6a7072dd96"},{"name":"HasPermissionByName","id":"9bc99c6b-a5b3-4547-9d9c-ce6e6711ca60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/HasPermissionByName?permissionName=/PowerServer/Address/CanCreateAddress","description":"<p>Does the user have a permission (permissionName), Returns true else false.</p>\n","urlObject":{"path":["api","Principal","HasPermissionByName"],"host":["{{VGIdentityServerUrl}}"],"query":[{"description":{"content":"<p>Name of the Permission to check</p>\n","type":"text/plain"},"key":"permissionName","value":"/PowerServer/Address/CanCreateAddress"}],"variable":[]}},"response":[],"_postman_id":"9bc99c6b-a5b3-4547-9d9c-ce6e6711ca60"},{"name":"GetAllSelectableContextualGroups","id":"c12bc33a-11a1-4be0-a435-8ce380e88746","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/GetAllSelectableContextualGroups","description":"<p>Gets all selectable contextual groups for current principal.</p>\n","urlObject":{"path":["api","Principal","GetAllSelectableContextualGroups"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c12bc33a-11a1-4be0-a435-8ce380e88746"},{"name":"GetSelectedContextualGroups","id":"5af9f7d5-72dd-4df0-9e9a-4fb8468561f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/GetSelectedContextualGroups","description":"<p>Gets selected contextual groups for current principal.</p>\n","urlObject":{"path":["api","Principal","GetSelectedContextualGroups"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5af9f7d5-72dd-4df0-9e9a-4fb8468561f4"},{"name":"GetAllSelectableContextualRoles","id":"4b650cfd-6e1d-4cd0-b73e-a08408863b42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/GetAllSelectableContextualRoles","description":"<p>Gets all selectable contextual roles for current principal.</p>\n","urlObject":{"path":["api","Principal","GetAllSelectableContextualRoles"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b650cfd-6e1d-4cd0-b73e-a08408863b42"},{"name":"GetSelectedContextualRoles","id":"2cc1e6d9-50ab-4924-b3b5-68b622f1cc86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/api/Principal/GetSelectedContextualRoles","description":"<p>Gets selected contextual roles for current principal.</p>\n","urlObject":{"path":["api","Principal","GetSelectedContextualRoles"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2cc1e6d9-50ab-4924-b3b5-68b622f1cc86"}],"id":"468a7cd5-76ec-4764-95db-0b180e5842b8","description":"<p>It contains methods for principal operations.</p>\n","_postman_id":"468a7cd5-76ec-4764-95db-0b180e5842b8"},{"name":"MFA","item":[{"name":"MFAEnrollment","item":[{"name":"SendEmailVerification","id":"12ccb09d-64ef-4601-b5af-b7c304938c6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"f773dfe8-8148-4976-8db2-36d9950c39ed\",\r\n  \"destination\": \"acbd@cde.net\",\r\n  \"secureCode\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAEnrollment/SendEmailVerification","description":"<h3 id=\"send-email-verification\">Send Email Verification</h3>\n<p>This endpoint sends an email verification for multi-factor authentication (MFA) enrollment.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>requestId</code> (string, required): The authentication ID of the request.</p>\n</li>\n<li><p><code>destination</code> (string, required): The email address or destination for the verification code.</p>\n</li>\n<li><p><code>secureCode</code> (string, required): The secure code for verification.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAEnrollment","SendEmailVerification"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"12ccb09d-64ef-4601-b5af-b7c304938c6e"},{"name":"SendMobileNumberVerification","id":"9421ed82-8b3a-403b-bdc7-81cf81e951ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"f773dfe8-8148-4976-8db2-36d9950c39ed\",\r\n  \"destination\": \"+918889999\",\r\n  \"secureCode\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAEnrollment/SendMobileNumberVerification","description":"<h3 id=\"send-mobile-number-verification\">Send Mobile Number Verification</h3>\n<p>This endpoint makes an HTTP POST request to enroll for multi-factor authentication by sending a verification code to a mobile number.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>requestId</code> (string, required): The authenticationRequestID for the request.</p>\n</li>\n<li><p><code>destination</code> (string, required): The mobile number where the verification code will be sent.</p>\n</li>\n<li><p><code>secureCode</code> (string, required): The secure code for the verification process.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAEnrollment","SendMobileNumberVerification"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9421ed82-8b3a-403b-bdc7-81cf81e951ff"},{"name":"ValidateEmail","id":"bb54b3af-1960-45d3-9afd-545d5ca34143","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"f773dfe8-8148-4976-8db2-36d9950c39ed\",\r\n  \"destination\": \"acbd@cde.net\",\r\n  \"secureCode\": \"637112\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAEnrollment/ValidateEmail","description":"<h3 id=\"validate-email-mfa-enrollment\">Validate Email MFA Enrollment</h3>\n<p>This endpoint is used to validate the email for multi-factor authentication (MFA) enrollment.</p>\n<ul>\n<li><p>Body:</p>\n<ul>\n<li><p>requestId (string, required): Authentication Request ID for the request.</p>\n</li>\n<li><p>destination (string, required): The email address where the secure code is sent.</p>\n</li>\n<li><p>secureCode (string, required): The secure code sent to the email address for validation.</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAEnrollment","ValidateEmail"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb54b3af-1960-45d3-9afd-545d5ca34143"},{"name":"ValidateMobileNumber","id":"3bb605ab-536e-4929-92d1-3a2e540fc981","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"86ac383a-815e-4389-9c0a-5bb72b607a84\",\r\n   \"secureCode\": \"797730\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAEnrollment/ValidateMobileNumber","description":"<h3 id=\"validate-mobile-number\">Validate Mobile Number</h3>\n<p>This endpoint is used to validate a mobile number for multi-factor authentication enrollment.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>requestId</code> (string, required): Authentication RequestId for the request.</p>\n</li>\n<li><p><code>secureCode</code> (string, required): The secure code for validation.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAEnrollment","ValidateMobileNumber"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3bb605ab-536e-4929-92d1-3a2e540fc981"},{"name":"EnrollUserToMicrosoftAuthenticatorByImage","id":"12723b74-5129-41cd-b629-dc74ce32c0ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"c85a6caf-e67c-454c-a636-d49b1800aaea\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAEnrollment/EnrollUserToMicrosoftAuthenticatorByImage?requestId=5162e29f-30ab-456c-abb5-9065143ec071","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>This HTTP POST request is used to enroll a user to Microsoft Authenticator using an image. The request includes a payload with the following parameters:</p>\n<ul>\n<li><code>requestId</code>: Authentication Request Id for the request.</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>The request body is of type raw and should be in JSON format. It includes the following parameter:</p>\n<ul>\n<li><code>requestId</code>: (string) Authentication Request Id for the request.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the API returns a status code of 200 and the content type of the response is <code>image/jpeg</code>. This image is QR code which will be scanned by Microsoft Authenticator app for enrollment.</p>\n","urlObject":{"path":["api","MFAEnrollment","EnrollUserToMicrosoftAuthenticatorByImage"],"host":["{{VGIdentityServerUrl}}"],"query":[{"key":"requestId","value":"5162e29f-30ab-456c-abb5-9065143ec071"}],"variable":[]}},"response":[],"_postman_id":"12723b74-5129-41cd-b629-dc74ce32c0ae"},{"name":"EnrollUserToMicrosoftAuthenticatorByBytes","id":"6e171cff-9a32-4cde-a32f-ac19d4e59afb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"d25be23f-d09e-4bed-b322-3fb7555e6910\"  \r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAEnrollment/EnrollUserToMicrosoftAuthenticatorByBytes?requestId=5162e29f-30ab-456c-abb5-9065143ec071","description":"<p>The <code>POST</code> request to <code>{{VGIdentityServerUrl}}/api/MFAEnrollment/EnrollUserToMicrosoftAuthenticatorByBytes</code> is used to enroll a user to Microsoft Authenticator using a byte array of image.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>requestId</code> (string, required): Authentication Request Id for the enrollment request.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the API returns a status code of 200 and result is byte[] for the image. This image is QR code which will be scanned by Microsoft Authenticator app for enrollment.</p>\n","urlObject":{"path":["api","MFAEnrollment","EnrollUserToMicrosoftAuthenticatorByBytes"],"host":["{{VGIdentityServerUrl}}"],"query":[{"key":"requestId","value":"5162e29f-30ab-456c-abb5-9065143ec071"}],"variable":[]}},"response":[],"_postman_id":"6e171cff-9a32-4cde-a32f-ac19d4e59afb"},{"name":"ValidateMicrosoftTOTP","id":"820d397a-9962-4080-8933-775f85a12475","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"d8c8c89a-d1e3-4bbf-b0db-fb0c86e67d7f\",  \r\n  \"secureCode\": \"977838\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAEnrollment/ValidateMicrosoftTOTP","description":"<p>The <code>POST</code> request to <code>/api/MFAEnrollment/ValidateMicrosoftTOTP</code> endpoint is used to validate a Microsoft TOTP (Time-based One-Time Password) during multi-factor authentication enrollment.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>requestId</code> (string): Authentication Request Id for the request.</p>\n</li>\n<li><p><code>secureCode</code> (string): The secure code for validation.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAEnrollment","ValidateMicrosoftTOTP"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"820d397a-9962-4080-8933-775f85a12475"}],"id":"ee9fe003-e3e2-4810-99d0-cf960cea2da2","description":"<p>It contains all methods for enrolment of information for multi-factor authentication. (Ex. Email, Mobile, Microsoft TOTP)</p>\n","_postman_id":"ee9fe003-e3e2-4810-99d0-cf960cea2da2"},{"name":"MFAValidation","item":[{"name":"GetMFAAvailablesByRequest","id":"85f52474-0a2a-444e-82ce-0f14bf524603","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"RequestId\": \"4d6f2f40-5f03-427e-ab90-0b94437cba67\"  \r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAValidation/GetMFAAvailablesByRequest","description":"<h3 id=\"getmfaavailables-by-request\">GetMFAAvailables By Request</h3>\n<p>This endpoint retrieves all available MFA (Multi-Factor Authentication) options based on the provided request.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>RequestId (string) - The unique identifier for the request.</li>\n</ul>\n","urlObject":{"path":["api","MFAValidation","GetMFAAvailablesByRequest"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"85f52474-0a2a-444e-82ce-0f14bf524603"},{"name":"GetMFAAvailables","id":"be2f8d14-dcc8-400b-9c7d-0a30203a3fe6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAEnrollment/GetMFAAvailables","description":"<h3 id=\"getmfaavailables\">GetMFAAvailables</h3>\n<p>This endpoint is used to get all available MFA options.</p>\n","urlObject":{"path":["api","MFAEnrollment","GetMFAAvailables"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"be2f8d14-dcc8-400b-9c7d-0a30203a3fe6"},{"name":"CreateMFARequest","id":"c51036d0-c03d-4596-b1d2-6435baf8591a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": \"8295d085-1909-421d-8334-3a33e25d1ef5\",\r\n  \"requestId\": \"ceb8a0b9-1bc8-4c1d-97fc-8b62939759d6\",\r\n  \"transportMode\": \"Email\",\r\n  \"authenticationMode\": \"Link\",\r\n  \"destination\": \"testjohn@abc.com\",\r\n  \"expirationTime\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAValidation/CreateMFARequest","description":"<h3 id=\"create-mfa-request\">Create MFA Request</h3>\n<p>This endpoint is used to create a multi-factor authentication (MFA) request for validation of business operation.</p>\n<ul>\n<li><p>Body:</p>\n<ul>\n<li><p>id (string, required): The MFA Id.</p>\n</li>\n<li><p>requestId (string, required): Authentication Request ID for the request.</p>\n</li>\n<li><p>transportMode (string, required): The mode of transport for the authentication request (e.g., Email/SMS/MicrosoftAuthenticator).</p>\n</li>\n<li><p>authenticationMode (string, required): The mode of authentication (e.g., Link/OTP).</p>\n</li>\n<li><p>destination (string, required): The destination where the secure code is sent.</p>\n</li>\n<li><p>expirationTime (integer, required): The expiration time for the request in seconds.</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAValidation","CreateMFARequest"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c51036d0-c03d-4596-b1d2-6435baf8591a"},{"name":"ValidateOperation","id":"726a71a1-330d-4d08-b4ec-bb004890619e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"7473c721-1641-4c74-ab08-bac7f8da0dbd\",\r\n  \"selectedMFAId\": \"278682b2-d47b-4a29-8a75-646feea888d4\",\r\n  \"secureCode\": null ,\r\n  \"mfaAction\": \"SendLink\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAValidation/ValidateOperation","description":"<h3 id=\"validate-operation\">Validate Operation</h3>\n<p>This endpoint is used to validate the operation for multi-factor authentication (MFA).</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>requestId (string, required): Authentication Request ID for the request.</p>\n</li>\n<li><p>selectedMFAId (string, required): The selected multi-factor authentication ID.</p>\n</li>\n<li><p>secureCode (string, required): The secure code sent for validation.</p>\n</li>\n<li><p>mfaAction (string, required): The action to be performed for multi-factor authentication (SendOTP/SendLink/AuthenticateOTP/CancelOTP/CancelLink) .</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is in JSON format with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"requestId\": \"string\",\n    \"status\": \"string\",\n    \"statusCode\": 0,\n    \"enrollmentUrl\": \"string\"\n}\n\n</code></pre>\n<ul>\n<li><p>requestId (string): The authentication request ID.</p>\n</li>\n<li><p>status (string): The status of the validation.</p>\n</li>\n<li><p>statusCode (number): The status code of the response.</p>\n</li>\n<li><p>enrollmentUrl (string): The URL for enrollment.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAValidation","ValidateOperation"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"726a71a1-330d-4d08-b4ec-bb004890619e"},{"name":"ValidateOperationById","id":"04a11fe7-8507-4ad4-8050-62f96e47aba4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"requestId\": \"6b02489e-4984-46c4-9094-cbf6ce563718\",\r\n  \"selectedMFAId\": \"bb815f09-50e8-4aca-8ffc-c76a9894858a\",\r\n  \"secureCode\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAValidation/ValidateOperationById","description":"<h3 id=\"validate-operation-by-id\">Validate Operation by Id.</h3>\n<p>This endpoint is used to validate the operation for multi-factor authentication (MFA) by Id (RequestId and MFAAvailableId).</p>\n<ul>\n<li><p>Body:</p>\n<ul>\n<li><p>requestId (string, required): Authentication Request ID for the request.</p>\n</li>\n<li><p>selectedMFAId (string, required): The selected MFA ID for validation.</p>\n</li>\n<li><p>secureCode (string, optional): The secure code sent for validation.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will have a status code of 200 and a content type of <code>application/json</code>. The response body will contain the following fields:</p>\n<ul>\n<li><p>requestId: The request ID.</p>\n</li>\n<li><p>status: The status of the validation.</p>\n</li>\n<li><p>statusCode: The status code of the validation.</p>\n</li>\n<li><p>enrollmentUrl: The URL for enrollment, if applicable.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAValidation","ValidateOperationById"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"04a11fe7-8507-4ad4-8050-62f96e47aba4"},{"name":"ValidateOperationByMode","id":"dbc7c8a1-cb8d-49dd-bb78-a822e8772a12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"transportMode\": \"Email\",\r\n  \"authenticationMode\": \"OTP\",\r\n  \"secureCode\": \"615055\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{VGIdentityServerUrl}}/api/MFAValidation/ValidateOperationByMode","description":"<h3 id=\"validate-operation-by-modes\">Validate Operation by modes.</h3>\n<p>This endpoint is used to validate the operation for multi-factor authentication (MFA) by modes (TransportMode and AuthenticationMode).</p>\n<ul>\n<li><p>Body:</p>\n<ul>\n<li><p>transportMode (string, required): The mode of transport for the MFA validation, in this case, it is \"SMS/Email/MicrosoftAuthenticator\".</p>\n</li>\n<li><p>authenticationMode (string, required): The mode of authentication, in this case, it is \"Link/OTP\".</p>\n</li>\n<li><p>secureCode (string, required): The secure code sent for validation.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will have a status code of 200 and a content type of <code>application/json</code>. The response body will contain the following fields:</p>\n<ul>\n<li><p>requestId: The request ID.</p>\n</li>\n<li><p>status: The status of the validation.</p>\n</li>\n<li><p>statusCode: The status code of the validation.</p>\n</li>\n<li><p>enrollmentUrl: The URL for enrollment, if applicable.</p>\n</li>\n</ul>\n","urlObject":{"path":["api","MFAValidation","ValidateOperationByMode"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dbc7c8a1-cb8d-49dd-bb78-a822e8772a12"}],"id":"782a33f5-141a-405b-996e-190324cd98dc","description":"<p>It contains methods for MFA Validation actions.</p>\n","_postman_id":"782a33f5-141a-405b-996e-190324cd98dc"}],"id":"3f492fc9-2495-4285-aef6-b7f2a0577fbc","_postman_id":"3f492fc9-2495-4285-aef6-b7f2a0577fbc","description":""},{"name":"ConnectToken","event":[{"listen":"prerequest","script":{"id":"6eec2687-1f5e-4bd9-9331-481e5c86bd23","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"aefdd11e-3cb1-420e-81e5-d21263b9bb78","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"4f065a06-8f1c-4f22-b199-2cb6bfbb930e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"Username","value":"{{username}}","description":"<p>Username or login</p>\n"},{"key":"password","value":"{{password}}","description":"<p>The user's password.  Delete this as soon as the response is recieved. </p>\n"},{"key":"grant_type","value":"VGAuthenticator","description":"<p>Grant type for Visual-Guard User</p>\n"},{"key":"AuthenticationMethod","value":"VisualGuard","type":"text","description":"<p>Authentication mode (ex. VisualGuard, Windows, WindowsByCredential, Passwordless, OKTA, Database etc)</p>\n"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Connects to the token endpoint for authentication and generates the VGAccessToken.</p>\n<p>This VGAccessToken can be used to access the visual-guard api.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f065a06-8f1c-4f22-b199-2cb6bfbb930e"},{"name":"RefreshToken","id":"3f5e97fc-bd9d-400b-9e24-0dead3b93926","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","description":"<p>Client_id of the application. (ex. 6f209594-fc04-4e96-9f9f-7daf57b0fb12_Native) (Guid_Type of application)</p>\n"},{"key":"client_secret","value":"{{client_secret}}","description":"<p>Client_secret of the application</p>\n"},{"key":"scope","value":"{{scope}}","description":"<p>Scopes or identity resources of the application</p>\n"},{"key":"grant_type","value":"refresh_token","description":"<p>refresh_token</p>\n"},{"key":"refresh_token","value":"c030a5e369b9e4a533714c8084c902a6cd3e69fb8978a747c783bd0fe7f6a274","type":"text","description":"<p>Provide Refresh token</p>\n"}]},"url":"{{VGIdentityServerUrl}}/connect/token","description":"<p>Connects to the refreh token endpoint for renewing the VGAccessToken based on last refreshtoken.</p>\n","urlObject":{"path":["connect","token"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f5e97fc-bd9d-400b-9e24-0dead3b93926"},{"name":"GetUserInfo (UserInfo endpoint)","id":"52bbb21e-41bb-4acc-9d4a-e8f1873a2677","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{VGIdentityServerUrl}}/connect/userinfo","description":"<p>Connects to the user-info endpoint to have the identity information of the user. This can be accessed by providing the VGAccessToken.</p>\n","urlObject":{"path":["connect","userinfo"],"host":["{{VGIdentityServerUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"52bbb21e-41bb-4acc-9d4a-e8f1873a2677"},{"name":"EndSession","id":"59144dca-21d2-4ac4-a4a8-6ffb09f4b6bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"{{VGIdentityServerUrl}}/connect/endsession?post_logout_redirect_uri=https://www.microsoft1.com&id_token_hint=eyJhbGciOiJSUzI1NiIsImtpZCI6IjdBQTA1QTY4MjM4NzFDMjU3QzQ2RTFCNEEwMTIyQjFEQzQ4QTIyQjIiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJlcUJhYUNPSEhDVjhSdUcwb0JJckhjU0tJckkifQ.eyJuYmYiOjE2ODc3Nzk1NDUsImV4cCI6MTY4Nzc4MTM0NSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo1MDAwIiwiYXVkIjoiMTcyYjU0NTAtNjk1NC00YmY1LTk4MmYtOWFmNjg4ZjFhYTU4X1dlYkFwcCIsImlhdCI6MTY4Nzc3OTU0NSwiYXRfaGFzaCI6InlPQ05ZRnBrYVVmZnJiR2N5TjF2QlEiLCJzdWIiOiJ0ZXN0IiwiYXV0aF90aW1lIjoxNjg3Nzc5NTI5LCJpZHAiOiJWaXN1YWxHdWFyZCIsInZnSWRlbnRpdHlQcm92aWRlck5hbWUiOiJWaXN1YWxHdWFyZCIsInZnVG9rZW4iOiJGQkRBOUNCREJFNzgzQjExNDlFODhDMUNDQTRBQ0IxNzhFMEY3MjFBQjkxMDZBNUYxMjBGNDgwRjY0RDExMTk1QkIwQTRFRDc0OEVEMzhEN0Q0QUQxM0VFRDhFMjJFRkQwOEQ5NjcyOTIyRTYwQ0MxOUYyRDVFQkEzNzdBMTI2NyIsInZnVXNlcklkIjoidGVzdCIsInZnQXBwbGljYXRpb25zIjoiVmlzdWFsIEd1YXJkIENvbnNvbGUsV2luZG93c0Zvcm1zQXBwMSgxKSxUZXN0QXBwTUZBLFdpbmRvd3NGb3Jtc0FwcF80OCxBcHAxLFRlc3RXaW5Gb3JtLE1WQ0NsaWVudFdpdGhvdXRSdW50aW1lLFZHQ2xpZW50IiwidmdSb2xlcyI6IlJvbGVfQSxSb2xlX0IsUm9sZV9DLFJvbGVfRCIsInZnUGVybWlzc2lvbnMiOiJDYW5BZGQsQ2FuRGl2aWRlLENhbk11bHRpcGx5IiwidmdJc0FwcHJvdmVkIjoiVHJ1ZSIsInZnSXNMb2NrZWQiOiJGYWxzZSIsInZnU3RhcnREYXRlIjoiMS8yNi8yMDIyIDQ6MDg6MjMgUE0iLCJ2Z0VuZERhdGUiOiIxMi8zMS85OTk5IDExOjU5OjU5IFBNIiwidmdGaXJzdG5hbWUiOiIiLCJ2Z0xhc3RuYW1lIjoiIiwidmdFbWFpbCI6Im1hcmsucmlzaGlAbm92YWx5cy5uZXQiLCJ2Z1VBX2NvbXBhbnlOYW1lIjoiY2NjY2NjIiwidmdVQV9jb21wYW55Q29kZSI6IiIsInZnVUFfaW50IjoiMCIsInZnVUFfZG91YmxlIjoiMCIsInZnVUFfZGF0ZXRpbWUiOiIwMS8wMS8wMDAxIDAwOjAwOjAwIiwidmdVQV9ib29sIjoiRmFsc2UiLCJ2Z1VBX2NuYW1lIjoiYWJjZCIsInZnVUFfYm5hbWUiOiJiYmJiIiwidmdVQV96YSI6IiIsImFtciI6WyJWaXN1YWxHdWFyZCJdfQ.DfT6TIq5-OFfhiIpaeJihY9Oh4ctI7DljnAtwmBdgzRQGS2syKfr2RYFG9lzNjR9tWz8jyfuphMzJOt2CtiWcQyN1Id5YYAXkn4rrNRMX-THaaT7QKkN56XnrpzNQF30SNsxEqGM7fMeCpCrNiJ6vWVcgngYk9-C0UrXzK2lp2i_Ua22RKJPS035V8VWf2MX5nBJpYKYJEUcdZGQQ4vxzkudNhhHUlIKsppgR2AYpxY-4AuqOMy3gL6oFjLZEzHvgh3EzdDQDmxGyo7IllQEevbiBEI8lByfMbzwGGMggdm2lS-GF8y4VxDwIS1GQHfrfS5PAvbpKaf3A_YWlSxQjA","urlObject":{"path":["connect","endsession"],"host":["{{VGIdentityServerUrl}}"],"query":[{"key":"post_logout_redirect_uri","value":"https://www.microsoft1.com"},{"key":"id_token_hint","value":"eyJhbGciOiJSUzI1NiIsImtpZCI6IjdBQTA1QTY4MjM4NzFDMjU3QzQ2RTFCNEEwMTIyQjFEQzQ4QTIyQjIiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJlcUJhYUNPSEhDVjhSdUcwb0JJckhjU0tJckkifQ.eyJuYmYiOjE2ODc3Nzk1NDUsImV4cCI6MTY4Nzc4MTM0NSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo1MDAwIiwiYXVkIjoiMTcyYjU0NTAtNjk1NC00YmY1LTk4MmYtOWFmNjg4ZjFhYTU4X1dlYkFwcCIsImlhdCI6MTY4Nzc3OTU0NSwiYXRfaGFzaCI6InlPQ05ZRnBrYVVmZnJiR2N5TjF2QlEiLCJzdWIiOiJ0ZXN0IiwiYXV0aF90aW1lIjoxNjg3Nzc5NTI5LCJpZHAiOiJWaXN1YWxHdWFyZCIsInZnSWRlbnRpdHlQcm92aWRlck5hbWUiOiJWaXN1YWxHdWFyZCIsInZnVG9rZW4iOiJGQkRBOUNCREJFNzgzQjExNDlFODhDMUNDQTRBQ0IxNzhFMEY3MjFBQjkxMDZBNUYxMjBGNDgwRjY0RDExMTk1QkIwQTRFRDc0OEVEMzhEN0Q0QUQxM0VFRDhFMjJFRkQwOEQ5NjcyOTIyRTYwQ0MxOUYyRDVFQkEzNzdBMTI2NyIsInZnVXNlcklkIjoidGVzdCIsInZnQXBwbGljYXRpb25zIjoiVmlzdWFsIEd1YXJkIENvbnNvbGUsV2luZG93c0Zvcm1zQXBwMSgxKSxUZXN0QXBwTUZBLFdpbmRvd3NGb3Jtc0FwcF80OCxBcHAxLFRlc3RXaW5Gb3JtLE1WQ0NsaWVudFdpdGhvdXRSdW50aW1lLFZHQ2xpZW50IiwidmdSb2xlcyI6IlJvbGVfQSxSb2xlX0IsUm9sZV9DLFJvbGVfRCIsInZnUGVybWlzc2lvbnMiOiJDYW5BZGQsQ2FuRGl2aWRlLENhbk11bHRpcGx5IiwidmdJc0FwcHJvdmVkIjoiVHJ1ZSIsInZnSXNMb2NrZWQiOiJGYWxzZSIsInZnU3RhcnREYXRlIjoiMS8yNi8yMDIyIDQ6MDg6MjMgUE0iLCJ2Z0VuZERhdGUiOiIxMi8zMS85OTk5IDExOjU5OjU5IFBNIiwidmdGaXJzdG5hbWUiOiIiLCJ2Z0xhc3RuYW1lIjoiIiwidmdFbWFpbCI6Im1hcmsucmlzaGlAbm92YWx5cy5uZXQiLCJ2Z1VBX2NvbXBhbnlOYW1lIjoiY2NjY2NjIiwidmdVQV9jb21wYW55Q29kZSI6IiIsInZnVUFfaW50IjoiMCIsInZnVUFfZG91YmxlIjoiMCIsInZnVUFfZGF0ZXRpbWUiOiIwMS8wMS8wMDAxIDAwOjAwOjAwIiwidmdVQV9ib29sIjoiRmFsc2UiLCJ2Z1VBX2NuYW1lIjoiYWJjZCIsInZnVUFfYm5hbWUiOiJiYmJiIiwidmdVQV96YSI6IiIsImFtciI6WyJWaXN1YWxHdWFyZCJdfQ.DfT6TIq5-OFfhiIpaeJihY9Oh4ctI7DljnAtwmBdgzRQGS2syKfr2RYFG9lzNjR9tWz8jyfuphMzJOt2CtiWcQyN1Id5YYAXkn4rrNRMX-THaaT7QKkN56XnrpzNQF30SNsxEqGM7fMeCpCrNiJ6vWVcgngYk9-C0UrXzK2lp2i_Ua22RKJPS035V8VWf2MX5nBJpYKYJEUcdZGQQ4vxzkudNhhHUlIKsppgR2AYpxY-4AuqOMy3gL6oFjLZEzHvgh3EzdDQDmxGyo7IllQEevbiBEI8lByfMbzwGGMggdm2lS-GF8y4VxDwIS1GQHfrfS5PAvbpKaf3A_YWlSxQjA"}],"variable":[]}},"response":[],"_postman_id":"59144dca-21d2-4ac4-a4a8-6ffb09f4b6bb"},{"name":"ConnectAuthorize_template","event":[{"listen":"prerequest","script":{"id":"6eec2687-1f5e-4bd9-9331-481e5c86bd23","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"aefdd11e-3cb1-420e-81e5-d21263b9bb78","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"0a3d8763-9ddb-4d99-b18e-6bc0ccf3b78a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{VGIdentityServerUrl}}/connect/authorize?client_id={{client_id}}&scope={{scope}}&redirect_uri=http://localhost:5002/signin-oidc&response_type=code","description":"<p>Connects to the token endpoint for authentication and generates the VGAccessToken.</p>\n<p>This VGAccessToken can be used to access the visual-guard api.</p>\n","urlObject":{"path":["connect","authorize"],"host":["{{VGIdentityServerUrl}}"],"query":[{"key":"client_id","value":"{{client_id}}"},{"key":"scope","value":"{{scope}}"},{"key":"redirect_uri","value":"http://localhost:5002/signin-oidc"},{"disabled":true,"key":"client_secret","value":"secret"},{"key":"response_type","value":"code"}],"variable":[]}},"response":[],"_postman_id":"0a3d8763-9ddb-4d99-b18e-6bc0ccf3b78a"},{"name":"ConnectAuthorize_AutowindowsssoFalse_template","event":[{"listen":"prerequest","script":{"id":"6eec2687-1f5e-4bd9-9331-481e5c86bd23","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"aefdd11e-3cb1-420e-81e5-d21263b9bb78","exec":["\r","\r"," var vgToken = pm.response.json().access_token;\r"," console.log(vgToken);\r","\r","pm.environment.set(\"BearerToken\", vgToken);\r","pm.collectionVariables.set(\"BearerToken\", vgToken);"],"type":"text/javascript"}}],"id":"d9a6406e-c3ab-4908-8527-29e366f7ab5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{VGIdentityServerUrl}}/connect/authorize?client_id={{client_id}}&scope={{scope}}&redirect_uri=http://localhost:5002/signin-oidc&response_type=code","description":"<p>Connects to the token endpoint for authentication and generates the VGAccessToken.</p>\n<p>This VGAccessToken can be used to access the visual-guard api.</p>\n","urlObject":{"path":["connect","authorize"],"host":["{{VGIdentityServerUrl}}"],"query":[{"key":"client_id","value":"{{client_id}}"},{"key":"scope","value":"{{scope}}"},{"key":"redirect_uri","value":"http://localhost:5002/signin-oidc"},{"disabled":true,"key":"client_secret","value":"secret"},{"key":"response_type","value":"code"}],"variable":[]}},"response":[],"_postman_id":"d9a6406e-c3ab-4908-8527-29e366f7ab5e"},{"name":"ConnectToken_AuthorizationCode","id":"ba04df9c-77f2-4932-8451-4f120e1147c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"authorization_code","type":"text"},{"key":"code","value":"c739283b113d20ee06efaa4996824797a82ba15eb9cc27d049ff929567fb33e0","type":"text"},{"key":"client_id","value":"172b5450-6954-4bf5-982f-9af688f1aa58_WebApp","type":"text"},{"key":"redirect_uri","value":"http://localhost:5002/signin-oidc","type":"text"},{"key":"client_secret","value":"secret","type":"text"}]},"url":"http://localhost:5000/connect/token?autoWindowsLogin=false","urlObject":{"protocol":"http","port":"5000","path":["connect","token"],"host":["localhost"],"query":[{"disabled":true,"key":"grant_type","value":"authorization_code"},{"disabled":true,"key":"code","value":"a764d91ee106937af6082405f1f43e13bb19ab232612921c50609364993bb7e3"},{"disabled":true,"key":"client_id","value":"172b5450-6954-4bf5-982f-9af688f1aa58_WebApp"},{"disabled":true,"key":"redirect_uri","value":"http://localhost:5002/signin-oidc"},{"key":"autoWindowsLogin","value":"false"}],"variable":[]}},"response":[],"_postman_id":"ba04df9c-77f2-4932-8451-4f120e1147c0"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"fdd8b5bb-2017-43c1-8221-d5054728035c"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"7a4723e9-8fa6-401f-8357-3053824b01e4"}}],"variable":[{"key":"","value":""},{"key":"BearerToken","value":""},{"key":"{{SERVER_URL}}","value":""}]}