Code Monkey home page Code Monkey logo

opensaml-ref-project-demo-v3's Introduction

OpenSAML-ref-project-demo-v3 这一个使用OpenSAML库的示例项目: 一个很简单的网址,其充当SP;同时该项目还包括一个很简单的IDP; SAML协议的交互将在这二者之间展开。

项目地址: https://github.com/sunrongxin7666/OpenSAML-ref-project-demo-v3.git

这个项目基于Bitbucket的一个实验项目https://bitbucket.org/srasmusson/webprofile-ref-project-v3 其本身是使用Apache Maveng构建的,启动项目需要执行

mvn tomcat:run

嵌入项目中的Tomcat就会启动,运行成功时会有如下信息:

INFO: Starting Coyote HTTP/1.1 on http-8080

经过本人的修改,该项目可以在IntelliJ Idea以工程模式打开,运行方式设置为mvn,命令是tomcat:run。这就便于读者调试和修改。

项目启动之后,访问如下网址: http://localhost:8080/webprofile-ref-project/app/appservlet 这是一个SP的模拟,第一次访问该网址时将会跳转到IDP,进行认证流程。 IDP

点击“Authenticate”按钮将通过认证,并重定向回SP, SP

到此为止整个SAML协议的流程及完成了,相关日志信息会在控制台中输出。

此外本人还编写了一系列教程文章来介绍如何使用OpenSAML,欢迎阅读指正:

  1. SAML2.0入门指南,
  2. OpenSAML 使用引导 I : 简介
  3. OpenSAML 使用引导 II : Service Provider 的实现之AuthnRequest
  4. OpenSAML 使用引导 III: Service Provider 的实现之Artifact与断言
  5. OpenSAMl 使用引导IV: 安全特性

TODO

  1. OpenSAML在SpringMCV框架中的使用;
  2. OpenSAML在Spring Security框架**的使用;
  3. 增加HTTP Redirect模式下的示例;

opensaml-ref-project-demo-v3's People

Contributors

rasmusson avatar sunrongxin7666 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.