adal

Integrating Azure AD into a Java web application

爱⌒轻易说出口 提交于 2019-12-14 02:32:54
问题 I am new to Azure and OpenIDConnect. To start with, I cloned the sample git Application and tried to test it. It's giving me the below error. The War has the oauth2 jar and I can see the class files present there. Git URL: https://github.com/Azure-Samples/active-directory-java-webapp-openidconnect SEVERE: Exception starting filter BasicFilter java.lang.NoClassDefFoundError: com/nimbusds/openid/connect/sdk/AuthenticationSuccessResponse at java.lang.Class.getDeclaredMethods0(Native Method) at

Is it OK to use NaiveSessionCache from Azure-Samples Azure Active Directory OpenId Connect

℡╲_俬逩灬. 提交于 2019-12-14 02:22:47
问题 We are writing a web application similar to Azure-Samples/active-directory-dotnet-webapp-webapi-openidconnect The sample includes NaiveSessionCache.cs, which stores the access token in the ASP.NET Session state for UserObjectId. The code looks reasonable, but I have concerns with regards to the name "Naive". Are there any reasons why I should not use it in production? Vittorio Bertocci's article The New Token Cache in ADAL v2, describes FileCache (for a desktop application) and database

ADAL username/password flow in .net standard 1.4

大兔子大兔子 提交于 2019-12-13 07:49:59
问题 I'm trying to port a powershell module to .Net standard. One thing I notice is that the UserPasswordCredential class is not present in the .Net standard library. Is it not possible to perform a username/password flow login using adal in .Net Standard/Core? 回答1: Yes, UserPasswordCredential is not available for .Net Core. However, as a workaround you can construct the HTTP request directly. More detail, you can refer the thread here. 来源: https://stackoverflow.com/questions/40497937/adal

How can I logout using the new release of ADALiOS 2.1

和自甴很熟 提交于 2019-12-13 06:09:39
问题 Or how can I access internal default cache store? How can I clear default cache store? Thanks, Jignesh. 回答1: In ADAL iOS 2.1, three functions are provided for deleting token items in cache: (BOOL)removeItem:(nonnull ADTokenCacheItem *)item error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error; (BOOL)removeAllForClientId:(NSString * __nonnull)clientId error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error; (BOOL)removeAllForUserId:(NSString * _

Problems with resource bundles in adding Azure ADAL library to an iOS native app

这一生的挚爱 提交于 2019-12-13 04:13:43
问题 I'm trying to follow the instructions for building a sample Native App client for iOS using Azure ADAL library and Azure AD sample app. The relevant components are: https://github.com/AzureADSamples/NativeClient-iOS https://github.com/AzureAD/azure-activedirectory-library-for-objc/releases/tag/1.0.1 I'm new to XCode and instructions for adding the ADAL library to the sample app are not clear for me. But I have followed the steps and added the library and linked the libADALiOS.a. As reported

Azure AD (ADAL) Login Screen Loses Entered User Email on Device Orientation in Android Only-XamarinForms.Android

妖精的绣舞 提交于 2019-12-13 03:18:43
问题 I have Xamarin.Forms application that authenticates user against Azure AAD using ADAL ( Microsoft.IdentityModel.Clients.ActiveDirectory ). That all works fine but on Android, device orientation looses user email on the Microsoft authentication screen. Here I am in Portrait mode and I have entered user email: Clicking on Next lands on screen asking to enter password. If I now rotate device on Android, it will return me back to blank screen above, user email I entered above is lost: Device

When calling AcquireTokenByRefreshToken on the AuthenticationContext instance with Microsoft.IdentityModel.Clients.ActiveDirectory?

大憨熊 提交于 2019-12-13 01:13:19
问题 I am developing a multi-tenant application registered on my Azure AD that consumes Office 365 apis, Graph API etc. I followed this Microsoft sample to build my work which uses ADAL .NET library and OpenIdConnect: Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.19.0.0 In ADAL.NET, we use an AuthenticationContext instance with a custom inherited class for the TokenCache (see code the sample code here). For each request to the authorized resources, depending on the API, we invoke one

How do I query Azure Web API from Cordova Azure Authenticated app

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 00:55:20
问题 I built an VS2015 Cordova App for ios/android. The app uses an Azure mobile service tied to Azure Active Directory following this Microsoft Azure tutorial. This works well. When I try to do a directory search, I am prompted by Azure to authenticate using my tenant credentials. Next steps: I created an Azure Web API which does some C.R.U.D on an Azure SQL database. The API works fine and I get data from it (while unsecured) by navigating to https:// [MyUniqueApi] .azurewebsites.net/api/values

How MS Teams auto logs into Azure AD

*爱你&永不变心* 提交于 2019-12-12 23:15:19
问题 I tried few plugins to implement Azure AD auto-login functionality to an Electron app, but each of them had login issues described here if I choose file system URL(file:///) . This is because Electron apps run on file system URLs and Azure AD doesn't accepts a file system URL. As much as I know, MS Teams is build on Electron. How have they achieved it? Do I need to run a local server like electron-with-express? 来源: https://stackoverflow.com/questions/51773875/how-ms-teams-auto-logs-into-azure

AADSTS50013: Assertion audience claim does not match the required value

∥☆過路亽.° 提交于 2019-12-12 21:39:42
问题 I've got a single page app that authenticates users in Azure using adal-angular.js/adal.js [client]. The returned token is inserted into the auth header and passed to a web API [server]. This web api generates a new access token for the app using the on-behalf-of workflow (https://github.com/Azure-Samples/active-directory-dotnet-webapi-onbehalfof) This token is then used to call a downstream API [API1]. So the downstream API then repeats this process to get a new token to call another API