aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

[Blazor] Dynamic authentication requests

Open javiercn opened this issue 2 years ago • 1 comments

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.

javiercn avatar Jul 12 '22 17:07 javiercn

Updated

javiercn avatar Aug 02 '22 13:08 javiercn