forked from TrueCloudLab/certificates
Merge pull request #901 from smallstep/fix/admin-token
Drop any query string from the admin tokens
This commit is contained in:
commit
b99692fdaa
1 changed files with 7 additions and 0 deletions
|
@ -90,6 +90,13 @@ func (c *AdminClient) generateAdminToken(aud *url.URL) (string, error) {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Drop any query string parameter from the token audience
|
||||||
|
aud = &url.URL{
|
||||||
|
Scheme: aud.Scheme,
|
||||||
|
Host: aud.Host,
|
||||||
|
Path: aud.Path,
|
||||||
|
}
|
||||||
|
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
tokOptions := []token.Options{
|
tokOptions := []token.Options{
|
||||||
token.WithJWTID(jwtID),
|
token.WithJWTID(jwtID),
|
||||||
|
|
Loading…
Add table
Reference in a new issue