Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

auth0-angular

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-angular

This AngularJS module will help you implement client-side and server-side (API) authentication. You can use it together with [Auth0](https://www.auth0.com) to add support for username/password authentication, enterprise identity providers like Active Dire

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
150
increased by2.04%
Maintainers
3
Weekly downloads
 
Created
Source

Auth0 and AngularJS

This AngularJS module will help you implement client-side and server-side (API) authentication. You can use it together with Auth0 to add support for username/password authentication, enterprise identity providers like Active Directory or SAML and also for social identity providers like Google, Facebook or Salesforce among others to your web, API and mobile native apps.

Auth0 is a cloud service that provides a turn-key solution for authentication, authorization and Single Sign On.

NPM / Bower users: Find this dependecy as auth0-angular. Take into account that you will need to include either auth0-widget.js or auth0.js in order to run the examples using Bower or Auth0 Angular (they can be found as dependencies of this module).

Tutorials

There are two ways of implementing signin/singup.

  • Login Widget: A complete Login UI ready to go, that can be customized, translated and expanded. You can check the following getting started guides:
  • JavaScript SDK: You can write your own UI from scratch in order to provide a more tailored user experience.

With the Login Widget

The following guides will help you getting started:

User/Password + Social Login with Auth0 Widget (redirect mode)

Authenticate using the Login Widget and listen to an event. Your angular app will be refreshed when it comes back from Auth0 as opposed to the popup mode.

Read the tutorial

widget_guide

User/Password + Social Login with Auth0 Widget (popup mode)

Authenticate using the Login Widget and get back a promise. Your angular app won't refresh because it uses window.open popup for social providers and an ajax call for user/password auth).

Read the tutorial

widget_popup

With your own UI

User/Password Login

Authenticate user/passwords and get back a promise.

Read the tutorial

basic_guide

Social Login

Authenticate using social providers

Read the tutorial

popup_guide

Also, we have an examples section that contains comprehensive scenarios.

Using SSO

You can now use sso. If you have multiple Angular apps in different domains, you can have your users be automatically logged in to one of your apps if they're logged in to the another one. It's important that you DON'T use popup mode with this:

// in the config method
authProvider.init({
  clientID: '1234',
  callbackURL: location.href,
  domain: 'gonto.auth0.com',
  sso: true
});

authProvider.on('loginSuccess', function($location) {
  // This will get called after successful login 
  // and also after successful SSO automatic login
  $location.path('/');
})

You can Check out the example here

Documentation

Development

What is Auth0?

Auth0 helps you to:

  • Add authentication with multiple authentication sources, either social like Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others, or enterprise identity systems like Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
  • Add authentication through more traditional username/password databases.
  • Add support for linking different user accounts with the same user.
  • Support for generating signed Json Web Tokens to call your APIs and flow the user identity securely.
  • Analytics of how, when and where users are logging in.
  • Pull data from other sources and add it to the user profile, through JavaScript rules.

Create a free account in Auth0

  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub or Microsoft Account to login.

FAQs

Package last updated on 24 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc