Giter VIP home page Giter VIP logo

webprofile-ref-project's Introduction

OpenSAML V2 example project

This is a simple example project used in the book A Guide to OpenSAML.

The project show how to implement SAML 2.0 Web browser SSO profile using OpenSAML V2 in Java.

โš ๏ธ OpenSAML V2 is now deprecated and have been replaced by newer version A new book based on OpenSAML V3 is available as well as a new corresponding example project

The example project

The purpose of this project is to be an example and tutorial on how OpenSAML works and does not necessarily fulfill all best practises and security requirements. It can be a good place to start as a beginner when experimenting, but should not be used for production purposes.

This projekt demonstrate the following in OpenSAML

  • Including and bootstrapping the OpenSAML library
  • Sending a AuthnRequest using HTTP Redirect binding
  • Sending a Authentication Response using the HTTP Artifact Binding
  • Encrypting and decrypting Assertion
  • Reading credentials, signing and verifying messages

More resources on OpenSAML

On my blog, blog.samlsecurity.com, I provide a lot of guides, tutorials and examples on the use of OpenSAML and SAML.

webprofile-ref-project's People

Contributors

rasmusson avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

webprofile-ref-project's Issues

null pointer being thrown in no.steras.opensamlbook.OpenSAMLUtils.buildSAMLObject(Class<T>)

Sample code:
String responseStr = "largeB64EndodedStrhere";
Base64 decoder = new Base64();
byte[] thebytes = decoder.decode(responseStr);
logger.info(new String(thebytes));
Artifact artifact = OpenSAMLUtils.buildSAMLObject(Artifact.class);

Exception in thread "main" java.lang.NullPointerException
at no.steras.opensamlbook.OpenSAMLUtils.buildSAMLObject(OpenSAMLUtils.java:48)
at no.steras.opensamlbook.sp.ConsumerServlet.main(ConsumerServlet.java:262)

btw: I bought your book! Very well put written and helpful!

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.