document JWTProfileTokenStorage

This commit is contained in:
Livio Spring 2023-02-06 09:11:45 +01:00
parent c35968e74d
commit f8ce5f400f
No known key found for this signature in database
GPG key ID: 26BB1C2FA5952CF0
2 changed files with 6 additions and 4 deletions

View file

@ -44,6 +44,12 @@ type OPStorage interface {
ValidateJWTProfileScopes(ctx context.Context, userID string, scopes []string) ([]string, error)
}
// JWTProfileTokenStorage is an additional, optional storage to implement
// implementing it, allows specifying the [AccessTokenType] of the access_token returned form the JWT Profile TokenRequest
type JWTProfileTokenStorage interface {
JWTProfileTokenType(ctx context.Context, request TokenRequest) (AccessTokenType, error)
}
type Storage interface {
AuthStorage
OPStorage