-
Notifications
You must be signed in to change notification settings - Fork 142
Setup Auth0 App
Geremia Taglialatela edited this page Feb 6, 2021
·
11 revisions
An Auth0 account
- Login to https://auth0.com/
- Click on the top-left menu dropdown -> Create tenant
- Fill in Tenant Domain with your app's name (e.g.,
myicare
), select an appropriate Region, and click on Create - Click on Applications on the left sidebar
- You should already see a "Default Application", click on its name
- Fill in Name with the name of your choice (e.g.,
My Icare
) - Change Application Type to "Regular Web Application"
- Fill in Allowed Callback URLs with your application's callback URL (e.g.,
http://myicare.herokuapp.com/users/auth/auth0/callback
) - Fill in Allowed Web Origins with your application's base URL (e.g.,
https://myicare.herokuapp.com
) - Click on Save Changes, we are done!
- Login to https://auth0.com/
- On the left sidebar, choose Branding -> Universal Login
- Select the Login tab
- Enable "Customize Login Page"
- Add the following to the
var lock =
assignment configuration:defaultADUsernameFromEmailPrefix: false, additionalSignUpFields: [{ name: "name", storage: "root", placeholder: "Name" }]
- Click on Save Changes
Ref:
In Demo mode, we delete profiles on Auth0 provider for user privacy. You don't want this in a proper OAuth authentication flow, but if you need it, these are the steps to follow:
- Login to https://auth0.com/
- On the left sidebar, choose Applications -> APIs
- Selecte Machine to Machine Applications tab
- Change your application name settings to Authorized
- Enable
delete:users
permission
We suggest you to create a separate application for the development environment. Use localhost:3000
as App base URL. Put your credentials in config/settings/local.rb
.