Skip to content

Conversation

@niklaswallerstedt
Copy link

  • Remove refresh_token from implicit flow response (MUST NOT be issued per RFC 6749 § 4.2.2)
  • Add required token_type parameter set to "Bearer" (REQUIRED per RFC 6749 § 4.2.2)
  • Add expires_in parameter to response (RECOMMENDED per RFC 6749 § 4.2.2)
  • Add test coverage verifying RFC 6749 compliance

Per RFC 6749 Section 4.2.2 (https://tools.ietf.org/html/rfc6749#section-4.2.2):
"The authorization server MUST NOT issue a refresh token"

- Remove refresh_token from implicit flow response (MUST NOT be issued per RFC 6749 § 4.2.2)
- Add required token_type parameter set to "Bearer" (REQUIRED per RFC 6749 § 4.2.2)
- Add expires_in parameter to response (RECOMMENDED per RFC 6749 § 4.2.2)
- Add test coverage verifying RFC 6749 compliance

Per RFC 6749 Section 4.2.2 (https://tools.ietf.org/html/rfc6749#section-4.2.2):
"The authorization server MUST NOT issue a refresh token"

Additionally, RFC 9700 Section 2.1.2 (OAuth 2.0 Security BCP) recommends against using implicit flow
@niklaswallerstedt niklaswallerstedt marked this pull request as ready for review October 20, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant