Documentation ¶
Index ¶
- type OAuthBolt
- func (au *OAuthBolt) Approve(ctx context.Context, response service.IdentityResponse) error
- func (au *OAuthBolt) Authenticate(ctx context.Context, identity string, authtype string, token string) error
- func (au *OAuthBolt) Get(ctx context.Context, identity string) (service.Identity, error)
- func (au *OAuthBolt) Identities(ctx context.Context) ([]service.Identity, error)
- func (au *OAuthBolt) New(ctx context.Context, identity string, secret string) (string, error)
- func (au *OAuthBolt) Revoke(ctx context.Context, identity string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthBolt ¶
type OAuthBolt struct {
// contains filtered or unexported fields
}
OAuthBolt defines struct which implements the OAuthService interface to provide OAuth authentication using boltdb as the underline session storage.
func (*OAuthBolt) Approve ¶
Approve receives the giving response and uses the underline oauth client to retrieve access token.
func (*OAuthBolt) Authenticate ¶
func (au *OAuthBolt) Authenticate(ctx context.Context, identity string, authtype string, token string) error
Authenticate attempts to validate giving identity against provided token and auth type.
func (*OAuthBolt) Identities ¶
Identities returns all available valid identites within the store.
Click to show internal directories.
Click to hide internal directories.