Skip to content

Social Login with Google returns 404 #663

@jamesjmtaylor-evercharge

Description

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

I'm attempting to integrate the lock SDK for our Android app. I have the following settings:

    private fun showClassicLock() {
        val builder = Lock.newBuilder(account, callback)
            .withScheme("https")
            .withAudience("https://apitest.cove.evercharge.com")
            .withScope("openid profile offline_access email")
            .allowedConnections(listOf("google-oauth2"))
            .withAuthenticationParameters(
                mapOf(
                    "prompt" to "select_account",
                )
            )


        // For demo purposes because options change dynamically, we release the resources of Lock here.
        // In a real app, you will have a single instance and release its resources in Activity#OnDestroy.
        lock?.onDestroy(this)
        // Create a new instance with the updated configuration
        lock = builder.build(this)
        startActivity(lock!!.newIntent(this))
    }

After selecting my google account I get the following screen

Screenshot 2023-11-10 at 8 23 30 AM

What I expected to happen was to have the LockCallback.onAuthentication triggered.

Reproduction

  1. Clone the repository at https://github.com/auth0/Lock.android/blob/main/EXAMPLES.md#examples-using-lockandroid
  2. Update audience, scheme, clientId, appid, and domain based off of the Native Application in our Auth0 console.
  3. Update the builder with the parameters in the description.
  4. Run the app.
  5. Trigger social login
  6. Select an account
  7. Complete login

Expected: LockCallback.onAuthentication triggered.
Actual: 404 page is shown

This occurs consistently.

Additional context

No response

Lock.Android version

3.2.2

Android version(s)

14

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions