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 org.springframework.boot.context.properties.ConfigurationProperties;
23  import org.springframework.context.annotation.Configuration;
24  import org.springframework.validation.annotation.Validated;
25  
26  import lombok.Data;
27  
28  
29  /**
30   * 
31   * @author klenkes74 {@literal <rlichti@kaiserpfalz-edv.de>}
32   * @version 1.0.0
33   * @since 2024-06-16
34   */
35  @Data
36  @Validated
37  @Configuration
38  @ConfigurationProperties(prefix = "kp.security.keycloak.group-authority-mapper")
39  public class KeycloakGroupMapperProperties {
40      private String roleAttribute;
41  }