msal

How can I use MS Graph to list Azure AD instances for a given LiveID account?

我们两清 提交于 2019-12-01 08:14:20
问题 I have a customer who is using a liveID account to manage 20+ different Azure AD directories. How can I get a list of all the Azure AD instances associated with this account? I tried using this graph explorer to figure out which query was correct, however every time I tried to consent to a Directory Read consent, the tool didn't accept it. (it would run, but the checkbox would be cleared upon inspection ) My goal is to determine at runtime, which instances have had "administrative consent" to

Azure Graph API, Angular, Get users Groups

对着背影说爱祢 提交于 2019-12-01 07:31:18
I want to query Azure AD Graph API to retrieve the groups claim for the logged in user from a registered Azure B2C app. The app I'm calling from is an Angular 5 SPA. After experimenting with Azure Active Directory and adal-angular4, I was successful retrieving a user's custom roles claim . To do this, I registered an Azure AD app, set required permission scopes, added custom roles to the application's manifest, added the user to the application, and set the custom role for the user. Then, I used my new registered app's application id and tenant for the adal-angular4 config. When I query the

Azure Graph API, Angular, Get users Groups

喜欢而已 提交于 2019-12-01 05:04:20
问题 I want to query Azure AD Graph API to retrieve the groups claim for the logged in user from a registered Azure B2C app. The app I'm calling from is an Angular 5 SPA. After experimenting with Azure Active Directory and adal-angular4, I was successful retrieving a user's custom roles claim . To do this, I registered an Azure AD app, set required permission scopes, added custom roles to the application's manifest, added the user to the application, and set the custom role for the user. Then, I

Desktop client flow for MicrosoftAccount access to Azure Mobile Service API

折月煮酒 提交于 2019-12-01 00:22:41
I have followed Adrian Halls book to create a cross platform app with a Mobile Service API backend. I have successfully got unsecured access to the backend working from Android, iOS and Desktop (WPF) clients. I am moving on to adding security to the API using the Authorise attribute. I would like to add social authentication using MicrosoftAccount (formerly passport/Live ID). Since Adrian wrote his book the Microsoft.Azure.Mobile.Client and the authentication and authorisation landscape seem to have moved on. The samples given in the book no longer build and Microsoft's social authentication

Microsoft Graph API token validation failure

感情迁移 提交于 2019-11-29 15:19:29
I would use Microsoft Graph API in my Angular Web application. First I make connexion using msal library When I try log in with my profil I get this error I have configured my app as the mentionned in the official git sample MsalModule.forRoot({ clientID: "Tenant ID", authority: "https://login.microsoftonline.com/common/", redirectUri: "http://localhost:4200/", validateAuthority : true, popUp: true }), Authetification is working and I get the token. Then when I'm in home page I make a second request to Microsoft Graph API to get user information using that token. getProfile() { let header= new

How to properly import and use the MSAL (Microsoft Authentication Library for js) into a typescript react single page application?

亡梦爱人 提交于 2019-11-29 01:24:30
Problem I can't seem to get the MSAL library to import properly into my typescript code. I'm using the MSAL for JS library (which is supposed to have typings) in a simple typescript/react project scaffolded using the create-react-app with react-typescript scripts. I'm new to typescript and not sure if I'm missing something obvious or if there is a problem with the MSAL package when using it with typescript projects. Details: I added the MSAL package from NPM using npm install --save msal . I attempted to import the MSAL into my .ts using different forms of import {Msal} from 'msal'; This

Login-AzureRmAccount (and related) equivalent(s) in .NET Azure SDK

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 11:13:32
问题 I became to wonder, what would could the equivalents of Login-AzureRmAccount New-AzureRmADServicePrincipal New-AzureRmADApplication in Azure SDK for .NET. For some reason I don't seem to be able to locate them and I would like to do something like in this blog post, but in code. <edit: 2017-06-20 00:42 Taking some cues from Tom Sun and poking this a bit deeper, I found an answer that solves partially a problem of "old libraries" and also the one initially choosing a subscription. It's

Getting Azure B2C SignUpSignIn Application Claims using MSAL in Xamarin.Forms

雨燕双飞 提交于 2019-11-28 05:30:20
问题 I'm creating a Xamarin.Forms app using Azure B2C and MSAL ( Microsoft.Identity.Client NuGet package) to authenticate users. When the app opens, I attempt to authenticate them in the background using the following code: AuthenticationResult ar; ar = await App.AuthenticationClient.AcquireTokenSilentAsync(Scopes, userIdentifier, Authority, SignUpSignInpolicy, false); If that fails, the app switches and authenticates them with the standard AquireTokenAsync() method. AuthenticationResult ar; ar =

B2C - Open registrar form instead login form

被刻印的时光 ゝ 提交于 2019-11-28 02:24:37
I am using Azure B2C authorization for my single app Azure functions. I allowing user to login with google account or with user name / password. In order to show login page I used msal library. Now I have a situation, where I want to show user the registration page directly, and not first the login page and then he have to click create new account. Is there a way to do it? with msal or a different library? Nope, but you can create a "Sign up policy" and link directly to that. 来源: https://stackoverflow.com/questions/45724207/b2c-open-registrar-form-instead-login-form

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

社会主义新天地 提交于 2019-11-27 20:40:13
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.ActiveDirectory ) is intended as Microsoft's "one-Azure-authentication-library-to-rule-them-all", and it