ixortalk-oauth2-spring-boot-starter/

IxorTalk OAuth2 Spring Boot Starter

License

License

Categories

Categories

Spring Boot Container Microservices H2 Data Databases OAuth2 Security
GroupId

GroupId

com.ixortalk
ArtifactId

ArtifactId

ixortalk-oauth2-spring-boot-starter
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

ixortalk-oauth2-spring-boot-starter/
IxorTalk OAuth2 Spring Boot Starter
Project URL

Project URL

https://github.com/ixortalk/ixortalk-oauth2-spring-boot-starter/tree/master
Project Organization

Project Organization

IxorTalk CVBA
Source Code Management

Source Code Management

https://github.com/ixortalk/ixortalk-oauth2-spring-boot-starter/tree/master

Download ixortalk-oauth2-spring-boot-starter

How to add to project

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

Dependencies

compile (18)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-actuator jar 2.2.2.RELEASE
org.springframework.boot : spring-boot-starter-security jar 2.2.2.RELEASE
org.springframework.boot : spring-boot-starter-oauth2-client jar 2.2.2.RELEASE
org.springframework.boot : spring-boot-starter-cache jar 2.2.2.RELEASE
org.springframework.boot : spring-boot-starter-web jar 2.2.2.RELEASE
org.springframework.cloud : spring-cloud-starter-openfeign jar
org.springframework.security : spring-security-oauth2-resource-server jar
org.springframework.security : spring-security-oauth2-jose jar
org.springframework.security : spring-security-config jar
org.springframework.hateoas : spring-hateoas jar 1.0.2.RELEASE
com.auth0 : auth0 jar 1.14.3
javax.inject : javax.inject jar 1
com.google.guava : guava jar 29.0-jre
com.ixortalk : ixortalk-util jar 1.0.2
javax.servlet : javax.servlet-api jar 3.1.0
io.github.openfeign : feign-jackson jar
org.apache.commons : commons-lang3 jar 3.9
com.github.ben-manes.caffeine : caffeine jar 2.8.0

test (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.2.2.RELEASE
org.springframework.security : spring-security-test jar
org.assertj : assertj-core jar 3.5.1
com.ixortalk : ixortalk-test jar 2.0.0

Project Modules

There are no modules declared in this project.

ixortalk-oauth2-spring-boot-starter

Starter module containing configurable OAuth2 setup for IxorTalk modules. See com.ixortalk.autoconfigure.oauth2.OAuth2AutoConfiguration for more details.

When no further configuration is present in the module itself, all resources will be protected by default:

@Configuration
@ConditionalOnMissingBean(IxorTalkHttpSecurityConfigurer.class)
public static class DefaultIxorTalkHttpSecurityConfigurerConfiguration {

    @Bean
    public IxorTalkHttpSecurityConfigurer defaultIxorTalkHttpSecurityConfigurer() {
        return http -> http.authorizeRequests().anyRequest().authenticated();
    }
}

Plain OAuth2

When including this module without any configuration, a plain OAuth2 configuration will be included, securing all resources.

Auth0

Auth0 configuration will be enabled automatically when an Auth0 domain is configured via property ixortalk.auth0.domain.

Further customizations

Further customizations to the web security can be made iregardless of the used OAuth2 provider.

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;

@Configuration
public class SecurityConfig implements IxorTalkHttpSecurityConfigurer {

    @Override
    public void configure(HttpSecurity http) throws Exception {
        http
                .authorizeRequests()
                .antMatchers("/docs/**").permitAll()
                .anyRequest().authenticated();
    }
}
com.ixortalk

IxorTalk

Connected Experiences

Versions

Version
1.1.1
1.1.0
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1