Skip to content

Support form URL-encoded parameters for token revocation #655

@srook

Description

@srook

Bug report

Description

Method Oauth2::Client#revoke_token will always submit request parameters as query string.

Expected behaviour

Method call client.revoke_token('token-string', 'refresh_token', { token_method: :post }), should make revocation request using x-www-form-urlencoded header and send parameters as request body.

Actual behaviour

Request will be made with x-www-form-urlencoded header, but parameters will still be sent as query parameters and body will be empty.

Metadata

Metadata

Assignees

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