msal

What is the difference between ADAL.js and MSAL.js?

巧了我就是萌 提交于 2020-01-12 13:56:52
问题 I am trying to handle authentication for my app which uses Microsoft Graph. What is the difference between these two libraries? Active Directory Authentication Library for JavaScript (ADAL.js) Microsoft Authentication Library for JavaScript (MSAL.js) Is ADAL.js just an Angular 1 library of MSAL.js? 回答1: MSAL.js works with the AzureAD V2 endpoint, whereas ADAL.js works with the AzureAD V1 endpoint. The V1 endpoint supports work accounts, but not personal accounts. The V2.0 endpoint is the

Microsoft Graph API token validation failure

那年仲夏 提交于 2020-01-10 04:56:05
问题 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

MSAL objective-c library iOS sample. Don't know how to configure it

拜拜、爱过 提交于 2020-01-06 08:06:49
问题 In a Swift 3.0 project I'm currently working, my customer has asked me to integrate with a custom Application created at their corporate Azure Active Directory. I'm using the ADAL library by Microsoft (https://github.com/AzureAD/microsoft-authentication-library-for-objc) It even comes with a sample in Swift. If I use it out of the box, everything works fine. However when I configure it with my customer's data I allways obtain the following error AADSTS90130: Application '

MSAL objective-c library iOS sample. Don't know how to configure it

梦想与她 提交于 2020-01-06 08:03:36
问题 In a Swift 3.0 project I'm currently working, my customer has asked me to integrate with a custom Application created at their corporate Azure Active Directory. I'm using the ADAL library by Microsoft (https://github.com/AzureAD/microsoft-authentication-library-for-objc) It even comes with a sample in Swift. If I use it out of the box, everything works fine. However when I configure it with my customer's data I allways obtain the following error AADSTS90130: Application '

LogIn token to WebView (MSAL) Xamarin

落爺英雄遲暮 提交于 2020-01-06 05:41:07
问题 I'm building a xamarin form app and to login I use MSAL. In the application, I open a site that requieres the MSAL token, this site opens with webview, but when this webview is opened it doesn't login automatically. I open session at Login, I catch the token but I don´t know how forward this token to the web view. Here is my code: on button click, the app executes this function: private async void CampusButton_Clicked(object sender, EventArgs e) { await Navigation.PushModalAsync(new

How to get user information when authenticating with OneDrive SDK

社会主义新天地 提交于 2020-01-06 05:08:40
问题 I am building an Azure App Service that has both Windows Desktop (not UWP) and iOS clients. I want to use Microsoft Account Authentication to authenticate users. As a result of a previous question here I can now authenticate users using the OneDrive SDK but have fallen at the next hurdle. The One Drive SDK does not appear to provide access to user details such as their given name and email address. Please can someone point me in the direction of an example or instructions for authenticating a

How to get user information when authenticating with OneDrive SDK

本秂侑毒 提交于 2020-01-06 05:08:29
问题 I am building an Azure App Service that has both Windows Desktop (not UWP) and iOS clients. I want to use Microsoft Account Authentication to authenticate users. As a result of a previous question here I can now authenticate users using the OneDrive SDK but have fallen at the next hurdle. The One Drive SDK does not appear to provide access to user details such as their given name and email address. Please can someone point me in the direction of an example or instructions for authenticating a

How To Use LocalStorage with MSAL.js

China☆狼群 提交于 2020-01-04 04:45:46
问题 How do I use LocalStorage with MSAL.js? According to this, there's a property, cacheLocation, I need to set to 'localStorage'. The following is still using sessionStorage: var clientApplication = new Msal.UserAgentApplication(applicationConfig.clientID, applicationConfig.authority, function (errorDesc, token, error, tokenType) { // Called after loginRedirect or acquireTokenPopup }); clientApplication.cacheLocation = 'localStorage'; 回答1: Looks like the documentation is slightly out of date,

Authentication on angular spa using msal.js

最后都变了- 提交于 2020-01-01 10:06:24
问题 my angular app has 1000s unique routes and users should be able to click on login button from any of those pages. Have implemented msal.js basing on this sample : https://github.com/Gimly/simpleAngularAzureB2C/blob/master/src/app/authentication.service.ts I am getting following error when calling login method: AADB2C90006:+The+redirect+URI+'http://localhost:39579/unique-uri'+provided+in+the+request+is+not+registered+for+the+client+id+ Is there a way to get around this? Thanks! 回答1: By default

MSAL token expires after 1 hour

落花浮王杯 提交于 2019-12-30 10:34:52
问题 I am using MSAL for Azure AD authentication in a Xamarin app. The validity of the token is 1 day (seen using the value of ExpiresOn of AuthenticationResult). My problem is that, after 1 hour, AcquireTokenSilentAsync fails and then AcquireToken needs to be called. I am not able to understand that even though the token validity is 1 day, and the validity of refresh token is even more, why is it asking for authentication after every 1 hour ? Can this be changed using any parameter value or any