security

package
v0.0.0-...-49ac9d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostAuthEvent

func PostAuthEvent(e *aah.Event)

PostAuthEvent method used for activities after authentication successful.

Types

type AuthenticationProvider

type AuthenticationProvider struct {
}

AuthenticationProvider struct implements `authc.Authenticator` interface.

func (*AuthenticationProvider) GetAuthenticationInfo

func (a *AuthenticationProvider) GetAuthenticationInfo(authcToken *authc.AuthenticationToken) (*authc.AuthenticationInfo, error)

GetAuthenticationInfo method is `authc.Authenticator` interface

func (*AuthenticationProvider) Init

func (a *AuthenticationProvider) Init(appCfg *config.Config) error

Init method initializes the AuthenticationProvider, this method gets called during server start up.

type AuthorizationProvider

type AuthorizationProvider struct {
}

AuthorizationProvider struct implements `authz.Authorizer` interface.

func (*AuthorizationProvider) GetAuthorizationInfo

func (a *AuthorizationProvider) GetAuthorizationInfo(authcInfo *authc.AuthenticationInfo) *authz.AuthorizationInfo

GetAuthorizationInfo method is `authz.Authorizer` interface.

GetAuthorizationInfo method gets called after authentication is successful to get Subject's (aka User) access control information such as roles and permissions.

func (*AuthorizationProvider) Init

func (a *AuthorizationProvider) Init(appCfg *config.Config) error

Init method initializes the AuthorizationProvider, this method gets called during server start up.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL