|
AuthenticationService v0.3.0+17-g647c3a1
|
A controller that verifies credentials and issues tokens to authenticated users. More...
Public Member Functions | |
| TokenController (Authenticator authenticator, AuthenticationConfiguration config, IdEncoding idEncoding, Logger logger) | |
| Creates a new instance. More... | |
| ActionResult | Token ([OpenApiIgnore][FromHeader] BasicAuthorizationHeader authorization) |
| The endpoint that checks credentials provided by the Authorization header and issues tokens. More... | |
| ActionResult | Cookie ([FromBody] Credentials credentials, [FromQuery(Name="ref")] String refToken=null) |
| The endpoint that checks credentials provided in the body and issues tokens as cookies. More... | |
A controller that verifies credentials and issues tokens to authenticated users.
| Joutsen.AuthenticationService.v2.TokenController.TokenController | ( | Authenticator | authenticator, |
| AuthenticationConfiguration | config, | ||
| IdEncoding | idEncoding, | ||
| Logger | logger | ||
| ) |
Creates a new instance.
| authenticator | the instance that can authenticate a user by its name and password |
| config | the external configuration of the service |
| ActionResult Joutsen.AuthenticationService.v2.TokenController.Cookie | ( | [FromBody] Credentials | credentials, |
| [FromQuery(Name="ref")] String | refToken = null |
||
| ) |
The endpoint that checks credentials provided in the body and issues tokens as cookies.
| ActionResult Joutsen.AuthenticationService.v2.TokenController.Token | ( | [FromHeader] BasicAuthorizationHeader | authorization | ) |
The endpoint that checks credentials provided by the Authorization header and issues tokens.