AuthenticationRegistry.Upsert method (1 of 2)
Upserts (adds or replaces) an entry.
public void Upsert(string schema, string type, AuthenticationSchemeOptions options)
| parameter | description |
| schema | The schema to match for the authentication scheme. |
| type | The HTTP type to match for the authentication scheme. |
| options | The options to configure the authentication scheme. |
Exceptions
| exception | condition |
| ArgumentNullException | Thrown when any of the arguments are null. |
See Also
AuthenticationRegistry.Upsert<TOptions> method (2 of 2)
Upserts (adds or replaces) an entry.
public void Upsert<TOptions>(string schema, string type, Action<TOptions>? configure = null)
where TOptions : AuthenticationSchemeOptions, new()
| parameter | description |
| TOptions | The type of the options for the authentication scheme. |
| schema | The schema to match for the authentication scheme. |
| type | The HTTP type to match for the authentication scheme. |
| configure | An optional action to configure the authentication options. |
See Also