Update server/refreshhandlers.go
Co-authored-by: Márk Sági-Kazár <sagikazarmark@users.noreply.github.com> Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
parent
578cb05f7b
commit
ca615f7ad7
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ func (s *Server) getRefreshTokenFromStorage(clientID string, token *internal.Ref
|
||||||
|
|
||||||
if refresh.ClientID != clientID {
|
if refresh.ClientID != clientID {
|
||||||
s.logger.Errorf("client %s trying to claim token for client %s", clientID, refresh.ClientID)
|
s.logger.Errorf("client %s trying to claim token for client %s", clientID, refresh.ClientID)
|
||||||
// According to https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 Dex should response with the
|
// According to https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 Dex should respond with an
|
||||||
// invalid grant error if token has already been claimed by another client.
|
// invalid grant error if token has already been claimed by another client.
|
||||||
return nil, &refreshError{msg: errInvalidGrant, desc: invalidErr.desc, code: http.StatusBadRequest}
|
return nil, &refreshError{msg: errInvalidGrant, desc: invalidErr.desc, code: http.StatusBadRequest}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue