Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Use .example extension for properties that require user to update
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed May 6, 2019
1 parent d5d6a67 commit 0c1bad4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ buildNumber.properties
.mvn/timing.properties
auth0-spring-mvc-sample.iml
.idea
auth0.properties


13 changes: 10 additions & 3 deletions 01-Login/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@
This sample demonstrates how to use Auth0 to perform authentication using the `mvc-auth-commons` library. Download or clone this repository and follow the instructions below to setup the sample.

### Auth0 Dashboard
1. On the [Auth0 Dashboard](https://manage.auth0.com/#/clients) create a new Client of type `Regular Web Application`.
1. Add the URL that will be called on an OAuth successful login to the Allowed Callback URLs. i.e.: `https:https://mysite.com/callback`.
1. Add the URL that will be called on logout to the Allowed Logout URLs. i.e.: `https:https://mysite.com`.
1. On the [Auth0 Dashboard](https://manage.auth0.com/#/clients) create a new Application of type `Regular Web Application`.
1. Add the URL that will be called on an OAuth successful login to the Allowed Callback URLs. i.e.: `http:https://localhost:3000/callback`.
1. Add the URL that will be called on logout to the Allowed Logout URLs. i.e.: `http:https://localhost:3000`.
1. Copy the `Domain`, `Client ID` and `Client Secret` values at the top of the page and use them to configure the Java Application.


### Java Application

Copy `src/main/resources/auth0.properties.example` to `src/main/resources/auth0.properties`:

```bash
cp src/main/resources/auth0.properties.example src/main/resources/auth0.properties
```

Set the client values in the `src/main/resources/auth0.properties` file. They are read by the `AppConfig` class.

```xml
Expand Down

0 comments on commit 0c1bad4

Please sign in to comment.