I have an android application. I'm trying to use oauth2 to login my users, and provide access to my server. The server is written using spring boot. I'm using google as my social auth.
I think the flow is meant to be:
Android app gets oauth token
Android app passes this token to the spring boot app as a request property
Spring boot takes the token and validates it.
I've successfully done (1) by following: https://developer.android.com/training/id-auth/authenticate.html
(2) is easy enough (example in above link)
My questions are:
Is this correct?
Where do I configure my api key with spring boot?
So that flow is correct, or at least is working for me.
To get this working I needed to do two things:
Change the value of the Authorization header in the example from OAuth to Bearer
Add the filter from this other post: Spring Security OAuth2 - @EnableOauth2Sso but accept tokens as authentication, too
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With