@Configuration @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration.class) @ConditionalOnClass(value={org.thymeleaf.templatemode.TemplateMode.class,org.thymeleaf.spring5.SpringTemplateEngine.class}) public class AuthServiceTemplateAutoConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AuthServiceTemplateAutoConfiguration.ViewResolverPostProcessor |
Constructor and Description |
---|
AuthServiceTemplateAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
BroadleafDialect |
broadleafDialect(ClientRedirectService redirectService,
VerifyRedirectCookieProperties properties) |
org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver |
broadleafOAuth2DefaultTemplateResolver(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties) |
OAuth2ClientTemplateResolver |
broadleafTemplateResolver(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties,
AuthorizedClientService<AuthorizedClient> clientService,
AuthorizationServerService<AuthorizationServer> serverService) |
OAuth2ClientIdTemplateEngine |
oAuth2ClientIdTemplateEngine(org.thymeleaf.spring5.SpringTemplateEngine templateEngine) |
OAuth2ClientTemplateResolver |
oAuth2DefaultTemplateResolver(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties,
AuthorizedClientService<AuthorizedClient> clientService,
AuthorizationServerService<AuthorizationServer> serverService) |
BroadleafVariableExpressionObjectFactory |
variableExpressionObjectFactory(ClientRedirectService redirectService,
VerifyRedirectCookieProperties properties) |
static org.springframework.beans.factory.config.BeanPostProcessor |
viewResolverPostProcessor(OAuth2ClientIdTemplateEngine templateEngine)
We need to tell the view resolvers to use our new engine
|
public AuthServiceTemplateAutoConfiguration()
@Bean @ConditionalOnMissingBean(value=BroadleafVariableExpressionObjectFactory.class) public BroadleafVariableExpressionObjectFactory variableExpressionObjectFactory(ClientRedirectService redirectService, VerifyRedirectCookieProperties properties)
@Bean @ConditionalOnMissingBean public BroadleafDialect broadleafDialect(ClientRedirectService redirectService, VerifyRedirectCookieProperties properties)
@Bean public OAuth2ClientIdTemplateEngine oAuth2ClientIdTemplateEngine(org.thymeleaf.spring5.SpringTemplateEngine templateEngine)
@Bean public static org.springframework.beans.factory.config.BeanPostProcessor viewResolverPostProcessor(OAuth2ClientIdTemplateEngine templateEngine)
@Bean public OAuth2ClientTemplateResolver oAuth2DefaultTemplateResolver(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
@Bean public OAuth2ClientTemplateResolver broadleafTemplateResolver(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
@Bean public org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver broadleafOAuth2DefaultTemplateResolver(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties)
Copyright © 2021. All rights reserved.