Skip to content

OAuth2. getOAuthAccessToken() should support HTTP Basic authentication scheme #300

Open
@astanciu

Description

@astanciu

Per RFC 6749 it should be possible to supply the Client ID and Client Secret using the HTTP Basic authentication scheme. As far as I can tell, the lib only supports sending the client credentials in the request-body.

This is actually not recommended per the RFC:

Including the client credentials in the request-body using the two
parameters is NOT RECOMMENDED and SHOULD be limited to clients unable
to directly utilize the HTTP Basic authentication scheme (or other
password-based HTTP authentication schemes).

As an example, Reddit only supports getting the access token using Basic authentication

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions