adal

How to decode Azure B2C cookie

十年热恋 提交于 2019-12-12 18:57:03
问题 I have hard time making my Azure B2C renewing procedure work. So if my cookie is visible when I access the login url (login.microsoftonline.com), under x-ms-cpim-sso:myApp.onmicrosoft.com_0, is there a way to decode its value? I would like to see when it expires and other related iformation. 来源: https://stackoverflow.com/questions/48328607/how-to-decode-azure-b2c-cookie

Token-based database authentication fails with “Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.”

折月煮酒 提交于 2019-12-12 13:10:51
问题 I'm having trouble getting token-based database authentication working. Connecting with Active Directory Password works, but when connecting with a token I receive the following error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. This problem has been discussed here on Stack Overflow and here on MSDN, but no solution is available. This blog post suggests there is something wrong with user permissions, but it's rather vague. Configuration Acquiring a token succeeds, with the following

The user credentials are need to obtain access token. Please call the non-silent acquireTokenWithResource methods. ADALiOS issue

╄→гoц情女王★ 提交于 2019-12-12 10:23:24
问题 In my swift project, I am using convergence dev branch source code. I have added ADALiOS files manually in my project. Currently retrieving access token from refresh token is a problem. Till last week my project was working all fine but as I opened my project on Mondat i.e. 20th March, 2016, I don't know how and why my app is not able to save access token in local cache. So whenever I tried to get access token silently it is unable to retrieve it from local cache. For every call I am getting

401 error when authenticating to an Azure API App using AAD

若如初见. 提交于 2019-12-12 08:48:58
问题 I have an API app that has been working fine with a Gateway Host and now that the gateway host is being deprecated I'm trying to follow the Migration Guide. I've redeployed my service using the 2.8.1 SDK and can log into the service with a browser using AAD or a Microsoft account and use Swagger to test the service. However, I'm trying to get a client to access the service using a ClientId and Secret. The code is able to get the access token from AAD but I always get a 401 error whenever I

How to LogOut from iOS ADAL Authentication?

假装没事ソ 提交于 2019-12-12 07:35:53
问题 I have integrated ADAL library into my iOS application and it's working fine. But now I want to log out from ADAL. How can I do log out? 回答1: There are two places where sign-in state is stored when using an ADAL interactive flow. The first is the token cache that is entirely in the control of the app. Calling [authContext.tokenCacheStore removeAllWithError:&error] is a good way to clear all cached tokens and stop ADAL from being able to login without launching the browser at all. However,

ADAL username/password flow in .net standard 1.4

烈酒焚心 提交于 2019-12-12 07:06:26
问题 I'm trying to port a powershell module to .Net standard. One thing I notice is that the UserPasswordCredential class is not present in the .Net standard library. Is it not possible to perform a username/password flow login using adal in .Net Standard/Core? 回答1: Yes, UserPasswordCredential is not available for .Net Core. However, as a workaround you can construct the HTTP request directly. More detail, you can refer the thread here. 来源: https://stackoverflow.com/questions/40497937/adal

What class/method in Adal4J verifies the signature of an Azure AD access code

北慕城南 提交于 2019-12-12 04:45:35
问题 Is it possible in ADAL4J to verify the signature of a received access token from Azure AD? I wrote my own code to retrieve the jwks_uri from the openid connect .wellknown meta doc and get the public key indicated by the kid from the doc the jwks_uri points at. Now I'm looking at whether Adal4J can do this for me. Is there a class/method I can pass in the oAuth2 access code and it will do the above? Thanks! Jan 回答1: The adal4j library is used to help developers to acquire the access_token from

How can I use my Azure AD app from another tenant?

那年仲夏 提交于 2019-12-12 04:44:56
问题 I am developping a native app that has to display the Office 365 groups the user is a member of. For this, I call the Microsoft Graph API wich requires authentication. I'm using the ADAL library. The permissions needed require admin consent. Everything works fine for users from my tenant, but when I try to authenticate with an account of another tenant it doesn't work. It keeps giving this result : Correlation ID: 9780ed24-9d24-4604-b8bf-28a02c2ea580 Timestamp: 2017-04-14 12:05:45Z

ADAL for iOS exception with a different user sign-on

一笑奈何 提交于 2019-12-12 03:58:26
问题 I am using the ADAL iOS library for Azure authentication. However, I am having a problem if I first signed on with one account, and then sign-out and sign-in with another account. I get the following error, even though I set 'AD_PROMPT_ALWAYS'. 2015-08-31 12:50:39.939 PortalDev[908:174411] ADALiOS [2015-08-31 11:50:39 - xxx-xxx-xxx-xxx-xxx] ERROR: Error raised: 19. Additional Information: Domain: ADAuthenticationErrorDomain ProtocolCode:(null) Details:Different user was authenticated.

How can I retrieve the JSON response from an AdalException?

送分小仙女□ 提交于 2019-12-12 03:54:34
问题 If I call AuthenticationContext.AcquireToken from our service, it throws an AdalException in a certain situation because the token I’m sending is missing a required claim. The response from when I call AcquireToken contains JSON in it with the claim that is missing. I want to be able to get at that JSON (specifically the missing claim information) so I can attempt to reauthorize the user with that missing claim. Once I catch the AdalException from calling AcquireToken, how can I get at the