spring-oauth2-serializable

Provide serializable OAuth 2

Лицензия

Лицензия

Категории

Категории

H2 Данные Базы данных OAuth2 Безопасность
Группа

Группа

jp.co.ap-com
Идентификатор

Идентификатор

spring-oauth2-serializable
Последняя версия

Последняя версия

0.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

spring-oauth2-serializable
Provide serializable OAuth 2
Ссылка на сайт

Ссылка на сайт

https://github.com/ap-com/spring-oauth2-serializable
Система контроля версий

Система контроля версий

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

Скачать spring-oauth2-serializable

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
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)

Идентификатор библиотеки Тип Версия
javax.servlet : javax.servlet-api jar 3.0.1

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
0.0.2
0.0.1