Class JpaOAuth2AuthorizationConsentService
java.lang.Object
cn.herodotus.engine.oauth2.data.jpa.storage.JpaOAuth2AuthorizationConsentService
- All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
public class JpaOAuth2AuthorizationConsentService
extends Object
implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
Description: 基于 JPA 的 OAuth2 认证服务
- Author:
- : gengwei.zheng
- Date:
- : 2022/2/25 22:15
-
Constructor Summary
ConstructorsConstructorDescriptionJpaOAuth2AuthorizationConsentService(HerodotusAuthorizationConsentService herodotusAuthorizationConsentService, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentvoidremove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent) voidsave(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
-
Constructor Details
-
JpaOAuth2AuthorizationConsentService
public JpaOAuth2AuthorizationConsentService(HerodotusAuthorizationConsentService herodotusAuthorizationConsentService, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
-
-
Method Details
-
save
public void save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent) - Specified by:
savein interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
-
remove
public void remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent) - Specified by:
removein interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
-
findById
public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent findById(String registeredClientId, String principalName) - Specified by:
findByIdin interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
-