mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Fixed issue with scope not being added to token
This commit is contained in:
parent
6b2218efbd
commit
fddcc8d6af
3 changed files with 9 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue