This is an example to authentication using Auth0 to Android Application.
Auth0 is a service that will facilitate the tedious process that entails performing authentication and secure authorization.
Clone this repository
> git clone https://github.com/Gusn8/Auth0-Sample.git
-
Import project to Android Studio 3.x
-
Requirements
- Gradle version: 3.4.0
- SdkVersion: 28.0.0
-
Create an Application in Auth0 dashboard
-
Select the authentication type.
-
Add the allowed callback in the next format:
{YOUR_SCHEME}://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback
YOUR_CHEME is the type of connection to Auth0 application, you can use https or demo
-
Replace your CLIENT_ID and YOUR_DOMAIN in strings.xml file.
<string name="com_auth0_client_id">{YOUR_CLIENT_ID}</string> <string name="com_auth0_domain">{YOUR_DOMAIN}</string>
-
Replace YOUR_SCHEME in build.gradle (Module) file, in manifestPlaceholders line.
manifestPlaceholders = [auth0Domain: "@string/com_auth0_domain", auth0Scheme: "{YOUR_SCHEME}"]
Click on Run as Android Application
- Android Studio - The IDE used.
- Kotlin - The language programming used.
- Auth0 - The service used.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Gustavo Lizárraga - Gusn8
This project is licensed under the MIT License - see the LICENSE.md file for more details.