OAuth2RestClient

Lean and easy to use OAuth2 enabled and Spring Boot powered REST client to interact with secured APIs

License

License

MIT
Categories

Categories

Spring Boot Container Microservices H2 Data Databases Net OAuth2 Security CLI User Interface Auto Application Layer Libs Code Generators config Configuration
GroupId

GroupId

net.skobow
ArtifactId

ArtifactId

oauth2-restclient-spring-boot-autoconfigure
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

OAuth2RestClient
Lean and easy to use OAuth2 enabled and Spring Boot powered REST client to interact with secured APIs
Project URL

Project URL

https://github.com/skobow/oauth2-restclient-spring-boot-starter
Project Organization

Project Organization

skobow
Source Code Management

Source Code Management

https://github.com/skobow/oauth2-restclient-spring-boot-starter

Download oauth2-restclient-spring-boot-autoconfigure

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
net.skobow : oauth2-restclient jar 0.3.0
org.apache.httpcomponents : httpclient jar 4.5.6

runtime (3)

Group / Artifact Type Version
org.springframework.boot : spring-boot jar 2.1.1.RELEASE
org.springframework.boot : spring-boot-autoconfigure jar 2.1.1.RELEASE
org.springframework : spring-web jar 5.1.3.RELEASE

Project Modules

There are no modules declared in this project.

OAuth2RestClient Spring Boot Starter

This project offers a lean and easy to use OAuth2 enabled and Spring Boot powered REST client to interact with secured APIs. Simply add it as a dependency to your Spring project and get OAuth2RestClient autowired.

Releases

Build Status Maven Central

Gradle

implementation 'net.skobow:oauth2-restclient-spring-boot-starter:0.3.0'

Maven

<dependency>
  <groupId>net.skobow</groupId>
  <artifactId>oauth2-restclient-spring-boot-starter</artifactId>
  <version>0.3.0</version>
  <type>pom</type>
</dependency>

Usage

To use the client simply let Spring autowire an instance to your service

import net.skobow.rest.OAuth2RestClient

public class MyService {
    
    private final OAuth2RestClient restClient;
    
    public MyService(final OAuth2RestClient restClient) {
        this.restClient = restClient;
        
        ...
    }
}

OAuth2 grant types

Currently only the Client Credentials Grant is supported.

Versions

Version
0.3.0
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0