adal

Manage user from Azure AD B2C using AD Graph API - secure access

一世执手 提交于 2019-12-25 18:12:44
问题 We are building a Xamarin Native mobile apps and using Azure AD B2C for authenticating users using their social logins. We decided use MSAL native library (Xamarin) for authenticating using B2C. And our mobile app required to manage(full access) the signed-in user profile. Since this feature isn't available in MSAL we have decided to go with ADAL for the time being. Followed the instruction provided in the link below and the sample works. But I started experimenting by deleting the API access

Combining ADAL.Net and ADAL.js

£可爱£侵袭症+ 提交于 2019-12-25 07:52:28
问题 I have a legacy application that was written using web forms. In this project we started to convert some of the webforms to SPA, angular.js, and WebAPI. The SPA pages communicate directly with the WebAPI. The idea is that eventually, all of the webforms will be converted to the new technology. For the SPA pages, I've implemented adal.js and for the webforms I'm using ADAL.net. Both are obviously using Azure Active Directory. However, they don't seem to be using the same bearer token, because

Using ADAL in .net 3.5

自闭症网瘾萝莉.ら 提交于 2019-12-25 06:29:55
问题 I have an AzureAD registered Web API working correctly. I am able to acquire the access token by means of AcquireTokenAsync. No problems there. However, no I need to downgrade my rest client library to .net 3.5. I am not being able to use ADAL in .net 3.5. AcquireTokenAsync returns a Task, which is not supported in 3.5. I have read in some tutorials that there is a non async verstion of the method (AcquireToken) here. But I just can't access that method. Also, when I try to install that

How to use Management certificate based authentication for making REST API calls to Azure?

戏子无情 提交于 2019-12-24 17:30:31
问题 I am trying to get the usage and rate card information from Microsoft Azure using a java application and I came to understand that I can use the Management certificate to authenticate for making calls to Microsoft Azure. I got the Management Certificate from the .publishsettings file I got from here However, in AuthenticationContext , I don't see any method that utilizes this certificate to get the access token required for making usage and rate API calls. I tried referring to this answer,

Getting a valid bearer token for an app from a an angular AD client

自古美人都是妖i 提交于 2019-12-24 15:05:12
问题 I have followed this guide: https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp and I connect successfully. I would like to send the bearer token to my C# server and use it to call my workbench(another AD app) functions. I am trying to use the bearer token I get from angular in a postman call and it is unauthorized. It is important to mention that I gave my angular client on AD permission to access my workbench instance and it's still not working, that leads me to some

Porting app from react-azure-adb2c to react-aad

一个人想着一个人 提交于 2019-12-24 14:12:01
问题 I am using Azure AD B2C. I need some react library to authenticate users in my react.js app. I started with react-azure-adb2c. Primary scenarios like login and logout worked well for me. However, the library owner stopped supporting the library, so I need to find other one. Experimenting with react-aad. I used the example and got nice page that suggests popup or redirect login. However, both do not work. Most likely my configuration contains errors. If I do not provide authority, I get

ADAL Azure AD Authentication user's login cached from different Azure AD session

时间秒杀一切 提交于 2019-12-24 09:19:16
问题 Am currently setting up a web app hosted in Azure using Azure Active Directory for authentication, have almost worked all the kinks out but one issues remains. If a user has logged into a different Directory before hitting my sign-in page (in this case it is a University Office 365 login for email), the credential seems cached and Azure attempts to use it to log into my site, is there a way I can force the login screen on every sign-in and avoid re-use of a cached credential? Project setup

ADAL.js - “Nonce is not same as undefined”

人盡茶涼 提交于 2019-12-24 01:07:42
问题 I am currently having trouble with the ADAL.js (v1.0.7) library. When I load my app after a decent period of time I get a login error stating "Nonce is not same as undefined." After looking over the code, I am wondering if I am missing a best practice. To my knowledge, I have followed the suggestions of @vibronet here. Should I be refreshing the user profile, or logging out, or something else? My configuration looks like: window.config = { instance: 'https://login.microsoftonline.com/',

Azure B2C AD Redirect to Angular App

自古美人都是妖i 提交于 2019-12-23 20:14:01
问题 I am trying to run this Angular 4 example that uses Azure B2C Active Directory and adal-angular 4. To run the app, in Azure I created a tenant, registered a the app in AD B2C and added a reply Url of https://localhost:4200. I then added the app id and tenant to my Angular App. When I run the app, it correctly redirects to https://login.microsoftonline.com... on load for login. Logging in correctly redirects to https://localhost:4200. When I log out, there is a problem. The app is redirected

How to control the login flow in ADAL AuthenticationContext?

a 夏天 提交于 2019-12-23 13:06:49
问题 Using the ADAL library for getting a token for WAAD i would like to know how I can get more control over the login flow. var ac = new AuthenticationContext("https://login.windows.net/" + ActiveDirectoryTenantId); AuthenticationInfo = ac.AcquireToken( resource: "https://management.core.windows.net/", clientId: "1950a258-227b-4e31-a9cf-717495945fc2", redirectUri: new Uri("urn:ietf:wg:oauth:2.0:oob")); The user is prompted to login. For me it's via Live Id, for my customer's computer it's via an