adal

Authenticating using OfficeDev/office-js-helpers rather than adal

心已入冬 提交于 2019-12-10 17:55:01
问题 I'm working on an Office Add-in that currently uses adal to obtain an auth token. As I want to use the Fabric front end I am changing it to React and I notice that the officer-js-helpers have implemented authenticators that seem to do the same job as the adal library. Am I correct in this assumption? If so, how do I duplicate this adal config using the office-js-helpers authentication functions: var adalConfig = { instance: 'https://login.microsoftonline.com/', tenant: 'myprivatesite

CORS preflight request responds with 302 redirect in Azure hosted Web API

血红的双手。 提交于 2019-12-10 12:59:59
问题 Scenario: I have two ASP.NET web applications hosted separately on Windows Azure and both associated to the same Azure Active Directory tenant: An MVC app with an AngularJS SPA frontend and the adal.js library for handling Azure AD authentication on the client. Web API with Microsoft OWIN middleware for handling Azure AD authentication on the server. Problem: When angular bootstraps the client app, the page loads correctly after going through the oauth redirects to the proper Identity

Getting JavaScript-errors when authenticating using ADAL

不问归期 提交于 2019-12-10 12:20:03
问题 I am using the Microsoft Graph API and am successfully querying a user's meetings and emails. A user (testing the application) reported a JavaScript-error during the authentication process with Office 365 (using ADAL), see Screenshot below. A few months ago I noticed these pop-ups too, but they were gone after I've updated the ADAL Nuget -Package. I just checked and there is no update available (current version: 4.0.209160138-alpha). I myself cannot reproduce the issue . It might be that

Microsoft Graph: Current authenticated context is not valid for this request

扶醉桌前 提交于 2019-12-10 10:42:16
问题 I had an app that used MSAL and the v2.0 endpoint to sign in users and get token. I recently changed it to ADAL and the normal AAD endpoint (also changing the app), and now when I try to use the GraphService I get the following error: Current authenticated context is not valid for this request My user is admin All permissions have been delegated The token is successfully retrieved Here is the code I use: public static GraphServiceClient GetAuthenticatedClient() { GraphServiceClient

Azure ADAL Refresh id_token

左心房为你撑大大i 提交于 2019-12-10 09:14:24
问题 We are developing a multi-tenant web application. Our tenants will be using Windows Azure Active Directory for authentication. We are using OWIN OpenIdConnect middleware to authenticate users. The response we receive after authentication process has id_token and authorization code. We also want to get the refresh token so that we can acquire new tokens once the id_token expires. Therefore in AuthorizationCodeReceived handler we use AcquireTokenByAuthorizationCode method in ADAL library to

AADSTS50020: We are unable to issue tokens from this api version for a Microsoft account

戏子无情 提交于 2019-12-09 15:27:11
问题 I'm writing a simple C# mobile application which I've registered at https://apps.dev.microsoft.com/ to access live.com/outlook.com mailboxes (not outlook 365 mbx). I'm using ADAL for authenticating using the client id and redirect URI from the registration. I'm not sure if I should be generating a password from the registration site and how I should be using the generated password. What I'm experiencing is that I get the usual prompt to authenticate, I provide my credentials, I see a token

Correct ADAL package for B2C - Xamarin PCL project

自古美人都是妖i 提交于 2019-12-09 03:25:21
问题 I have read several articles on adding Azure Active Directory sign-in functionality to Xamarin PCL projects (e.g. https://blog.xamarin.com/put-adal-xamarin-forms/) but I am still not able to make it work. Can someone please clarifiy the correct ADAL package to use for Azure B2C AD(for Xamarin PCL project)? Is it: Microsoft.IdentityModel.Clients.ActiveDirectory OR Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory Thanks! 回答1: Thanks to @Kaush and @vibronet for pointing me in the

ADAL ASP.NET MVC and Angular. Login from ASP .NET MVC

青春壹個敷衍的年華 提交于 2019-12-08 10:08:49
问题 I have an application already written in ASP.NET MVC. We have decided to write new frontend functions in angular and slowly migrate all frontend to angular. But for now we are stuck with both Angular and MVC. The problem we have is that when a user logs on the login is only made on the MVC parts of the application. The access token from the Azure AD is not shared between Angular and ASP.NET MVC. I have installed https://www.npmjs.com/package/adal-angular5 I can login with that package from

Azure AD app-only access tokens for exchange impersonation

不打扰是莪最后的温柔 提交于 2019-12-08 09:41:57
问题 I have been following this resource to create an application on azure that authenticates itself with the azure active directory. We want to use the token from this auth interaction with exchange and the EWS managed API to impersonate everyone in our organization, without them having to login. I have registered an app with our organization on azure and gave it permission to exchange. After creating a certificate and setting up our azure application with it, I can get an app-only access token

B2B silent authentication

北城以北 提交于 2019-12-08 07:56:12
问题 Our application is using the Adal SDK for both Android and IOS platforms. We want to add the support in B2B and shared data between tenants. Assuming the user from the Home tenants was already invited to a different tenant. I wanted to know what is the API to get a Token to the inviting tenant assuming the user already signed-in before to the home tenant ? what is the way to silently acquire a token to the inviting tenant ? I tried and managed to get a token using interactive sign-in (by