DEV Community

Discussion on: Spring boot + Spring Security 5 + OAuth2/OIDC Client - Basics

Collapse
gfalco77 profile image
gfalco77

Hello,

I followed the instructions but I get a
"An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: 401 Unauthorized"

Do you know what could be the problem? I created the credentials in my google account. I don't know if there are additional steps to do there.

Thanks

Collapse
shyamala_u profile image
Shyamala Author

Hi,

Have you checked if the combination of client-id and client-secret is the right value?

client-id: <<your-client-id>>
client-secret: <<your-client-secret>> # @see https://console.developers.google.com/apis/