-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use Bitbucket as a provider #3075
Comments
This seems to be an upstream bug. They send one response but then expect something else? 😅 |
Hi there! It looks like this issue hasn't had any activity for a while. It will be closed if no further activity occurs. If you think your issue is still relevant, feel free to comment on it to keep it open. (Read more at #912) Thanks! |
Hi there! It looks like this issue hasn't had any activity for a while. To keep things tidy, I am going to close this issue for now. If you think your issue is still relevant, just leave a comment and I will reopen it. (Read more at #912) Thanks! |
I posted a comment here: #3076 (comment) This is how I managed to use bitbucket as a provider. |
I also came across this same issue to do with the token_type inconsistency breaking stuff. NextAuth's OpenID Client was making a request with a lowercase b in the $ curl https://api.bitbucket.org/2.0/user --header "authorization: bearer xxxxxxxxx" -i
HTTP/2 401
server: envoy But it works when using uppercase b in $ curl https://api.bitbucket.org/2.0/user --header "authorization: Bearer xxxxxxxxx" -i
HTTP/2 200
server: envoy I used @jayantbh's example from above, but had to modify it a bit to work with bitbucket's latest API: #3076 (comment) |
Question 💬
Hey folks,
I was adding Bitbucket as a provider and did not work. Since the bitbucket authorization returns the
token_type
asbearer
, when passing throughuserinfo
it returns 401 as it only accepts the token asBearer
.Response from bitbucket oauth2:
How to reproduce ☕️
CodeSandbox
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
The text was updated successfully, but these errors were encountered: