Fixed issue with scope not being added to token

This commit is contained in:
David J. Allen 2024-03-19 15:01:47 -06:00
parent 6b2218efbd
commit fddcc8d6af
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
3 changed files with 9 additions and 4 deletions

View file

@ -66,6 +66,9 @@ func (client *Client) AddTrustedIssuer(url string, ti *TrustedIssuer) ([]byte, e
return nil, fmt.Errorf("no valid trusted issuer provided")
}
// add the client's scope to trusted issuer
ti.Scope = append(ti.Scope, client.Scope...)
quotedScopes := make([]string, len(ti.Scope))
for i, s := range ti.Scope {
quotedScopes[i] = fmt.Sprintf("\"%s\"", s)