Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context interface { // Name returns the name of the security context Name() string // IsAuthenticated returns whether the context has been authenticated or not IsAuthenticated() bool // GetUsername returns the username of user related to the context GetUsername() string // IsSysAdmin returns whether the user is system admin IsSysAdmin() bool // IsSolutionUser returns whether the user is solution user IsSolutionUser() bool // Can returns whether the user can do action on resource Can(ctx context.Context, action types.Action, resource types.Resource) bool }
Context abstracts the operations related with authN and authZ
Click to show internal directories.
Click to hide internal directories.