Skip to content

Reconsider the implicit grant #9

Description

@roborourke

RFC 9700 (OAuth 2.0 Security Best Current Practice) and OAuth 2.1 both drop the implicit grant: it returns an access token directly in a URL fragment, with no code-exchange step, which makes token leakage (browser history, referrer headers, logs) much easier than the authorization_code grant. This plugin registers it by default (`Types\Implicit`, response_type=token).

PKCE (#1) had to explicitly special-case this grant (a PKCE-required client is refused when using it, since there's no code for a challenge to bind to) — a good example of the implicit grant not fitting cleanly into a spec-compliant server. Worth deciding whether to deprecate it, make it opt-in, or document it as discouraged.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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