Access ServiceDesk APIs over Azure Pre Auth with Entra ID as Pre Authentication
Challenge:
When the application is hosted over Azure Pre Authentication with Entra ID as Pre-Authentication, all the REST APIs would fail to work.
Workaround:
As suggested by Microsoft, we can obtain the id_token by using the scope openid,offline_access to their OAuth URLs and send the id token as Authorization header like below when making the API calls through the API client like PostMan.
"Authorization": "Bearer {{id_token}}"
We can also refresh this access token, id_token via this:
POST {{token_url}}
grant_type: "refresh_token"
client_id: "{{client_id}}"
client_secret: "{{client_secret}}"
refresh_token: "{{refresh_token}}"
New to ADSelfService Plus?
Related Articles
SAML Auto Login with ADFS (in Intranet)
Steps to enable Auto-logon: Step 1: In the AD FS server, under Authentication Methods, make sure that Windows Authentication is selected. Step 2: Run the below powershell query to check if "Chrome" is present in the supported WIA agents: ...
Configuring SAML with ADFS
Step 1: Open the ADFS management application Step 2: Right-click Relying Party trust and choose Add Relying Party Trust. The Add Relying Party Trust Wizard opens. Step 3: Choose Claims Aware and click Start Step 4: Choose Enter data about the relying ...
How to configure SAML with Azure AD
This guide will help us configure SAML for users who want to use Azure AD as their IdP and also give you insights on a few issues that you might run into while configuring SAML in an Azure Environment. In an ideal environment, customers will have an ...
How to configure SAML with Azure AD
This guide will help us configure SAML for users who want to use Azure AD as their IdP and also give you insights on a few issues that you might run into while configuring SAML in an Azure Environment. In an ideal environment, customers will have an ...
How to configure SAML with Azure AD
This guide will help us configure SAML for users who want to use Azure AD as their IdP and also give you insights on a few issues that you might run into while configuring SAML in an Azure Environment. In an ideal environment, customers will have an ...