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
GroupId

GroupId

net.skobow
ArtifactId

ArtifactId

oauth2-restclient-spring-boot-starter
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-starter

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
net.skobow : oauth2-restclient-spring-boot-autoconfigure jar 0.3.0

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