microsoft-identity-platform

Microsoft identity platform and OAuth 2.0 authorization code flow error 400 Bad Request

自闭症网瘾萝莉.ら 提交于 2021-01-29 22:00:41
问题 I need a bit of help understanding which is the problem with Microsoft Identity Platform login on my cms (ASP.NET Webforms). It used to work without problems, last time I tried was maybe a month ago. Now I'm receiving a "400 bad request" response on the second step of the code flow authentication, when I send back the authorization_code that I received after the user login to the token endpoint, to request the access_token. The original GET request to send the user to the Microsoft login

Microsoft identity platform and OAuth 2.0 authorization code flow error 400 Bad Request

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-29 17:22:23
问题 I need a bit of help understanding which is the problem with Microsoft Identity Platform login on my cms (ASP.NET Webforms). It used to work without problems, last time I tried was maybe a month ago. Now I'm receiving a "400 bad request" response on the second step of the code flow authentication, when I send back the authorization_code that I received after the user login to the token endpoint, to request the access_token. The original GET request to send the user to the Microsoft login

Why doesn't AcquireTokenByAuthorizationCode return RefreshToken

僤鯓⒐⒋嵵緔 提交于 2021-01-29 06:39:29
问题 In this documentation it gives a complete flow for a web application that calls a web API: The web application executes a policy and the user completes the user experience. Azure AD B2C returns an (OpenID Connect) id_token and an authorization code to the browser. The browser posts the id_token and authorization code to the redirect URI. The web server validates the id_token and sets a session cookie. The web server asks Azure AD B2C for an access_token by providing it with the authorization

Is it possible to configure Azure Digital Twins API access for a Daemon App?

随声附和 提交于 2020-06-29 07:05:34
问题 To automate maintenance of an Azure Digital Twins instance, we require service-to-service API access so that we can use Azure middle-tier options to run as daemon apps (e.g. Logic App or Function). However, the Azure Digitial Twins 'preview' API (resource id: 0b07f429-9f4b-4714-9392-cc5e8e80c8b0) does not support Application Permissions when registering the application in Azure Active Directory (only Delegated Permissions). However, the related Microsoft Graph API (resource id: 00000003-0000

MSAL.Net No account or login hint was passed to the AcquireTokenSilent call

别等时光非礼了梦想. 提交于 2020-05-17 07:06:27
问题 I have seen many same or similar questions, and tried all their answers if there was one, but none of those works for me. I'm using this example from Microsoft's Github account as my project base. It works well for just signing in users. The project has 1 WebApi, 1 Angular App. Then I followed this Microsoft example to add code to call Graph API. Here is the controller code: [Authorize] [Route("api/[controller]")] [ApiController] public class BillsController : ControllerBase { static readonly

MSAL.Net No account or login hint was passed to the AcquireTokenSilent call

不羁的心 提交于 2020-05-17 07:05:19
问题 I have seen many same or similar questions, and tried all their answers if there was one, but none of those works for me. I'm using this example from Microsoft's Github account as my project base. It works well for just signing in users. The project has 1 WebApi, 1 Angular App. Then I followed this Microsoft example to add code to call Graph API. Here is the controller code: [Authorize] [Route("api/[controller]")] [ApiController] public class BillsController : ControllerBase { static readonly

How do I connect to Exchange Online using OAuth 2.0 in MailKit?

安稳与你 提交于 2020-03-21 10:11:21
问题 I have a web application that sends e-mails to users via Exchange Online (Office365) using MailKit and Basic Authentication. Our company is MS partner and therefor is obligated to turn off Basic Authentication for our services by the end of february 2020. So, I want to use OAuth 2.0 to connect to Exchange Online, similar to this example. In fact, there might be a solution available according to this answer but I'm unable to find anything about it. Right now I'm playing around with MS Identity

How is the “Grant permissions” button in legacy Azure AD app registration different from “Grant admin consent” in the the new experience?

寵の児 提交于 2020-02-05 02:37:32
问题 The "Grant admin consent" button in the current Azure AD app registration experience (under Azure portal > Azure AD > App registrations > (app) > API permissions) is sometimes greyed out. In the legacy experience, I could always click the button. What's the difference between the two? 回答1: The "Grant permission" button in the legacy app registration experience behaves differently depending on what you're allowed to do: If you're allowed to do tenant-wide admin consent, the button grants the