spring-oauth2-serializable

Provide serializable OAuth 2

License

License

Categories

Categories

H2 Data Databases OAuth2 Security
GroupId

GroupId

jp.co.ap-com
ArtifactId

ArtifactId

spring-oauth2-serializable
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

spring-oauth2-serializable
Provide serializable OAuth 2
Project URL

Project URL

https://github.com/ap-com/spring-oauth2-serializable
Source Code Management

Source Code Management

https://github.com/ap-com/spring-oauth2-serializable

Download spring-oauth2-serializable

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
org.springframework.security : spring-security-core jar 4.2.0.RELEASE
org.springframework.security : spring-security-web jar 4.2.0.RELEASE
org.springframework.boot : spring-boot-autoconfigure jar 1.4.0.RELEASE
org.springframework.security.oauth : spring-security-oauth2 jar [2.0.10,)
com.google.oauth-client : google-oauth-client jar 1.23.0
com.google.http-client : google-http-client-jackson2 jar 1.23.0

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.0.1

Project Modules

There are no modules declared in this project.

spring-oauth2-serializable

Install

Maven usage:

    <dependency>
      <groupId>org.springframework.security.oauth</groupId>
      <artifactId>spring-security-oauth2</artifactId>
      <!-- available since 2.0.0.RELEASE  -->
      <!--
      <version>2.0.0.RELEASE</version>
      -->
    </dependency>
    <dependency>
      <groupId>jp.co.ap-com</groupId>
      <artifactId>spring-oauth2-serializable</artifactId>
      <version>0.0.2</version>
    </dependency>

Settings

Add @EnableOAuth2Serializable.

Example:

@EnableOAuth2Serializable
@Configuration
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
  // ...
}

And make application.yml as follows.

Example(Github OAuth):

security:
  oauth2:
    sso:
      login-path: /login
    client:
      clientId: [YOUR_CLIENT_ID]
      clientSecret: [YOUR_CLIENT_SECRET]
      accessTokenUri: https://github.com/login/oauth/access_token
      userAuthorizationUri: https://github.com/login/oauth/authorize
    resource:
      userInfoUri: https://api.github.com/user

If you are already using spring-security-oauth2, please change like this.

Sample

Demo aplication source

jp.co.ap-com

AP Communications Co., Ltd.

Versions

Version
0.0.2
0.0.1