adal

Can users from an unmanaged Azure AD directory, sign into an Azure AD multi-tenant application which resides in a different directory?

倖福魔咒の 提交于 2019-12-19 10:32:19
问题 I'm trying out Azure AD B2B capabilities for my company. I have tried to invite external users through the portal and by using https://graph.microsoft.com/beta/invitations. Users are successfully invited and added to our directory in both scenarios. Login works for social accounts (that then use a Microsoft account). If it's a non-social account aka contoso.com, that does not have an Azure AD from before, I get an access_denied when our application tries to log in the user. If I try to force

Angular HTTP Interceptor how to chain an observable

孤街醉人 提交于 2019-12-19 09:47:42
问题 I am using the Azure AD adal library to do authentication. There is a call to aquire a token that returns an observable. How can this observable be added into the intercept? In the below example, how can I get the request that is set inside the subscribe to be returned as the Observable? intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { this.authAzureService.getAccessToken() .subscribe(token => { // I need this to be returned request = this

multiple_matching_tokens_detected with ADAL

岁酱吖の 提交于 2019-12-19 09:00:29
问题 I have a service that uses Azure access tokens that we retrieve using ADAL. We have several hundred customers, but for some reason there are two of them that sporadically generate this error when we try to retrieve an AuthenticationResult for them: multiple_matching_tokens_detected: The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements (e.g. UserId). I have no idea why only these two folks out of hundreds have this issue and really

ADAL.js - Obtaining Microsoft Graph Access Token with id_token

懵懂的女人 提交于 2019-12-19 08:07:34
问题 I am attempting to integrate Azure AD login and Graph API into my angular2 website. I have successfully implemented an ADAL login and redirect, built around a useful blog post here From this I retrieved an id_token parameter that my adalservice can access. Currently this is acheived through a simple context.login() and catching the token in the redirect. When I use this token to try and access Microsoft Graph, I receive an InvalidAuthenticationToken response stating Access Token validation

C# ADAL AcquireTokenAsync() without pop-up box

◇◆丶佛笑我妖孽 提交于 2019-12-19 03:20:54
问题 We are writing a WCF service which has to integrate with Dynamics CRM 2016 Online. I'm trying to authenticate using ADAL, using method AcquireTokenAsync() . Problem is, it displays a pop-up box, prompting the user for credentials. Naturally, our application being a service, this isn't what we want. We've been searching for a way to authenticate without having this pop-up box. There is a class called AuthenticationContextIntegratedAuthExtensions , which is supposed to assist with "username

AcquireTokenSilent always Failed to acquire token silently

心已入冬 提交于 2019-12-18 18:58:32
问题 Using ADAL I have two AuthenticationContext using a Token Cache persisted in SQL. Using AcquireTokenByAuthorizationCode it writes the Token in database, but when using AcquireTokenSilent I always get Failed to acquire token silently. Call method AcquireToken Here are the details for replication the issue: I create a Context AuthenticationContext authContext = new AuthenticationContext(_authority, new AzureAdalCache(companyId, _entries, _unitOfWork)); Then I AcquireToken By Authorization

401- Unauthorized authentication using REST API Dynamics CRM with Azure AD

╄→гoц情女王★ 提交于 2019-12-18 11:28:58
问题 I'm trying to access a Dynamics CRM Online REST API with Azure AD oAuth 2 Authentication. In order to do so I followed these steps: - I've registered a web application and/or web api in Azure - Configured the permissions to Dynamics CRM to have Delegated permissions "Access CRM Online as organization user" - And created a Key with a 1 year expiration and kept the Client ID generated. After the web app was configured on Azure I have created a Console application in .NET/C# that uses ADAL to

ADAL.NET v3 does not support AcquireToken with UserCredential?

↘锁芯ラ 提交于 2019-12-17 19:19:33
问题 In ADAL.NET 2.x, we use the below code to acquire token from Azure AD using UserCredential and it works perfectly: var authContext = new AuthenticationContext(Authority); var userCredential = new UserCredential(username, password); var token = authContext.AcquireToken(ResourceUrl, ClientId, userCredential); When I upgraded ADAL.NET v3 today, the code cannot be compiled anymore because on the new version, UserCredential does not have overloaded constructor with username and password. How I can

MSAL or ADAL library for use with Azure AD B2C and Xamarin

喜欢而已 提交于 2019-12-17 15:57:06
问题 As of October 2016, is it still the case that the Microsoft Authentication Library (MSAL - NuGet package: Microsoft.Identity.Client ) is the correct/only library to use with Xamarin (iOS/Android) and the Azure AD B2C service? This library (MSAL) is only available as an alpha and does not appear to be in a state of being actively maintained or developed (since April). There are indications that the Active Directory Authentication Library (ADAL - NuGet package: Microsoft.IdentityModel.Clients

Adal JS - Logout of just one AD site

泄露秘密 提交于 2019-12-14 03:05:17
问题 I'm working on a SPA that is utilizing ADAL JS. After calling adalService.logOut(), the user is properly redirected to the microsoft oauth logout URL and logout happens just fine. However, the user is logged out of all Microsoft 365 sites and all other sites utilizing ADAL. Is there a way to only the log the user out of this one site? 回答1: Unfortunately, the way the ADAL JS library works is just as you described. When the logout function is called it clears the entire cache. Per the Wiki :