adal

Azure AD: How to get group information in token?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 04:10:11
问题 We have application developed in MEAN stack. We are using adal-agular library for azure ad authentication. As per the documentation and sample Adal.js uses the OAuth implicit flow to communicate with Azure AD. You must enable the implicit flow for your application. However when we enable implicit flow, Azure AD DOES NOT include group information in the token. The issue has been discussed here in detail and confirmed by @vibronet Question Azure AD functionalities have been changing almost

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

青春壹個敷衍的年華 提交于 2020-01-01 19:24:31
问题 I am using ADALiOS into my app for authentication. When user signIn into the app I am getting following error: "The argument 'cacheItem.scopes' is invalid. Value:(null)." and "The user credentials are need to obtain access token. Please call the non-silent acquireTokenWithResource methods" Any help would be appreciated. Thanks 回答1: This might happen if keychain sharing is disabled. One of the probable solution is: Solution: Step 1: Xcode > Target > Capabilities > Keychain Sharing -> Switch to

SSO from ADAL in WPF Client to ADFS 3.0 on Windows Server 2012 R2

旧巷老猫 提交于 2020-01-01 14:21:39
问题 I am trying to write an WPF client which uses ADAL to authenticate against ADFS on a Windows Server 2012 R2. I have successfully implemented this using "Forms Authentication" where the user is prompted for the domain username and password. However, I want to take advantage of SSO and use the currently logged on domain user to authenticate against the ADFS. Unfortunately, I'm only getting an error message saying: This method overload is not supported by '< ADFS servername>' I have done a lot

SSO from ADAL in WPF Client to ADFS 3.0 on Windows Server 2012 R2

和自甴很熟 提交于 2020-01-01 14:21:04
问题 I am trying to write an WPF client which uses ADAL to authenticate against ADFS on a Windows Server 2012 R2. I have successfully implemented this using "Forms Authentication" where the user is prompted for the domain username and password. However, I want to take advantage of SSO and use the currently logged on domain user to authenticate against the ADFS. Unfortunately, I'm only getting an error message saying: This method overload is not supported by '< ADFS servername>' I have done a lot

ADAL JavaScript support for on premise ADFS (ADAL JS)

為{幸葍}努か 提交于 2020-01-01 03:15:25
问题 How can you configure ADAL JS to use an on-premise Active Directory (Windows Server 2012 R2, ADFS)? The announcement post (http://www.cloudidentity.com/blog/2014/10/28/adal-javascript-and-angularjs-deep-dive/) and samples on GitHub (https://github.com/AzureADSamples) do not specifically address this. Or is that not a supported scenario? 回答1: this is currently not supported. ADFS does not support the oauth2 implicit grant, which is at the heart of the scenario 回答2: With ADFS 4.0 and Windows

ADAL .Net Core nuget package does not support UserPasswordCredential

回眸只為那壹抹淺笑 提交于 2019-12-31 22:41:15
问题 In ADAL.Net 3.x UserPasswordCredential is introduced on top of UserCredential from 2.x. But the same UserPasswordCredential is not exposed in the .Net Core under the same nuget package? UserCredential class has only one property UserName namespace Microsoft.IdentityModel.Clients.ActiveDirectory { // // Summary: // Credential used for integrated authentication on domain-joined machines. public class UserCredential { // // Summary: // Constructor to create user credential. Using this

Authenticate the user on Azure AD using ADAL library from Android native app

二次信任 提交于 2019-12-31 02:26:08
问题 We have a requirement where users should signin from Native apps(Android, iOS) without invoking Microsoft login web view window from the app. We have the sample code that demonstrates non-interactive authentication to Azure AD using a username & password from the .net console application. https://github.com/Azure-Samples/active-directory-dotnet-native-headless sample code: AuthenticationResult result = null; authContext = new AuthenticationContext(authority, new FileCache()); string userName

Authenticate to Dynamics 365 using ADAL v3 using ClientID

六眼飞鱼酱① 提交于 2019-12-30 11:12:38
问题 I'm trying to authenticate to our online Dynamics CRM to use the available APIs. The only official documentation on doing this I can find is: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/connect-customer-engagement-web-services-using-oauth this however uses 'AquireToken' which no longer exists in ADAL V3, with it having been replaced with 'AcquireTokenAsync'. This is my first time dealing with ADAL and trying to authenticate, previously only having dealt with

Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential does not take 2 parameters?

旧城冷巷雨未停 提交于 2019-12-29 06:24:09
问题 I'm using ADAL in my code. One thing I want to use is to use different credentials, so I can authorize different users against Azure AD in the console program. Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential cred = new Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential("username", "password"); This is the line I use to create the user credential. I use nuget get the latest ADAL. However, this line shows error: The best overloaded method match for 'Microsoft

How to fix CORS error when fetching api data in my React application?

*爱你&永不变心* 提交于 2019-12-25 18:24:12
问题 I recently uploaded my ASp.NET CORE React with Redux (and KendoUI React) project to my Azure hosting platform and now, I cannot access any data that is fetched from the API. I looked at the console and saw an error message of: Access to fetch at 'https://login.microsoftonline.com/xxx-xxx-xxx-xxx-xxx/oauth2/authorize?client_id=xxx-xxx-xxx-xxx-xxx&redirect_uri=https%3A%2F%2Fmywebsite.azurewebsites.net%2Fsignin-oidc&response_type=id_token&scope=openid%20profile&response_mode=form_post&nonce=xxx