类 OpenIDConnectService

java.lang.Object
club.zhcs.lina.oidc.service.OpenIDConnectService
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware

public class OpenIDConnectService extends Object implements org.springframework.context.ApplicationEventPublisherAware
  • 构造器详细资料

    • OpenIDConnectService

      public OpenIDConnectService(String discoveryUrl, String clientId, String clientSecret, String redirectUrl)
  • 方法详细资料

    • getClient

      public OpenIDConnectClient getClient()
    • token

      public Token token(String code)
      获取token
      参数:
      code -
      返回:
    • createDecoder

      public JWTDecoder createDecoder()
    • user

      public AuthUser user(String token)
      用户信息
      参数:
      token -
      返回:
    • login

      public AuthUser login(String code)
      使用授权码进行登录(获取用户信息)
      参数:
      code -
      返回:
    • loginUrl

      public String loginUrl(String state, String nonce)
      登录地址
      参数:
      state - state
      nonce - nonce
      返回:
    • loginUrl

      public String loginUrl()
      登录地址
      返回:
    • logoutUrl

      public String logoutUrl()
      登出地址
      返回:
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
      指定者:
      setApplicationEventPublisher 在接口中 org.springframework.context.ApplicationEventPublisherAware
      参数:
      applicationEventPublisher -
      另请参阅:
      • ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)