Skip to content
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

An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: 401 Unauthorized #746

Open
NaceurBouhamed opened this issue Dec 27, 2018 · 3 comments

Comments

@NaceurBouhamed
Copy link

I followed the exact steps in this tutorial, but kept having this error

[invalid_token_response] An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: 401 Unauthorized

I tried this quickstart guide here to make sure the aad is well configured and it worked like a charm.

Has anyone faced the same problem ?

@VeitSanner
Copy link

I am facing the same issue. I can't get the sample to work either. Previously there was also issue #410 which also mentions issue with sample application for Spring Boot.

@stewartadam could you support us with this?

@stewartadam
Copy link

Hello,

I did not author these samples so I'm not familiar with why or how they would be breaking, but I was able to get my own spring security 5 integration with AAD working which you can find here: https://github.com/stewartadam/azuread-springsecurity5-oauth2-kickstart

@crazyjavatricks
Copy link

Hi,
I am also getting the same,

[invalid_token_response] An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: I/O error on POST request for "https://github.com/login/oauth/access_token": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)

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

No branches or pull requests

4 participants