Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

vmware-archive/SAMLWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAMLWrapper

A basic library for adding SAML authentication to a webapp.

To include SAMLWrapper in your project;

  1. Run 'mvn clean install' on the SAMLWrappper project to add to your local repository.
  2. In your target project add the mavenLocal() repository to build.gradle.
  3. Add 'io.pivotal.auth:samlwrapper:0.0.1-SNAPSHOT' to compile time dependencies.
  4. Create a CustomSAMLUserDetailsService class to handle getting user details (e.g. by copying from the test app).
  5. Add the SAML metadata from your authentication provider to the resources of your project, and add the location to 'identity-provider-uris' in the application.yml file.
  6. Create a keystore for your project and add this to application.yml e.g. using 'keytool -genkeypair -keyalg RSA -alias -keystore <my-keystore.jks> -storepass -validity 360 -keysize 2048'
  7. Fill in the URLs in application.yml - see below.

Example application.yml:

saml:
  ssoUrl: /saml/sso
  hokSsoUrl: /saml/HoKSSO
  logoutUrl: /saml/logout
  singleLogoutUrl: /saml/SingleLogout
  errorUrl: /error
  loginRedirectUrl: /
  logoutRedirectUrl: /

  identity-provider-uris:
    - /saml.xml

  allow-unauthenticated-access-urls:
    - robots.txt
    - favicon.ico

  keystore:
    key-store-uri: classpath:/my-keystore.jks
    key-store-password: my-password
    password-map:
      my-project: my-password
    default-key: my-project

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages