Spring Boot Drupal authentication

Supports authentication with Spring Security against Drupal

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

de.dehn
Идентификатор

Идентификатор

spring-boot-drupal-authentication
Последняя версия

Последняя версия

1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Spring Boot Drupal authentication
Supports authentication with Spring Security against Drupal
Ссылка на сайт

Ссылка на сайт

https://github.com/dehn-und-soehne/spring-boot-drupal-authentication
Система контроля версий

Система контроля версий

https://github.com/dehn-und-soehne/spring-boot-drupal-authentication.git

Скачать spring-boot-drupal-authentication

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/de.dehn/spring-boot-drupal-authentication/ -->
<dependency>
    <groupId>de.dehn</groupId>
    <artifactId>spring-boot-drupal-authentication</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/de.dehn/spring-boot-drupal-authentication/
implementation 'de.dehn:spring-boot-drupal-authentication:1.0'
// https://jarcasting.com/artifacts/de.dehn/spring-boot-drupal-authentication/
implementation ("de.dehn:spring-boot-drupal-authentication:1.0")
'de.dehn:spring-boot-drupal-authentication:jar:1.0'
<dependency org="de.dehn" name="spring-boot-drupal-authentication" rev="1.0">
  <artifact name="spring-boot-drupal-authentication" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.dehn', module='spring-boot-drupal-authentication', version='1.0')
)
libraryDependencies += "de.dehn" % "spring-boot-drupal-authentication" % "1.0"
[de.dehn/spring-boot-drupal-authentication "1.0"]

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.10
org.springframework : spring-jdbc jar 4.2.4.RELEASE
org.springframework : spring-core jar 4.2.4.RELEASE
org.springframework.security : spring-security-web jar 4.0.3.RELEASE
org.springframework.boot : spring-boot jar 1.3.2.RELEASE
org.springframework.security : spring-security-config jar 4.0.3.RELEASE
javax.servlet : javax.servlet-api jar 3.1.0
org.codehaus.groovy : groovy-all jar 2.4.6

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

Spring Boot Drupal authentication

Usage

compile 'de.dehn:spring-boot-drupal-authentication:1.0'

Extend the class DrupalAwareWebSecurityConfiguration:

@Configuration
@EnableWebSecurity
class WebSecurityConfig extends DrupalAwareWebSecurityConfiguration {
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
            .authorizeRequests()
                .antMatchers("/", "/home").permitAll()
                .anyRequest().authenticated()
                .and()
    }
}

The file application.properties could look like that:

drupal.major-version=8
drupal.cookie-name-pattern=SESS.*
drupal.datasource.driver-class-name=com.mysql.jdbc.Driver
drupal.datasource.url=jdbc:mysql://localhost/drupal8?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
drupal.datasource.username=root

Версии библиотеки

Версия
1.0