-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Blazor] Dynamic authentication requests #42692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Components/WebAssembly/WebAssembly.Authentication/src/Interop/AuthenticationService.ts
Show resolved
Hide resolved
| <StaticWebAssetProjectConfiguration Include="@(_IdentityUI)" /> | ||
| </ItemGroup> | ||
| </Target> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just fixes how we consume identity UI as a class library, which was broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to add a comment indicating what all this stuff is for. i.e., in what way it would be broken otherwise, and why it has to be fixed here rather than in whatever added the identity UI files to the project in the first place.
Hopefully you can appreciate that basically nobody in the world would have any idea why we're doing this apart from you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add a comment for this.
src/Components/WebAssembly/WebAssembly.Authentication/src/Interop/AuthenticationService.ts
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/Interop/AuthenticationService.ts
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/Models/InteractiveRequestOptions.cs
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/Models/InteractiveRequestOptions.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/Models/InteractiveRequestOptions.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/NavigationManagerExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/NavigationManagerExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/NavigationManagerExtensions.cs
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/NavigationManagerExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/NavigationManagerExtensions.cs
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs
Show resolved
Hide resolved
src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs
Show resolved
Hide resolved
...omponents/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs
Outdated
Show resolved
Hide resolved
...omponents/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs
Outdated
Show resolved
Hide resolved
...omponents/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs
Show resolved
Hide resolved
...omponents/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Pages/UserPreferences.razor
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Shared/RedirectToLogin.razor
Show resolved
Hide resolved
SteveSandersonMS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
I think there are still a few details about the JSON serialization trimming suppressions to be solved (preferably by switching to use the source generator - that should make things much simpler for you).
Besides that everything looks good so I'll approve now.
Address feedback Co-authored-by: Steve Sanderson <[email protected]>
5ff0b4c to
1c22136
Compare
Fixes #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.