adal

How to verify JWT id_token produced by MS Azure AD?

帅比萌擦擦* 提交于 2019-11-27 01:40:38
问题 I have an angularjs SPA web app which uses ADAL-JS (and adal-angular). It's set up to authenticate vs our corporate AD in MS Azure. The log-in flow seems to work correctly, and the SPA receives an id_token. Next, when the user clicks a button, the SPA makes a request to a REST API I am hosting on AWS API Gateway. I am passing the id_token on the Authorization: Bearer <id_token> header. The API Gateway receives the header as intended, and now has to determine if the given token is good or not

Can't get client-credentials access token to authorize Power BI

烂漫一生 提交于 2019-11-26 23:27:27
问题 I'm trying to use the Power BI REST API, using an access token acquired with the "client credentials" method, but I keep getting 403 Forbidden on my requests. My code follows the pattern demonstrated in this AzureAD sample. In fact, to isolate this problem, I'm running that sample code (with my own values in the parameters.json , of course): { expiresIn: 3599, tokenType: 'Bearer', expiresOn: Tue Sep 01 2015 16:56:07 GMT-0500 (CDT), resource: '00000002-0000-0000-c000-000000000000', accessToken

How can I authenticate to AAD and call the Graph API as a Native Client application with PowerShell?

佐手、 提交于 2019-11-26 22:24:37
问题 I am trying to do some very quick tests on Azure Active Directory, and I need a tool which will allow me to quickly authenticate to AAD, and make calls to the AAD Graph API. I have registered a Native Client application in my directory already, and I have set it up to have the appropriate permissions to call the AAD Graph API. I want to take a look at my AAD Token, and the output from the Graph API after my call. How can I use PowerShell to quickly accomplish this? 回答1: >> See here for

How to load adal.js in webpack inside Angular 2 (Azure-AD)

試著忘記壹切 提交于 2019-11-26 21:02:07
问题 Inside my NG2 project, if I write: import adal from 'adal-angular'; it gives me 'adal is undefined'. Why is that? I want to use adal.js inside my angular 2 project. I already have run npm install adal-angular --save npm install @types/adal --save Then, inside my component.ts file, if I do: import adal from 'adal-angular'; adal is undefined. How can I import it correctly inside my component.ts file, and also use the typings ? 回答1: To fix this, you will need to do a number of things: npm

ADAL v3: How to authenticate using UserPasswordCredential?

允我心安 提交于 2019-11-26 16:30:05
问题 ADAL v3 has the UserPasswordCredential class, but I cannot find a working implementation. There's no AcquireToken overload which accepts a UserPasswordCredential or UserCredential type. What is the correct way of performing the username&password flow in ADAL v3? This particular piece of code is using full .Net 4.5. 回答1: If you were developing with client app, you can refer the code below to acquire the token: string authority = "https://login.microsoftonline.com/xxxx.onmicrosoft.com"; string

Using ADAL C# as Confidential User /Daemon Server /Server-to-Server - 401 Unauthorized

霸气de小男生 提交于 2019-11-26 11:24:04
问题 Refering to not answered Questions: 401- Unauthorized authentication using REST API Dynamics CRM with Azure AD and Dynamics CRM Online 2016 - Daemon / Server application Azure AD authentication error to Web Api and Dynamics CRM 2016 Online Rest API with client credentials OAuth flow I need a communication between an Web-Service in azure cloud and Dynamics CRM Online 2016 WITHOUT any loginscreen! The service will have a REST api which triggers CRUD operations on the CRM (also I will implement