Auth0 Home Blog Docs

Android Lock Get Authorization Code field and the Code Verifier

lock
android
authorization
pkce
verifier

#1

Hi,

I’m trying to use Android Lock to get the authorization code and code verify via the Authorize endpoint. Is this possible?

Thanks!

@abhishek.hingnikar if you’re online :wink:


#2

apparently this got it to work

    mAuth = new Auth0(getString(R.string.auth0_client_id), getString(R.string.auth0_domain));
    mAuth.setOIDCConformant(true);
    mAuth.setLoggingEnabled(true);

    //Request a refresh token along with the access token.
    mLock = Lock.newBuilder(mAuth, mCallback)
            .closable(true)
            .withAudience(getString(R.string.auth0_audience))
            .withScope("openid")
            .build(this);

Now I just use the access_token and everything works.


#3