Browse Source

[CLOUDTRUST-1716] Fix token verification issue

master
harture 6 years ago
committed by GitHub
parent
commit
c5106a945e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      keycloak_client.go

4
keycloak_client.go

@ -139,10 +139,10 @@ func (c *Client) GetToken(realm string, username string, password string) (strin
func (c *Client) VerifyToken(realmName string, accessToken string) error {
verifier, err := c.verifierProvider.GetOidcVerifier(realmName)
if err != nil {
err = verifier.Verify(accessToken)
}
return err
}
return verifier.Verify(accessToken)
}
// get is a HTTP get method.
func (c *Client) get(accessToken string, data interface{}, plugins ...plugin.Plugin) error {

Loading…
Cancel
Save