Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.
/ websec-saml2sp Public archive

SAML 2.0 SSO Service Provider demo application fro the WebSec course

License

Notifications You must be signed in to change notification settings

chrludwig/websec-saml2sp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSec SAML 2.0 SSO Service Provider Demo Application

This project implements a Spring Boot Web application that demonstrates Single Sign On using the SAML 2.0 WebSSO profile. It builds on Vincenzo De Notaris's Spring Boost-based Spring Security SAML Extension Sample Service.

Functional changes

  • Besides SSOCircle, saml2sp supports a locally running WSO2 Identity Server (Version >= 5.1.0) as an alternative IdP.
  • Role information in the SAML credential attributes is used to determine the Spring Security authorities (or roles) of the logged in user. (If there are no supported roles in the the SAML credential, then the USER role is assumed by default.)
  • The various pages of the Web application have different access control requirements. The pages are accessible:
    • Without any constraints by everybody;
    • By logged in users only (no matter their roles);
    • By anonymous users only (i.e., not logged in users);
    • By users in the USER and ADMIN roles only, respectively;
    • By no-one.

Build

The build of saml2sp requires Oracle JDK 8. (To be precise, saml2sp can probably be built with any Java >= 7, including OpenJDK. But WSO2's Identity Manager still requires Oracle's Java implementation.)

For building saml2sp, you only need to call ./mvnw clean install in the project's top level directory. This will produce an executable JAR file in the target directory.

Running

The Web application is deployed in an embedded Tomcat inside the JAR file. When you start it by calling

java -jar saml2sp-0.0.2-localInMemoryAuth-SNAPSHOT.jar

then the embedded Tomcat will serve the application at http://localhost:8080/ .

About

SAML 2.0 SSO Service Provider demo application fro the WebSec course

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published