Package club.zhcs.lina.oidc.service
Class OpenIDConnectService
java.lang.Object
club.zhcs.lina.oidc.service.OpenIDConnectService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationEventPublisherAware
public class OpenIDConnectService
extends Object
implements org.springframework.context.ApplicationEventPublisherAware
-
Constructor Summary
ConstructorsConstructorDescriptionOpenIDConnectService(String discoveryUrl, String clientId, String clientSecret, String redirectUrl) -
Method Summary
Modifier and TypeMethodDescription使用授权码进行登录(获取用户信息)loginUrl()登录地址登录地址登出地址voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) 获取token用户信息
-
Constructor Details
-
OpenIDConnectService
-
-
Method Details
-
getClient
-
token
获取token- Parameters:
code-- Returns:
-
createDecoder
-
user
用户信息- Parameters:
token-- Returns:
-
login
使用授权码进行登录(获取用户信息)- Parameters:
code-- Returns:
-
loginUrl
登录地址- Parameters:
state- statenonce- nonce- Returns:
-
loginUrl
登录地址- Returns:
-
logoutUrl
登出地址- Returns:
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware- Parameters:
applicationEventPublisher-- See Also:
-