Auth0 Home Blog Docs

LinkedIn Authentication On Android

android
authentication
linkedin

#1

I’m using Android Studio on Ubuntu 16.04 to try to add LinkedIn authentication to my app. I followed the directions at the link below without trouble:

*. https://auth0.com/docs/connections/social/linkedin

I moved on to the Native/Mobile instructions via ‘Quick Start’ and went through the following sets of instructions:

*. https://auth0.com/docs/quickstart/native/android

*. https://auth0.com/docs/quickstart/native/android/00-login

The login for my app didn’t work. It redirected to https://app_name.auth0.com and displayed a broken page: “Aww, Snap! Something went wrong with trying to display the webpage.” I then tried the sample app (https://github.com/auth0-samples/auth0-android-sample/tree/master/00-Login) and got the same thing. Any pointers on how to fix this would be appreciated.


#2

The application should be accessing https://[tenant].auth0.com/*. You say that you got navigated to https://.auth0.com/* instead and got an error so the likely cause is that you did not configure the tenant domain correctly so the application is using the domain .auth0.com while it should be using [tenant].auth0.com; in conclusion, the tenant information is missing.


#3

Sorry. It actually went to https://app_name.auth0.com/. For some reason that part of my post wasn’t showing up. I edited it.


#4

If the configuration is correct then it’s unlikely to be an Android specific thing because the login in that sample will be done through the web browser so it’s very similar to a web application login through LinkedIn and I did a quick test with no issues. I do know that LinkedIn experienced some issues with login in the last days so wonder if this can be related… do you experience the issue every time? Do you think you can get more information in addition to the browser error; for example, details on the actual HTTP request that failed.


#5