feat(op): add support for client credentials
This commit is contained in:
parent
2574ebc6e7
commit
90b99d4d2b
8 changed files with 145 additions and 2 deletions
|
@ -28,6 +28,11 @@ type AuthStorage interface {
|
|||
KeySet(context.Context) ([]Key, error)
|
||||
}
|
||||
|
||||
type ClientCredentialsStorage interface {
|
||||
ClientCredentials(ctx context.Context, clientID, clientSecret string) (Client, error)
|
||||
ClientCredentialsTokenRequest(ctx context.Context, clientID string, scopes []string) (TokenRequest, error)
|
||||
}
|
||||
|
||||
type OPStorage interface {
|
||||
GetClientByClientID(ctx context.Context, clientID string) (Client, error)
|
||||
AuthorizeClientIDSecret(ctx context.Context, clientID, clientSecret string) error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue