Skip to content

ForcePKCE option make orther grant type error #172

@xiviu123

Description

@xiviu123

The origin validate ForcePKCE in server.ValidationTokenRequest func:

if s.Config.ForcePKCE && codeVer == "" {
  return "", nil, errors.ErrInvalidRequest
}

Should add filter by grant type authorization code?

if gt == oauth2.AuthorizationCode && s.Config.ForcePKCE && codeVer == "" {
  return "", nil, errors.ErrInvalidRequest
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions