Skip to content

Auth0 Setup

Iak edited this page Feb 2, 2023 · 1 revision

Tenant Settings

General

Bildschirmfoto_2022-06-18_um_02.03.09 Bildschirmfoto_2022-06-18_um_02.03.36 Bildschirmfoto_2022-06-18_um_02.05.55

Applications

  1. Create new application with name proceed-ms-server

Settings

Bildschirmfoto_2022-06-18_um_02.12.14 Bildschirmfoto_2022-06-18_um_02.12.28 Bildschirmfoto_2022-06-18_um_02.12.36

Connections

Bildschirmfoto_2022-06-18_um_02.22.17

APIs

Settings

Bildschirmfoto_2022-06-18_um_02.20.41

Machine to Machine Applications

Bildschirmfoto_2022-06-18_um_02.44.20

  • This gives the MS Server the permissions to create, read, update and delete users on the Authorization Server

Database

  1. Create new database with name PROCEED

Settings

Bildschirmfoto_2022-06-18_um_02.18.08

Applications

Bildschirmfoto_2022-06-18_um_02.18.33

Branding

Universal Login

Bildschirmfoto_2022-06-18_um_02.29.13

Attack Protection

Bildschirmfoto_2022-06-18_um_02.32.49

Bot Detection

Bildschirmfoto_2022-06-18_um_02.30.24

Rules

  1. Add new rule with name Username as preferred username and the following code:
function (user, context, callback) {
  user.preferred_username = user.username;
  return callback(null, user, context);
}

Hooks

  1. Add new pre user registration hook with name fill-preferred-usernameand the following code:
/**
@param {object} user - The user being created
@param {string} user.tenant - Auth0 tenant name
@param {string} user.username - user name
@param {string} user.password - user's password
@param {string} user.email - email
@param {boolean} user.emailVerified - is e-mail verified?
@param {string} user.phoneNumber - phone number
@param {boolean} user.phoneNumberVerified - is phone number verified?
@param {object} context - Auth0 connection and other context info
@param {string} context.renderlanguage - language used by signup flow
@param {string} context.request.ip - ip address
@param {string} context.request.language - language of the client agent
@param {object} context.connection - information about the Auth0 connection
@param {object} context.connection.id - connection id
@param {object} context.connection.name - connection name
@param {object} context.connection.tenant - connection tenant
@param {object} context.webtask - webtask context
@param {function} cb - function (error, response)
*/
module.exports = function (user, context, cb) {
  var response = {};

  user.preferred_username = user.username;
  response.user = user;

  cb(null, response);
};
Clone this wiki locally