View Javadoc
1   /*
2    * Copyright (c) 2024 Kaiserpfalz EDV-Service, Roland T. Lichti
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Lesser General Public
6    * License as published by the Free Software Foundation; either
7    * version 3 of the License, or (at your option) any later version.
8    * 
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   * Lesser General Public License for more details.
13   * 
14   * You should have received a copy of the GNU Lesser General Public License
15   * along with this program; if not, write to the Free Software Foundation,
16   * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17   */
18  package de.kaiserpfalzedv.commons.spring.security;
19  
20  
21  
22  import java.lang.annotation.Documented;
23  import java.lang.annotation.ElementType;
24  import java.lang.annotation.Retention;
25  import java.lang.annotation.RetentionPolicy;
26  import java.lang.annotation.Target;
27  
28  import org.springframework.context.annotation.Import;
29  import org.springframework.security.config.annotation.authentication.configuration.EnableGlobalAuthentication;
30  
31  
32  /**
33   * 
34   * @author klenkes74 {@literal <rlichti@kaiserpfalz-edv.de>}
35   * @version 1.0.0
36   * @since 2024-06-20
37   */
38  @Retention(RetentionPolicy.RUNTIME)
39  @Target(ElementType.TYPE)
40  @Documented
41  @Import({ KeycloakGroupMapperProperties.class, KeycloakGroupAuthorityMapper.class, KeycloakLogoutHandler.class })
42  @EnableGlobalAuthentication
43  public @interface EnableKeycloakSecurityIntegration {}