implemented support for client_credentials grant

This commit is contained in:
James Batt 2022-04-15 12:59:05 +10:00
parent 550f7877f2
commit a6ad6604aa
6 changed files with 147 additions and 2 deletions

View file

@ -27,6 +27,10 @@ type AuthStorage interface {
GetKeySet(context.Context) (*jose.JSONWebKeySet, error)
}
type ClientCredentialsXXX interface {
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