Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

API Support for Bearer Tokens #1025

Open
rwinch opened this issue Apr 7, 2021 · 2 comments
Open

API Support for Bearer Tokens #1025

rwinch opened this issue Apr 7, 2021 · 2 comments
Assignees
Labels
a: enhancement re: site regarding the Sagan Site app

Comments

@rwinch
Copy link
Contributor

rwinch commented Apr 7, 2021

The API currently supports HTTP Basic with username/token. Using HTTP Basic is a non-standard way of providing the OAuth token. The username for HTTP Basic is not used and is additional unnecessary information that must be provided. Instead, support for Bearer tokens should be provided.

@bclozel bclozel self-assigned this Apr 8, 2021
@bclozel bclozel added a: enhancement re: site regarding the Sagan Site app labels Apr 8, 2021
@rwinch
Copy link
Contributor Author

rwinch commented Apr 8, 2021

FWIW...you should be able to do this by adding BearerTokenAuthenticationFilter to the HttpSecurity and injecting the existing GitHubAuthenticationManager into it.

@zwy-188
Copy link

zwy-188 commented Apr 16, 2021

Do you have HttpSecurity API,Can you send me a copy?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: enhancement re: site regarding the Sagan Site app
Development

No branches or pull requests

3 participants