Code Monkey home page Code Monkey logo

java-saml-example's Introduction

Java SAML Example

예제 SAML SSO 케이스 - SP-Initiated SSO : Redirect/POST Bindings

SAML 여러 사용 케이스 중 SP-Initiated SSO : Redirect/POST Bindings 테스트 가능합니다.

실행 환경

  • Java 1.8+

실행 하기

1. 소스 다운로드

git clone https://github.com/acafela/java-saml-example.git
cd java-saml-example

2. Identity Provider 실행

./gradlew :saml-example-idp:bootRun

3. Service Provider 실행

./gradlew :saml-example-sp:bootRun
  • Identity Provider 인증 페이지로 리다이렉트

5. Identity Provider 인증 페이지에서 ID/PWD 입력해 로그인

  • admin / admin123 or user / user123

6. 인증 성공

Service Provider 주요 클래스

  • SamlAssertionConsumeFilter : Assertion consume url 처리 필터, AbstractAuthenticationProcessingFilter 확장 클래스
  • SimpleSamlAssertionConsumer : SAML Response 검증 후 UserDetails 생성
  • SamlSsoEntryPoint : SAML Request redirect, AuthenticationEntryPoint 구현

Identity Provider 주요 클래스

  • SamlResponseFilter : SAML Response 전달을 위한 필터

Reference

java-saml-example's People

Contributors

acafela avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.