Replies: 1 comment 2 replies
-
Hi @vroesgen , Here's a sample Blazor app: https://pnp.github.io/pnpcore/demos/Demo.Blazor/README.html. It uses a custom auth provider (MsalWrappedTokenProvider.cs) to tap into the loaded token provider. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I try to get a site context in a service of a blazor server app the exception:
Microsoft.Identity.Web.MicrosoftIdentityWebChallengeUserException: IDW10502: An MsalUiRequiredException was thrown due to a challenge for the user. See https://aka.ms/ms-id-web/ca_incremental-consent. ---> MSAL.NetCore.4.36.1.0.MsalUiRequiredException: ErrorCode: user_null
is thrown.
This problem only occurs when I run the blazor app from a server. When I test it local from Visual Studio it works.
startup.cs:
GraphSpoService.cs:
Thanks for any help...
Frank
Beta Was this translation helpful? Give feedback.
All reactions