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

@ -53,10 +53,6 @@ func ParseJWTProfileGrantRequest(r *http.Request, decoder httphelper.Decoder) (*
return tokenReq, nil
}
type JWTProfileTokenStorage interface {
JWTProfileTokenType(ctx context.Context, request TokenRequest) (AccessTokenType, error)
}
// CreateJWTTokenResponse creates an access_token response for a JWT Profile Grant request
// by default the access_token is an opaque string, but can be specified by implementing the JWTProfileTokenStorage interface
func CreateJWTTokenResponse(ctx context.Context, tokenRequest TokenRequest, creator TokenCreator) (*oidc.AccessTokenResponse, error) {