jguadagno / jjgnet-broadcast

Repository for the automated broadcasting of blog post, conferences, and streams
MIT License
14 stars 2 forks source link

Handle Exceptions with Microsoft Entra (Microsoft Identity) login #85

Open jguadagno opened 2 years ago

jguadagno commented 2 years ago

Received an error when trying to login with the "Work Profile" account in Edge.

An unhandled exception occurred while processing the request. OpenIdConnectProtocolException: Message contains error: 'invalid_client', error_description: 'AADSTS650052: The app needs access to a service ('api://027edf6f-5140-44c8-9496-xxxxxxx') that your organization 'e58c8e81-abd8-48a8-929d-xxxxxx' has not subscribed to or enabled. Contact your IT Admin to review the configuration of your service subscriptions. Trace ID: a0fd8d93-9dd2-41c8-8575-10826fc94d00 Correlation ID: 4a3afb51-240f-48a2-963f-e769e722271f Timestamp: 2022-06-26 15:10:32Z', error_uri: 'https://login.microsoftonline.com/error?code=650052'. Unknown location

Exception: An error was encountered while handling the remote login. Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler.HandleRequestAsync()