-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Annotate WebAssembly.Authentication for nullability #43442
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
{ | ||
manager.NavigateTo(logoutPath, new NavigationOptions | ||
{ | ||
HistoryEntryState = new InteractiveRequestOptions | ||
{ | ||
Interaction = InteractionType.SignOut, | ||
ReturnUrl = returnUrl | ||
ReturnUrl = returnUrl ?? manager.Uri |
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'm not sure about this change. Can InteractiveRequestOptions.ReturnUrl
be null?
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 seems like we assume the return URL can be null
elsewhere in WebAssembly.Authentication
, e.g. RemoteAuthenticatorViewCore
. Maybe we can make InteractiveRequestOptions.ReturnUrl
nullable and not required?
cc @javiercn
@dotnet/aspnet-build How do I fix the public API files. I tried updating just the Unshipped.txt. As an example:
But I got warnings that the type exists twice. How do I fix this?
|
Update the shipped.txt file in this case. The analyzer doesn't work well when going from non-nullable to nullable APIs. |
da54e93
to
dbb4946
Compare
@dotnet/aspnet-build How do I make the build pass with the shipped.txt changes? |
You don't. Someone with permissions will need to merge. |
dbb4946
to
a804000
Compare
@dotnet/aspnet-blazor-eng Please review |
Thanks @JamesNK. |
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'd like to be able to merge this. Can the SME please review and approve/require changes 🙏 |
@JamesNK let me take a look. |
1 similar comment
@JamesNK let me take a look. |
a804000
to
c46f84d
Compare
@javiercn ping |
src/Components/WebAssembly/WebAssembly.Authentication/src/Models/InteractiveRequestOptions.cs
Outdated
Show resolved
Hide resolved
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.
One small comment, otherwise looks good.
c46f84d
to
e4e38d0
Compare
Addresses #5680