42BV / spring-boot-starter-crowd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot Starter CROWD

Library for integrating CROWD authentication with Spring Boot / Security.

Usage

Include the dependency in your pom.xml:

<dependency>
    <groupId>nl.42</groupId>
    <artifactId>spring-boot-starter-crowd</artifactId>
    <version>${starter-crowd.version}</version>
</dependency>

And provide the required configuration:

crowd:
  # enabled: true
  server: https://your-crowd
  application: app-dev
  password: password

During startup this will register a remote CROWD AuthenticationProvider. The provider still has to be included in the AuthenticationManager.

Configuration

Properties

Properties that would previously have gone in crowd.properties can now be defined in the regular application YAML:

crowd:
  properties:
    timeout: 200

Groups

CROWD group names can be mapped to authentications using crowd.roles:

crowd:
  roles:
    crowd-app-dev-admin: admin
    crowd-app-dev-user: user

About


Languages

Language:Java 100.0%