Documentation ¶
Index ¶
- func CheckSigninConsumerToken(signature string) (string, int64, error)
- func CheckSigninConsumerTokenIssuedAt(ctx context.Context, signature string, c *sdk.AuthUserConsumer) (string, error)
- func NewBuiltinDriver() sdk.Driver
- func NewConsumer(ctx context.Context, db gorpmapper.SqlExecutorWithTx, opts NewConsumerOptions, ...) (*sdk.AuthUserConsumer, string, error)
- func NewSigninConsumerToken(c *sdk.AuthUserConsumer) (string, error)
- type BuiltinDriver
- type NewConsumerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuiltinDriver ¶
NewBuiltinDriver returns a new initialized driver for builtin authentication.
func NewConsumer ¶
func NewConsumer(ctx context.Context, db gorpmapper.SqlExecutorWithTx, opts NewConsumerOptions, parentConsumer *sdk.AuthUserConsumer) (*sdk.AuthUserConsumer, string, error)
func NewSigninConsumerToken ¶
func NewSigninConsumerToken(c *sdk.AuthUserConsumer) (string, error)
NewSigninConsumerToken returns a token to signin with built in consumer.
Types ¶
type BuiltinDriver ¶
type BuiltinDriver struct{}
func (BuiltinDriver) CheckSigninRequest ¶
func (d BuiltinDriver) CheckSigninRequest(req sdk.AuthConsumerSigninRequest) error
CheckSigninRequest checks that given driver request is valid for a signin with auth builtin.
func (BuiltinDriver) GetUserInfoFromDriver ¶
func (d BuiltinDriver) GetUserInfoFromDriver(ctx context.Context, req sdk.AuthConsumerSigninRequest) (sdk.AuthDriverUserInfo, error)
type NewConsumerOptions ¶
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.