aspnetcore
aspnetcore copied to clipboard
[Blazor] Dynamic authentication requests
Fixes https://github.com/dotnet/aspnetcore/issues/42580
Adds a new type InteractiveRequestOptions that contains the data developers can use to customize the authentication flows. The data is passed in through the State parameter to the remoteauthenticatorviewcore which then handles the authentication process.
- Updates RemoteAuthenticatorViewCore to rely on navigation history state to pass in data around for authentication operations.
- Adds logging to the RemoteAuthenticatorViewCore
- Updates AuthenticationService.ts to handle requesting additional tokens
- Updates AuthenticationService.ts to account for the interactiverequest options.
- Adds E2E tests that demonstrate:
- Sign in can be customized.
- Requesting a token interactively for a second resource.
Updated