|
AuthenticationService v0.3.0+7-g8a7f190
|
A controller that manages users authenticated by the service. More...
Public Member Functions | |
| UserController (UserRepository userRepository, ApplicationRepository applicationRepository, RoleRepository roleRepository, AuthenticationConfiguration config, Authenticator authenticator, Logger logger) | |
| Creates a new instance of the controller. More... | |
| ActionResult | Add ([Required] NewUser requestBody) |
| Creates a new user. More... | |
| ActionResult | Update ([Required] UserModification requestBody) |
| Modifies a user. More... | |
| ActionResult | ChangePassword ([Required] PasswordChange requestBody) |
| Changes a users password. More... | |
| ActionResult | ResetPassword ([Required] String username) |
| Changes a users password. More... | |
| ActionResult | Delete ([Required] String username) |
| Removes a user. More... | |
| ActionResult | List (String applicationName=null, String applicationKey=null, String role=null, int pageNumber=0, int numberOfResults=int.MaxValue) |
| Fetches a list of users managed by the service. More... | |
| ActionResult | Activate ([Required] ActivationToken requestBody) |
| Activates a user with a token and initial password. More... | |
| ActionResult | RenewActivationToken ([Required] NewUser requestBody) |
| Generates a new activation token for a user and application. More... | |
A controller that manages users authenticated by the service.
| Joutsen.AuthenticationService.v2.UserController.UserController | ( | UserRepository | userRepository, |
| ApplicationRepository | applicationRepository, | ||
| RoleRepository | roleRepository, | ||
| AuthenticationConfiguration | config, | ||
| Authenticator | authenticator, | ||
| Logger | logger | ||
| ) |
Creates a new instance of the controller.
| ActionResult Joutsen.AuthenticationService.v2.UserController.Activate | ( | [Required] ActivationToken | requestBody | ) |
Activates a user with a token and initial password.
| requestBody | the model for the request body containing the activation token and initial password of the user |
| ActionResult Joutsen.AuthenticationService.v2.UserController.Add | ( | [Required] NewUser | requestBody | ) |
Creates a new user.
| requestBody | the model for the request body containing the name of the new user and optionally an application |
| ActionResult Joutsen.AuthenticationService.v2.UserController.ChangePassword | ( | [Required] PasswordChange | requestBody | ) |
Changes a users password.
| requestBody | the model for the request body containing the old and new password of a user for the user |
| ActionResult Joutsen.AuthenticationService.v2.UserController.Delete | ( | [Required] String | username | ) |
Removes a user.
| username | the name of the user to remove |
| ActionResult Joutsen.AuthenticationService.v2.UserController.List | ( | String | applicationName = null, |
| String | applicationKey = null, |
||
| String | role = null, |
||
| int | pageNumber = 0, |
||
| int | numberOfResults = int.MaxValue |
||
| ) |
Fetches a list of users managed by the service.
| applicationName | the name of the application for which to fetch the users |
| applicationKey | the hash key of the application for which to fetch the users |
| role | the name of the role the returned users need to have |
| pageNumber | the zero based page number to fetch |
| numberOfResults | the maximum number of results to fetch |
| ActionResult Joutsen.AuthenticationService.v2.UserController.RenewActivationToken | ( | [Required] NewUser | requestBody | ) |
Generates a new activation token for a user and application.
| requestBody | the model for the request body containing the username and application |
| ActionResult Joutsen.AuthenticationService.v2.UserController.ResetPassword | ( | [Required] String | username | ) |
Changes a users password.
| requestBody | the model for the request body containing the old and new password of a user for the user |
| ActionResult Joutsen.AuthenticationService.v2.UserController.Update | ( | [Required] UserModification | requestBody | ) |
Modifies a user.
| requestBody | the model for the request body containing the changes for the user |