fix: remove unused formatting directive
This commit is contained in:
parent
da29f9d055
commit
d438480f37
|
@ -328,7 +328,7 @@ func AuthorizeHandler() gin.HandlerFunc {
|
||||||
|
|
||||||
func validateAuthorizeRequest(responseType, responseMode, clientID, state, codeChallenge string) error {
|
func validateAuthorizeRequest(responseType, responseMode, clientID, state, codeChallenge string) error {
|
||||||
if strings.TrimSpace(state) == "" {
|
if strings.TrimSpace(state) == "" {
|
||||||
return fmt.Errorf("invalid state. state is required to prevent csrf attack", responseMode)
|
return fmt.Errorf("invalid state. state is required to prevent csrf attack")
|
||||||
}
|
}
|
||||||
if responseType != constants.ResponseTypeCode && responseType != constants.ResponseTypeToken && responseType != constants.ResponseTypeIDToken {
|
if responseType != constants.ResponseTypeCode && responseType != constants.ResponseTypeToken && responseType != constants.ResponseTypeIDToken {
|
||||||
return fmt.Errorf("invalid response type %s. 'code' & 'token' are valid response_type", responseMode)
|
return fmt.Errorf("invalid response type %s. 'code' & 'token' are valid response_type", responseMode)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user