Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶ added in v0.1.0
RegisterServer handler (serverAPI) for AuthServer to gRPC server:.
Types ¶
type ServerAPI ¶
type ServerAPI struct { // Helps to test single endpoints, if others is not implemented yet sso.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func (*ServerAPI) Login ¶
Login handler authenticates User if provided credentials are valid and logs User in system.
func (*ServerAPI) RefreshTokens ¶ added in v0.1.0
func (api *ServerAPI) RefreshTokens(ctx context.Context, in *sso.RefreshTokensIn) (*sso.LoginOut, error)
RefreshTokens handler updates User auth tokens.
func (*ServerAPI) Register ¶
func (api *ServerAPI) Register(ctx context.Context, in *sso.RegisterIn) (*sso.RegisterOut, error)
Register handler registers new User with provided data.
Click to show internal directories.
Click to hide internal directories.