swedenconnect / opensaml-eidas

OpenSAML extensions for the eIDAS Framework

Home Page:https://www.swedenconnect.se

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

opensaml-eidas

License Maven Central

OpenSAML extensions for the eIDAS Framework.


Note: Support for OpenSAML versions prior to version 5 is implemented by the https://github.com/litsec/eidas-opensaml repository.


eIDAS (EU REGULATION 910/2014 on electronic identification and trust services for electronic transactions in the European internal market) defines requirements on cross-border recognition of electronic identification means in EU.

The eIDAS technical specifications defines a number of SAML elements and attribute definitions which are normally not supported by standard SAML software. The eidas-opensaml Open Source Java library extends the OpenSAML framework with support for the definitions from the eIDAS technical specifications.

The following eIDAS specifications are implemented:

How to use the use the eidas-opensaml library

The eidas-opensaml artifacts are published to Maven central and a dependency to the library should be included as follows in the application POM-file:

<dependency>
  <groupId>se.swedenconnect.opensaml</groupId>
  <artifactId>opensaml-eidas</artifactId>
  <version>${opensaml.eidas.version}</version>
</dependency>

Documentation

Examples

Creating an eIDAS AuthnRequest message

The eIDAS SAML Message Format v1.4 specification describes how a SAML AuthnRequest message should be put together to comply to the eIDAS specifications.

CreateAuthnRequestExample.java illustrates how you could create an authentication request message using the opensaml-eidas library.

Parsing an Assertion

An assertion issued from an eIDAS service will contain the attributes defined in eIDAS SAML Attribute Profile.

ParseAssertionExample.java shows how to parse an Assertion and get hold of all attribute values.

Resources

eIDAS Specifications
Swedish eID Framework

Copyright © 2016-2024, Sweden Connect. Licensed under version 2.0 of the Apache License.

About

OpenSAML extensions for the eIDAS Framework

https://www.swedenconnect.se

License:Apache License 2.0


Languages

Language:Java 100.0%