JwtAuthOptions.ApplyTo method (1 of 2)
Helper to copy values from a user-supplied JwtBearerOptions instance to the instance created by the framework inside AddJwtBearer(). Reassigning the local variable (opts = source) would not work because only the local reference changes – the framework keeps the original instance.
public void ApplyTo(JwtAuthOptions target)
| parameter | description |
|---|---|
| target | The target options to copy to. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when source or target is null. |
Remarks
Only copies primitive properties and references. Does not clone complex objects like CookieBuilder.
See Also
- class JwtAuthOptions
- namespace Kestrun.Authentication
JwtAuthOptions.ApplyTo method (2 of 2)
Helper to copy values from this JwtAuthOptions instance to a target JwtBearerOptions instance.
public void ApplyTo(JwtBearerOptions target)
| parameter | description |
|---|---|
| target | The target JwtBearerOptions instance to copy values to. |
See Also
- class JwtAuthOptions
- namespace Kestrun.Authentication