Spring Cloud Config Client OAuth2

This project is a Spring Config Client with OAuth2 authentication.

License

License

Categories

Categories

H2 Data Databases OAuth2 Security CLI User Interface config Application Layer Libs Configuration
GroupId

GroupId

com.marcosbarbero.cloud
ArtifactId

ArtifactId

spring-cloud-config-client-oauth2
Last Version

Last Version

1.0.2.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Cloud Config Client OAuth2
This project is a Spring Config Client with OAuth2 authentication.
Project URL

Project URL

https://github.com/marcosbarbero/spring-cloud-config-client-oauth2
Source Code Management

Source Code Management

https://github.com/marcosbarbero/spring-cloud-config-client-oauth2

Download spring-cloud-config-client-oauth2

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.springframework.cloud : spring-cloud-config-client jar
org.springframework.security.oauth : spring-security-oauth2 jar
org.projectlombok : lombok jar 1.16.12

test (1)

Group / Artifact Type Version
junit : junit jar

Project Modules

There are no modules declared in this project.

Spring Cloud Config Client OAuth2

Spring Cloud Config Client that talks to Config Server with OAuth2 authentication.

Adding Project Lombok Agent

This project uses Project Lombok to generate getters and setters etc. Compiling from the command line this shouldn't cause any problems, but in an IDE you need to add an agent to the JVM. Full instructions can be found in the Lombok website. The sign that you need to do this is a lot of compiler errors to do with missing methods and fields.

Usage

This project is available on maven central

Import dependency to your project

<dependency>
    <groupId>com.marcosbarbero.cloud</groupId>
    <artifactId>spring-cloud-config-client-oauth2</artifactId>
    <version>1.0.2.RELEASE</version>
</dependency>

Configure the following properties on bootstrap.yml

spring.cloud.config.client:  
    oauth2:
      client-id: myClientId
      client-secret: myClientSecret
      access-token-uri: http://authserver.domain/oauth/token
      scope: #optional - default values 'read' and 'write'
       - read
       - write

Versions

Version
1.0.2.RELEASE
1.0.1.RELEASE
1.0.0.RELEASE