Merge 3b82478b4c
into d6e37fa741
This commit is contained in:
commit
4efcca0728
4 changed files with 23 additions and 11 deletions
|
@ -7,7 +7,7 @@ type JWTProfileGrantRequest struct {
|
|||
}
|
||||
|
||||
// NewJWTProfileGrantRequest creates an oauth2 `JSON Web Token (JWT) Profile` Grant
|
||||
//`urn:ietf:params:oauth:grant-type:jwt-bearer`
|
||||
// `urn:ietf:params:oauth:grant-type:jwt-bearer`
|
||||
// sending a self-signed jwt as assertion
|
||||
func NewJWTProfileGrantRequest(assertion string, scopes ...string) *JWTProfileGrantRequest {
|
||||
return &JWTProfileGrantRequest{
|
||||
|
|
|
@ -186,7 +186,7 @@ func toJoseSignatureAlgorithms(algorithms []string) []jose.SignatureAlgorithm {
|
|||
out[i] = jose.SignatureAlgorithm(algorithms[i])
|
||||
}
|
||||
if len(out) == 0 {
|
||||
out = append(out, jose.RS256, jose.ES256, jose.PS256)
|
||||
out = append(out, jose.RS256, jose.ES256, jose.PS256, jose.RS256)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue