Fix OpenBao OIDC token exchange compatibility
This commit is contained in:
parent
06d20c3379
commit
d6d41dd84f
6 changed files with 43 additions and 11 deletions
|
|
@ -111,6 +111,9 @@ func (h *TokenHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
"exp": exp.Unix(),
|
||||
"iat": now.Unix(),
|
||||
}
|
||||
if sess.Nonce != "" {
|
||||
claims["nonce"] = sess.Nonce
|
||||
}
|
||||
|
||||
scopeSet := make(map[string]bool)
|
||||
for _, s := range sess.Scopes {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue