KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.NodeManager.WebApi.CurrentUserApi Class Reference

Publishes access to the authenticated user information More...

Public Member Functions

 CurrentUserApi (RequestContext context, ActorSystem system)
 Initializes a new instance of the CurrentUserApi class. More...
 
Task< MutationResult< bool > > ChangePassword (RequestContext requestContext, [ApiDescription("The user current password")] string oldPassword, [ApiDescription("The user new password")] string newPassword)
 Changes the current user password More...
 

Public Attributes

UserDescription KlusterKiteUser => this.context?.Authentication?.User as UserDescription
 Gets the current user data More...
 
List< string > KlusterKiteUserPrivileges => this.context?.Authentication?.UserScope.ToList()
 Gets the current user privileges More...
 
List< string > KlusterKiteClientPrivileges => this.context?.Authentication?.ClientScope.ToList()
 Gets the current user privileges More...
 

Detailed Description

Publishes access to the authenticated user information

Definition at line 32 of file CurrentUserApi.cs.

Constructor & Destructor Documentation

◆ CurrentUserApi()

KlusterKite.NodeManager.WebApi.CurrentUserApi.CurrentUserApi ( RequestContext  context,
ActorSystem  system 
)

Initializes a new instance of the CurrentUserApi class.

Parameters
contextThe context.
systemThe actor system

Definition at line 53 of file CurrentUserApi.cs.

Member Function Documentation

◆ ChangePassword()

Task<MutationResult<bool> > KlusterKite.NodeManager.WebApi.CurrentUserApi.ChangePassword ( RequestContext  requestContext,
[ApiDescription("The user current password")] string  oldPassword,
[ApiDescription("The user new password")] string  newPassword 
)

Changes the current user password

Parameters
requestContextThe request context
oldPasswordThe user current password
newPasswordThe user new password
Returns
The success of the operation

Definition at line 91 of file CurrentUserApi.cs.

Member Data Documentation

◆ KlusterKiteClientPrivileges

List<string> KlusterKite.NodeManager.WebApi.CurrentUserApi.KlusterKiteClientPrivileges => this.context?.Authentication?.ClientScope.ToList()

Gets the current user privileges

Definition at line 78 of file CurrentUserApi.cs.

◆ KlusterKiteUser

UserDescription KlusterKite.NodeManager.WebApi.CurrentUserApi.KlusterKiteUser => this.context?.Authentication?.User as UserDescription

Gets the current user data

Definition at line 64 of file CurrentUserApi.cs.

◆ KlusterKiteUserPrivileges

List<string> KlusterKite.NodeManager.WebApi.CurrentUserApi.KlusterKiteUserPrivileges => this.context?.Authentication?.UserScope.ToList()

Gets the current user privileges

Definition at line 71 of file CurrentUserApi.cs.


The documentation for this class was generated from the following file: