Documentation ¶
Index ¶
- type BloqsAuther
- func (a *BloqsAuther) CheckAccessBasic(ctx context.Context, c *proto.Credentials_Basic) error
- func (a *BloqsAuther) GrantSuper(ctx context.Context, creds *proto.Credentials) error
- func (a *BloqsAuther) IsSuperBasic(ctx context.Context, creds *proto.Credentials_Basic) (super bool, err error)
- func (a *BloqsAuther) RevokeSuper(ctx context.Context, creds *proto.Credentials) error
- func (a *BloqsAuther) SignInBasic(ctx context.Context, c *proto.Credentials_Basic) error
- func (a *BloqsAuther) SignOutBasic(ctx context.Context, c *proto.Credentials_Basic) error
- type BloqsTokener
- func (t *BloqsTokener) GenToken(ctx context.Context, p *auth.Payload) (tokenstr auth.Token, err error)
- func (t *BloqsTokener) ParseToken(ctx context.Context, tk auth.Token) (*jwt.Token, error)
- func (t *BloqsTokener) RevokeToken(ctx context.Context, tk auth.Token) error
- func (t *BloqsTokener) VerifyToken(ctx context.Context, tk auth.Token, p auth.Permission) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloqsAuther ¶
type BloqsAuther struct {
// contains filtered or unexported fields
}
func NewBloqsAuther ¶
func NewBloqsAuther(ctx context.Context, creds db.DataManipulater) (*BloqsAuther, error)
func (*BloqsAuther) CheckAccessBasic ¶
func (a *BloqsAuther) CheckAccessBasic(ctx context.Context, c *proto.Credentials_Basic) error
func (*BloqsAuther) GrantSuper ¶
func (a *BloqsAuther) GrantSuper(ctx context.Context, creds *proto.Credentials) error
func (*BloqsAuther) IsSuperBasic ¶
func (a *BloqsAuther) IsSuperBasic(ctx context.Context, creds *proto.Credentials_Basic) (super bool, err error)
func (*BloqsAuther) RevokeSuper ¶
func (a *BloqsAuther) RevokeSuper(ctx context.Context, creds *proto.Credentials) error
func (*BloqsAuther) SignInBasic ¶
func (a *BloqsAuther) SignInBasic(ctx context.Context, c *proto.Credentials_Basic) error
func (*BloqsAuther) SignOutBasic ¶
func (a *BloqsAuther) SignOutBasic(ctx context.Context, c *proto.Credentials_Basic) error
type BloqsTokener ¶
type BloqsTokener struct {
// contains filtered or unexported fields
}
func NewBloqsTokener ¶
func NewBloqsTokener(secrets db.KVDBer) *BloqsTokener
func (*BloqsTokener) ParseToken ¶
func (*BloqsTokener) RevokeToken ¶
func (*BloqsTokener) VerifyToken ¶
func (t *BloqsTokener) VerifyToken(ctx context.Context, tk auth.Token, p auth.Permission) (bool, error)
Click to show internal directories.
Click to hide internal directories.