- Notifications
You must be signed in to change notification settings - Fork457
Auth0 Integration Samples for Angular 2+ Applications
License
auth0-samples/auth0-angular-samples
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
These samples demonstrate how to add authentication to an Angular application with Auth0, usingauth0-angular. Each folder contains a distinct application so that various Auth0 features can be viewed in isolation. You can read about these examples in ourAngular Quickstart.
Read thefull tutorials on Auth0.com.
These samples use Auth0'suniversal login page which offers the fastest, most secure, and most feature-rich way to add authentication to your app.
Auth0 helps you to:
- Add authentication withmultiple authentication sources, either social likeGoogle, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others, or enterprise identity systems likeWindows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
- Add authentication through more traditionalusername/password databases.
- Add support forlinking different user accounts with the same user.
- Support for generating signedJson Web Tokens to call your APIs andflow 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, throughJavaScript rules.
- Go toAuth0 and click Sign Up.
- Use Google, GitHub or Microsoft Account to login.
The example application(s) require to be configured with your Auth0 information in order to run succesfully.This can be done by renamingauth_config.json.example (https://github.com/auth0-samples/auth0-angular-samples/blob/main/Sample-01/auth_config.json.example) toauth_config.json and replacing{DOMAIN},{CLIENT_ID} and{API_IDENTIFIER} with your tenant specific values:
{ "domain": "YOUR_DOMAIN", "clientId": "YOUR_CLIENT_ID", "authorizationParams": { "audience": "{yourApiIdentifier}", }, "apiUri": "http://localhost:3001", "appUri": "http://localhost:4200"}Domain andClient Id can be found in the corresponding Application in the Auth0 Dashboard, whileAudience needs to be set to the identifier of the API, found in the Auth0 Dashboard.
Also ensure the Application in Auth0 is configured to allowhttp://localhost:4200 as aCallback URL,Logout URL andAllowed Web Origin.
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. TheResponsible Disclosure Program details the procedure for disclosing security issues.
You can deploy this example as a site on your own to explore and experiment with, by clicking this button.After deploy, install Auth0 by Okta extension in Netlify and follow the steps to create an App.
This project is licensed under the MIT license. See theLICENSE file for more info.
About
Auth0 Integration Samples for Angular 2+ Applications
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.