All Projects → auth0-community → Auth0 Drupal

auth0-community / Auth0 Drupal

Licence: mit
Auth0 Drupal Plugin - Single Sign On, Social Login, SAML and AD/LDAP Integration, User Management, Community Driven, Open Source

Projects that are alternatives of or similar to Auth0 Drupal

Auth0 Socketio Jwt
Authenticate socket.io incoming connections with JWTs
Stars: ✭ 1,093 (+2502.38%)
Mutual labels:  community-driven, open-source
Cas
Apereo CAS - Enterprise Single Sign On for all earthlings and beyond.
Stars: ✭ 9,154 (+21695.24%)
Mutual labels:  open-source, sso
Rox
🌍 BeWelcome lets you share a place to stay, connect with travellers, meet up and find accommodation on your journey. It is and will always be a free, open source, non for profit, democratic community.
Stars: ✭ 95 (+126.19%)
Mutual labels:  community-driven, open-source
Ember Simple Auth Auth0
Auth0 + lock.js, built on ember-simple-auth
Stars: ✭ 53 (+26.19%)
Mutual labels:  community-driven, open-source
Maxkey
MaxKey is Single Sign On(SSO) System,Leading-Edge Enterprise-Class open source IAM(Identity and Access management) product.
Stars: ✭ 274 (+552.38%)
Mutual labels:  open-source, sso
Pupil
Open source eye tracking
Stars: ✭ 982 (+2238.1%)
Mutual labels:  open-source
Freelancers Market
Laravel Project to help freelance websites clients and freelancers to find each other.
Stars: ✭ 39 (-7.14%)
Mutual labels:  open-source
Ultimatedrupalreference
A collection of the best, most promising and most efficient resources for Drupal 8 and 9.
Stars: ✭ 37 (-11.9%)
Mutual labels:  drupal
Awesome Ngo
A curated list of FOSS (Free and Open-source Software), freemium tools and guides for NGOs
Stars: ✭ 36 (-14.29%)
Mutual labels:  open-source
Icememe
Roblox Exploit Source Code Called IceMeme with some cmds, lua c and limited lua execution with simple ui in c#
Stars: ✭ 42 (+0%)
Mutual labels:  open-source
Digeds cat
This research seeks to examine best practice in the field of digital editions by collating relevant evidence in a detailed catalogue of extant digital projects.
Stars: ✭ 40 (-4.76%)
Mutual labels:  open-source
Spreed
📞😀 Nextcloud Talk – chat, video & audio calls for Nextcloud
Stars: ✭ 994 (+2266.67%)
Mutual labels:  open-source
Nsfw Filter
🚀 A Google Chrome / Firefox extension that blocks NSFW images from the web pages that you load using TensorFlow JS.
Stars: ✭ 984 (+2242.86%)
Mutual labels:  open-source
Localize and translate
Flutter localization in easy steps, really simple
Stars: ✭ 40 (-4.76%)
Mutual labels:  open-source
Tofu
Project for an open-source python library for synthetic diagnostics and tomography for Fusion devices
Stars: ✭ 35 (-16.67%)
Mutual labels:  open-source
Startbootstrap 2 Col Portfolio
A two column Bootstrap HTML portfolio template - created by Start Bootstrap
Stars: ✭ 40 (-4.76%)
Mutual labels:  open-source
Comcast.github.io
The main Open Source portal for Comcast
Stars: ✭ 36 (-14.29%)
Mutual labels:  open-source
Itkexamples
Cookbook examples for the Insight Toolkit documented with Sphinx
Stars: ✭ 38 (-9.52%)
Mutual labels:  open-source
Nodejs Sso Example
🌰 一个基于 Node.js 实现的单点登录实例。
Stars: ✭ 40 (-4.76%)
Mutual labels:  sso
Contributing
✨ Contributing Guide ⭐️ for @tunnckoCore ⬣ and @charlike projects 🐈 This is highly adapted and inspired from the awesome https://github.com/dwyl/contributing and https://opensource.guide articles, thank you! ❤️
Stars: ✭ 38 (-9.52%)
Mutual labels:  open-source

Drupal 8 Module for Auth0

This plugin replaces standard Drupal 8 login forms with one powered by Auth0 that enables social, passwordless, and enterprise connection login as well as additional security, multifactor auth, and user statistics.

Drupal 7 is supported only on v1. If you want to contribute to the codebase, please push your PRs against the 1.x.x branch. Note that this branch is not regularly maintained.

Table of Contents

Installation

Before you start, make sure the admin user has a valid email that you own. This module delegates the site authentication to Auth0. That means that you won't be using the Drupal database to authenticate users (user records will still be created) and the default login box will not be shown.

There are 2 ways to install this module detailed below. Please note: the Auth0 login form will not appear until the module has been configured (see Getting Started below).

Install from Drupal.org manually

  1. Go to the DO Auth0 module page, scroll to "Downloads," and copy the URL to the latest version's tar.gz file.
  2. Go to Manage > Extend and click Install New Module.
  3. Paste the URL copied into the "Install from a URL" field and click Install.
  4. Back on the Modules page, scroll down the the Auth0 module, click the checkbox, then click Install.

Install from Github

Installing from Github requires Composer (installation instructions).

  1. Navigate to your site's modules directory and clone this repo:
$ cd PATH/TO/DRUPAL/ROOT/modules
$ git clone https://github.com/auth0/auth0-drupal.git auth0
  1. Move to the newly-created directory and install the Composer dependencies:
$ cd auth0
$ composer install
  1. In Manage > Extend, scroll down the the Auth0 module, click the checkbox, then click Install

Install from Drupal.org with Composer

  1. From the root of your Drupal project run:
$ composer require drupal/auth0
  1. In Manage > Extend, scroll down the the Auth0 module, click the checkbox, then click Install

Getting Started

1. Configure your Auth0 Application

Once the module is installed, you'll need to create an Application for your Drupal site in the Auth0 dashboard.

  1. If you haven't already, sign up for a free Auth0 account here.
  2. Go to Applications and click Create Application on the top right.
  3. Give your Application a name, click Regular Web Application, the Create.
  4. Click the Settings tab at the top.
  5. In the "Allowed Callback URLs" field, add your site's homepage with a path of /auth0/callback like:
https://yourdomain.com/auth0/callback
  1. In the "Allowed Web Origins," "Allowed Logout URLs," and "Allowed Origins (CORS)" fields, add the domain of your Drupal site including the protocol but without a trailing slash like:
https://yourdomain.com
  1. Scroll down and click Save Changes.

Leave this tab open to copy the configuration needed in the next section.

2. Configure the Auth0 module

  1. Go to Manage > Configuration > System > Auth0
  2. Under the Settings tab, copy and paste the values for the 3 required fields from the Application settings screen in the Auth0 dashboard. You can also save dummy values and override them using Drupal's built in config override system (explained here) in your settings.php file:
$config['auth0.settings']['auth0_client_id'] = getenv('AUTH0_CLIENT_ID');
$config['auth0.settings']['auth0_client_secret'] = getenv('AUTH0_CLIENT_SECRET');
$config['auth0.settings']['auth0_domain'] = getenv('AUTH0_DOMAIN');
  1. Click Save and your Auth0 login form should now be showing on the login page. To test this, open a new browser (or private/incognito window) and navigate to your login page at /user/login.

3. Advanced configuration

Under the Advanced tab in the same settings screen, you can configure the following:

  • Form title: Change the title on the Auth0 login form.
  • Allow user signup: Include the Sign Up tab on the Auth0 login form.
  • Send a Refresh Token: Include a refresh token in the returned profile data from Auth0 when logging in.
  • Redirect login for SSO: Use the Universal Login Page to enable SSO. You'll need to add your Drupal site home page to the Tenant Settings > Advanced > "Allowed Logout URLs" field if this is enabled.
  • Widget CDN: URL to the Lock JS file in the Auth0 CDN. In general, this should not be changed unless upgrading to a new version or if instructed by Auth0 support.
  • Requires verified email: Enable this setting to require Auth0 users to have a verified email in order to login. Please note that this will prevent users without email addresses (e.g. Twitter users) from logging in.
  • Link Auth0 logins to Drupal users: Enabling this setting will match incoming successful logins to a Drupal user using their email address.
  • Map Auth0 claim to Drupal user name: This will use the specified ID token claim to set the Drupal username.
  • Login widget css: Additional CSS to output on the login page.
  • Lock extra settings: Additional settings to change the Auth0 login form's behavior and appearance. See here for more details and examples.
  • Auto Register Auth0 users: This will register new Drupal users from incoming Auth0 ones, even if registration on your site is off. This makes it possible to create a user in Auth0 but not in Drupal and have a new Drupal user created when they log in.
  • Mapping of Claims to Profile Fields: Follow the directions below this field to save incoming Auth0 ID token claims as Drupal profile fields.
  • Claim for Role Mapping: Name of the ID token claim to map incoming data from Auth0 to Drupal roles.
  • Mapping of Claim Role Values: Follow the directions below this field to set Drupal roles for users based on incoming Auth0 data.

Contribution

We appreciate feedback and contribution to this module! Before you get started, please see the following:

Support + Feedback

Please use one of the following methods to ask questions or request support:

Vulnerability Reporting

Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

What is Auth0?

Auth0 helps you to easily:

  • implement authentication with multiple identity providers, including social (e.g., Google, Facebook, Microsoft, LinkedIn, GitHub, Twitter, etc), or enterprise (e.g., Windows Azure AD, Google Apps, Active Directory, ADFS, SAML, etc.)
  • log in users with username/password databases, passwordless, or multi-factor authentication
  • link multiple user accounts together
  • generate signed JSON Web Tokens to authorize your API calls and flow the user identity securely
  • access demographics and analytics detailing how, when, and where users are logging in
  • enrich user profiles from other data sources using customizable JavaScript rules

Why Auth0?

License

The Drupal Module for Auth0 is licensed under GPLv2 - LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].