adal

ADAL Mac returns 300 AD_ERROR_CACHE_MULTIPLE_USERS error

大兔子大兔子 提交于 2021-02-07 20:55:29
问题 We are using the ADAL Mac library to authenticate. When using this library we get a 300 error (AD_ERROR_CACHE_MULTIPLE_USERS) with the description: The token cache store for this resource contains more than one user. Please set the 'userId' parameter to the one that will be used. When does this happen? How should one handle this scenario? 回答1: Background ADAL has a token cache for all access/refresh tokens on the device. The cache keys on things like the user, resource being requested, etc.

ADAL Mac returns 300 AD_ERROR_CACHE_MULTIPLE_USERS error

橙三吉。 提交于 2021-02-07 20:55:18
问题 We are using the ADAL Mac library to authenticate. When using this library we get a 300 error (AD_ERROR_CACHE_MULTIPLE_USERS) with the description: The token cache store for this resource contains more than one user. Please set the 'userId' parameter to the one that will be used. When does this happen? How should one handle this scenario? 回答1: Background ADAL has a token cache for all access/refresh tokens on the device. The cache keys on things like the user, resource being requested, etc.

ADAL Mac returns 300 AD_ERROR_CACHE_MULTIPLE_USERS error

为君一笑 提交于 2021-02-07 20:54:20
问题 We are using the ADAL Mac library to authenticate. When using this library we get a 300 error (AD_ERROR_CACHE_MULTIPLE_USERS) with the description: The token cache store for this resource contains more than one user. Please set the 'userId' parameter to the one that will be used. When does this happen? How should one handle this scenario? 回答1: Background ADAL has a token cache for all access/refresh tokens on the device. The cache keys on things like the user, resource being requested, etc.

Callback after Login() of ADAL.js is not called in Edge

一笑奈何 提交于 2021-02-07 19:55:01
问题 I am using ADAL.js(which calls Azure Active Directory) as javascript library for verifying the user. I am using the following code for this: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <script src="https://secure.aadcdn.microsoftonline-p.com/lib/1.0.15/js/adal.min.js"></script> <script> var endpoints = { "https://management.core.windows.net": "https://management.core.windows.net" }; var config = { clientId: 'e333d3fe-a73a-4476-8121-8a57f9a972ca',

Callback after Login() of ADAL.js is not called in Edge

戏子无情 提交于 2021-02-07 19:54:22
问题 I am using ADAL.js(which calls Azure Active Directory) as javascript library for verifying the user. I am using the following code for this: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <script src="https://secure.aadcdn.microsoftonline-p.com/lib/1.0.15/js/adal.min.js"></script> <script> var endpoints = { "https://management.core.windows.net": "https://management.core.windows.net" }; var config = { clientId: 'e333d3fe-a73a-4476-8121-8a57f9a972ca',

Azure Active Directory Logout with ADAL library

僤鯓⒐⒋嵵緔 提交于 2021-02-07 06:21:31
问题 I used the my Azure Active Directory to protect my web API and I create a native application in the Azure management portal. This native application is basically a MVC web application and I use the ADAL library to get the token and call the api with that token. The code I used to get the token is shown below: AuthenticationContext ac = new AuthenticationContext(authority); AuthenticationResult ar = ac.AcquireToken(resourceID, clientID, redirectURI); string accessToken = ar.AccessToken; Now I

How do I verify a JWT signature for an Azure B2C id token in Java?

狂风中的少年 提交于 2021-02-06 05:00:49
问题 How do I verify a JWT signature for an Azure B2C id token in Java? I have successfully verified signatures with google open-id connect, but I have not been successful verifying signatures for Microsoft Azure B2C jwt id tokens. I used the example B2C playground app here https://aadb2cplayground.azurewebsites.net/ . After signing up and editing my profile, and I captured this id token.

How do I verify a JWT signature for an Azure B2C id token in Java?

余生长醉 提交于 2021-02-06 04:59:08
问题 How do I verify a JWT signature for an Azure B2C id token in Java? I have successfully verified signatures with google open-id connect, but I have not been successful verifying signatures for Microsoft Azure B2C jwt id tokens. I used the example B2C playground app here https://aadb2cplayground.azurewebsites.net/ . After signing up and editing my profile, and I captured this id token.

Error with authentication in e2e tests using cypress: chrome-error://chromewebdata

偶尔善良 提交于 2021-01-28 09:28:27
问题 I'm using cypress for writing E2E tests for my UI (Note that it's a PowerBI report, hence it's kind of special case). When I am testing with a public report, it works fine. But when it's a private PBI report, I am having trouble with login part. After some research, I found this approach promising for Azure AD based auth, and added this login function in my commands.js file: Cypress.Commands.add('login', () => { cy.request({ method: 'POST', url: 'https://login.microsoftonline.com/{TENANT}

Azure Active Directory B2C deployment via resource manager (or code)

你说的曾经没有我的故事 提交于 2021-01-02 05:20:27
问题 Our company is considering using AAD B2C as the backing store for our SaaS user accounts. Our plan is use Resource Manager templates to deploy the Azure infrastructure (web, storage, sql, etc) for each client. AAD B2C will be part of that if this works out, but as of now there doesn't appear to be a way to include AAD B2C in resource manager templates. My view of the intent of the B2C product is that it serves as a replacement for the auth and user store components of an app, and should