Skip to content

This is a Java Spring Boot Security Regular Web application that uses the SAML2 protocol to authentication against Auth0 as SAML IDP

Notifications You must be signed in to change notification settings

slachiewicz/auth0-java-springboot-security-saml-idp-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth0 Java Spring Boot Security Regular Webapp SAML IDP Client

This is a Java Spring Boot Security Regular Web application that uses the SAML2 protocol to authentication against Auth0 as SAML IDP

Full configuration options here

Setup

Locally

Optional, dev. setup.

Add:

127.0.0.1  app1.com

to your /etc/hosts file.

Dashboard

Create a regular web application Client.

Under settings ensure you have:

Client-Type: Regular Web Application

Allowed Callback URLs:

Allowed Logout URLs

Under tenant settings -> advanced -> Allowed Logout URLs

Under Application -> Addons -> SAML2 Web App

We shall be following these Auth0 documentation instructions

Enable the SAML2 Web App toggle

Optionally, add any specific settings you like in Settings textarea.

For example:

{
  "nameIdentifierProbes": [
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
  ]
}

Under Application -> Addons -> SAML2 Web App (Usage tab)

Select Identity Provider Metadata: download and download the metadata file.

Rename as auth0-metadata.xml and place under /src/main/resources in this project.

Running the Sample

You need maven and java 8+

Run the application by executing the command below.

mvn spring-boot:run

The app will be served at http://app1.com:3000.

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.

Issue Reporting

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. The Responsible Disclosure Program details the procedure for disclosing security issues.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.

About

This is a Java Spring Boot Security Regular Web application that uses the SAML2 protocol to authentication against Auth0 as SAML IDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 84.2%
  • HTML 15.8%