adal

Outlook App - ADAL Authentication - AADSTS90056: This endpoint only accepts POST requests

不问归期 提交于 2019-12-23 10:58:27
问题 I'm working on an Outlook Add-in which authenticates the user against Azure AD and runs queries against SharePoint Online sites. The app uses AngularJS and makes use of the ADAL.js and ADAL-Angular.js libraries to conduct the authentication process. The app works well within the browser, however fails during the authentication process when used through the Windows Version of Outlook. Once the user inputs his username and password within the add-in in Outlook (Windows), and Internet Explorer

Error while using ADAL.net AcquireTokenAsync call

做~自己de王妃 提交于 2019-12-23 04:48:25
问题 I am exploring Azure Active Directory. I am trying to see whether I can use my own login page with custom user id/password controls to capture the user credentials and validate against Azure AD. I am using ADAL.net to implement this, however I get an error "parsing_wstrust_response_failed: Parsing WS-Trust response failed". I get this error on the last line of the below code. The below is my code: string AppIdURL = ConfigurationManager.AppSettings["AppIdUrl"]; UserCredential uc = new

Cannot add a new item in the keychain. Error code: -25243. in ADAL iOS

一笑奈何 提交于 2019-12-23 03:46:48
问题 I have integrated microsoft's ADAL library for iOS in my iOS objective C project. I authenticated the azure's proxy share point site and keep the app in idle state for more than an hour. After I activate the app and click on any hyper-link I get the following error Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo=0x1452d320 {NSErrorFailingURLKey=https://login.windows.net/*someToken*/oauth2/authorize?response_type=id_token&client_id=319ef615-4cb2-4e65-97bd-69a5fed167a4

Can Azure AD ADAL (ios) refresh token be revoked from the client?

元气小坏坏 提交于 2019-12-23 03:12:30
问题 I am trying to use ADALiOS in an iOS app. I also want to have a logout button so that, if needed, the user can elect to logout from the app. The best way, I think, would be to revoke the refresh token (the access token is short-lived and can't be revoked), which ideally should also revoke the token and do clean up on the server-side. I tried Azure AD docs, searched in the source code (and in general searched elsewhere), but couldn't find any mention of refresh token revocation in ADAL. Can a

How to set the UserInfo of a ADAL Token

谁都会走 提交于 2019-12-22 18:40:13
问题 So im building a ASP.NET web app that uses ADAL with Office 365 but I would like to have ADAL save the tokens so that the user will not have to log into Office each Session. I've looked all over the place and have figured out how to implement a token cache but I still don't know how to create the token with the current Users info so that I can retrieve it. Im sure it's as simple as adding a argument to one of the AcquireToken methods but I cant find out how. For referance this is what I have

Failed to acquire token silently as no token was found in the cache. Call method AcquireToken

狂风中的少年 提交于 2019-12-22 18:24:25
问题 I use this code sample :https://github.com/Azure-Samples/active-directory-dotnet-graphapi-web , i know this code sample is using client library , but if i want to perfrom a query (use httpclient) directly use api calls ,i used below code to get the access token from cache : string userObjectID = ClaimsPrincipal.Current.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier").Value; AuthenticationContext authContext = new AuthenticationContext(Startup.Authority, new

Microsoft.AspNetCore vs Microsoft.IdentityModel (ADAL) with .net core API in Azure AD

旧巷老猫 提交于 2019-12-22 13:49:34
问题 Cheers, I'm looking for some clarification regarding authentication libraries for use with Azure AD, particularly regarding the differences between Microsoft.AspNetCore and Microsoft.IdentityModel based libraries. I am implementing an Api in .net core for which authentication will be managed with Azure Active Directory (AAD). Based on the needs of the application I am looking to use the original (v1) endpoint with ADAL rather than the v2 endpoint due to some features not being available with

On behalf of token issue (AADSTS50013: Assertion contains an invalid signature)

泄露秘密 提交于 2019-12-22 12:33:47
问题 I'm getting an error (mentioned below) when I'm trying to use Cortana Bot user token (which is a Graph token) to generate an "on-behalf-of" token to another consuming Web API application using ClientAssertionCertificate / ClientCredential targeted to another consuming Web API by passing its AppId as ResourceId and userAssertion generated by using Cortana Bot user token. When checked our Bot AAD settings it is configured with other consuming Web API (API B) as valid application along with

On behalf of token issue (AADSTS50013: Assertion contains an invalid signature)

◇◆丶佛笑我妖孽 提交于 2019-12-22 12:33:11
问题 I'm getting an error (mentioned below) when I'm trying to use Cortana Bot user token (which is a Graph token) to generate an "on-behalf-of" token to another consuming Web API application using ClientAssertionCertificate / ClientCredential targeted to another consuming Web API by passing its AppId as ResourceId and userAssertion generated by using Cortana Bot user token. When checked our Bot AAD settings it is configured with other consuming Web API (API B) as valid application along with

ADAL - AcquireTokenSilentAsync fails (Azure Active Directory Authentication Libraries)

狂风中的少年 提交于 2019-12-22 10:37:52
问题 I write a new application to access office data through the rest API, therefore i would like to use the new Authentication Model (V2.0 Endpoint) What's different about the v2.0 endpoit I can get a token with a call to private static string[] scopes = { "https://outlook.office.com/mail.read", "https://outlook.office.com/calendars.read" }; public async Task<ActionResult> SignIn() { ... SNIP Uri authUri = await authContext.GetAuthorizationRequestUrlAsync(scopes, null, clientId, redirectUri, new