-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
AuthenticationOptions.AddScheme() should declare displayName as nullable #25422
Comments
To be taken into account in #25310 |
@blowdart is it open to external contributions? Having to use the null-forgiving operator when calling this method is a bit ugly... 😃 |
@kevinchalet feel free to send a PR to the release/5.0 branch. |
@blowdart this API isn't part of identity, the lowest auth apis had nullable done in 5.0, so something like this should probably be fixed in 5.0 |
If it doesn’t chain anything else then sure. If it does open a rabbit hole then no.
|
PR sent: #25480 😄 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The display name is an optional thing and is typically not set for handlers that are not meant to be publicly listed. As such, the
AuthenticationOptions.AddScheme()
method should declare thedisplayName
parameter as nullable (string
->string?
).aspnetcore/src/Http/Authentication.Abstractions/src/AuthenticationOptions.cs
Lines 52 to 63 in 1268b6e
@HaoK @Tratcher
The text was updated successfully, but these errors were encountered: