openid-connect-server-spring-boot-test

OpenID Connect Spring Boot Application Tests

License

License

Categories

Categories

Spring Boot Container Microservices Net
GroupId

GroupId

net.simpledynamics
ArtifactId

ArtifactId

openid-connect-server-spring-boot-test
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

openid-connect-server-spring-boot-test
OpenID Connect Spring Boot Application Tests
Project URL

Project URL

https://github.com/simpledynamics/openid-connect-server-spring-boot
Project Organization

Project Organization

Simple Dynamics
Source Code Management

Source Code Management

https://github.com/simpledynamics/openid-connect-server-spring-boot

Download openid-connect-server-spring-boot-test

How to add to project

<!-- https://jarcasting.com/artifacts/net.simpledynamics/openid-connect-server-spring-boot-test/ -->
<dependency>
    <groupId>net.simpledynamics</groupId>
    <artifactId>openid-connect-server-spring-boot-test</artifactId>
    <version>0.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/net.simpledynamics/openid-connect-server-spring-boot-test/
implementation 'net.simpledynamics:openid-connect-server-spring-boot-test:0.1.3'
// https://jarcasting.com/artifacts/net.simpledynamics/openid-connect-server-spring-boot-test/
implementation ("net.simpledynamics:openid-connect-server-spring-boot-test:0.1.3")
'net.simpledynamics:openid-connect-server-spring-boot-test:jar:0.1.3'
<dependency org="net.simpledynamics" name="openid-connect-server-spring-boot-test" rev="0.1.3">
  <artifact name="openid-connect-server-spring-boot-test" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.simpledynamics', module='openid-connect-server-spring-boot-test', version='0.1.3')
)
libraryDependencies += "net.simpledynamics" % "openid-connect-server-spring-boot-test" % "0.1.3"
[net.simpledynamics/openid-connect-server-spring-boot-test "0.1.3"]

Dependencies

test (6)

Group / Artifact Type Version
com.h2database : h2 jar 1.4.192
net.simpledynamics : openid-connect-server-spring-boot-config jar 0.1.3
net.simpledynamics : openid-connect-server-spring-boot-ui-thymeleaf jar 0.1.3
org.springframework.boot : spring-boot-starter-test jar 1.3.3.RELEASE
org.springframework.security : spring-security-test jar 4.0.4.RELEASE
com.jayway.jsonpath : json-path jar 2.0.0

Project Modules

There are no modules declared in this project.

Spring Boot MITREid Connect


Maven Central Travis CI

A Spring Boot Configuration for the MITREid OpenID Connect Server.

This project separates the OpenID Connect Server configuration from the UI, and includes sample applications.

The default sample application attempts to be as close as possible to the maven overlay web application from MITREid, while other samples give examples of how to customize the OpenID Connect server to fit your needs.

Pull requests and feature improvements are welcome.

Currently supports Spring Boot 1.5.2, MitreId Connect 1.3.0, and Spring Security 4.3.7

Password Encoders

The possibility of using a different password encoders for users and clients has been added through configuration. From now on you can configure MIDTREID Connect with some of the four types of encoders that come out-of-the-box in Spring.

To configure a different encoder type (the default encoder NoOpPasswordEncoder), the following configuration must be added to the yml file:

openid: connect: crypto: password-encoder: clients: bcrypt: enabled: true strength: -1 users: bcrypt: enabled: true strength: -1

openid.connect.crypto.password-encoder.clients defines the password encoder for clients and in openid.crypto.password-encoder.users for users.

The configuration of the different types of encoders is shown below.

BCrypt Password Encoder

To configure a BCrypt password encoder you will need to add the bcrypt property with the following properties:

  • enabled: enables (true) or disables (false) the encoder
  • strength: the log rounds to use, between 4 and 31

openid: connect: crypto: password-encoder: clients: bcrypt: enabled: true strength: -1 users: bcrypt: enabled: true strength: -1

SCrypt Password Encoder

To configure a SCrypt password encoder you will need to add the scrypt property with the following properties:

  • enabled: enables (true) or disables (false) the encoder
  • cpu-cost: cpu cost of the algorithm (as defined in scrypt this is N). must be power of 2 greater than 1. Default is currently 16,348 or 2^14)
  • memory-cost: memory cost of the algorithm (as defined in scrypt this is r) Default is currently 8.
  • parallelization: the parallelization of the algorithm (as defined in scrypt this is p) Default is currently 1. Note that the implementation does not currently take advantage of parallelization.
  • key-length: key length for the algorithm (as defined in scrypt this is dkLen). The default is currently 32.
  • salt-length: salt length (as defined in scrypt this is the length of S). The default is currently 64.

openid: connect: crypto: password-encoder: clients: scrypt: enabled: true cpu-cost: 16384 memory-cost: 8 parallelization: 1 key-length: 32 salt-length: 64 users: scrypt: enabled: true cpu-cost: 16384 memory-cost: 8 parallelization: 1 key-length: 32 salt-length: 64

Standard Password Encoder

To configure a Standard password encoder you will need to add the standard property with the following properties:

  • enabled: enables (true) or disables (false) the encoder
  • secret: the secret key used in the encoding process (should not be shared). Default ""

openid: connect: crypto: password-encoder: clients: standard: enabled: true secret: a_secret_word users: standard: enabled: true secret: a_secret_word

Pbkdf2 Password Encoder

To configure a Pbkdf2 password encoder you will need to add the pbkdf2 property with the following properties:

  • enabled: enables (true) or disables (false) the encoder
  • secret: the secret key used in the encoding process (should not be shared)

openid: connect: crypto: password-encoder: clients: pbkdf2: enabled: true secret: a_secret_word users: pbkdf2: enabled: true secret: a_secret_word

net.simpledynamics

Simple Dynamics

Versions

Version
0.1.3
0.1.2
0.1.1
0.1.0