I'm struggling to implement a keycloak login from my Android app.
What I want to do is to simulate what a browser does (request a
resource, be redirected to keycloak login page and get an access
token later on). From what I've seen from the OAuth2 protocol, I
need to firstly get the authorization code and later on request the
access token with that code. I wouldn't like my Android app to be
registered as a client itself, so I've registered my web service as
public.
Here I start the intent to launch the Android browser pointing to
the keycloak authorization address (/openid-connect/auth):