Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsumer ¶
func NewConsumer(ctx context.Context, db gorpmapper.SqlExecutorWithTx, opts NewConsumerOptions, parentConsumer *sdk.AuthUserConsumer) (*sdk.AuthUserConsumer, string, error)
func NewDriver ¶
func NewDriver() sdk.AuthDriver
NewDriver returns a new initialized driver for builtin authentication.
Types ¶
type AuthDriver ¶
type AuthDriver struct {
// contains filtered or unexported fields
}
AuthDriver for builtin authentication.
func (AuthDriver) GetDriver ¶ added in v0.53.0
func (d AuthDriver) GetDriver() sdk.Driver
func (AuthDriver) GetManifest ¶
func (d AuthDriver) GetManifest() sdk.AuthDriverManifest
func (AuthDriver) GetSessionDuration ¶
func (d AuthDriver) GetSessionDuration() time.Duration
func (AuthDriver) GetUserInfo ¶
func (d AuthDriver) GetUserInfo(ctx context.Context, req sdk.AuthConsumerSigninRequest) (sdk.AuthDriverUserInfo, error)
type NewConsumerOptions ¶ added in v0.52.0
type NewConsumerOptions struct { Name string Description string Duration time.Duration GroupIDs []int64 Scopes sdk.AuthConsumerScopeDetails ServiceName *string ServiceType *string ServiceRegion *string ServiceIgnoreJobWithNoRegion *bool }
NewConsumer returns a new builtin consumer for given data. The parent consumer should be given with all data loaded including the authentified user.
Click to show internal directories.
Click to hide internal directories.