feat(op): add support for client credentials

This commit is contained in:
Livio Spring 2023-01-30 10:54:22 +01:00
parent 2574ebc6e7
commit 90b99d4d2b
No known key found for this signature in database
GPG key ID: 26BB1C2FA5952CF0
8 changed files with 145 additions and 2 deletions

View file

@ -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