All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.herodotus.stirrup.oauth2.client.properties.OAuth2ClientRegistrationProperties Maven / Gradle / Ivy

Go to download

Herodotus 软件生态组件库 Spring Security OAuth2 Client 核心功能封装模块

There is a newer version: 3.3.0.1
Show newest version
/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2020-2030 郑庚伟 ZHENGGENGWEI (码匠君),  Licensed under the AGPL License
 *
 * This file is part of Herodotus Cloud.
 *
 * Herodotus Cloud is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Herodotus Cloud is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see .
 */

package cn.herodotus.stirrup.oauth2.client.properties;

import cn.herodotus.stirrup.core.definition.constants.DefaultConstants;
import cn.herodotus.stirrup.oauth2.core.constants.OAuth2Constants;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 

Description: 客户端配置

* * @author : gengwei.zheng * @date : 2024/5/20 20:40 */ @ConfigurationProperties(prefix = OAuth2Constants.PROPERTY_CLIENT_REGISTRATION) public class OAuth2ClientRegistrationProperties { /** * 认证服务器地址 */ private String url; /** * 客户端注册 Root Client Id */ private String clientId; /** * 客户端注册 Root Client Secret */ private String clientSecret; /** * 客户端注册端点 */ private String oidcClientRegistrationEndpoint = DefaultConstants.OIDC_CLIENT_REGISTRATION_ENDPOINT; /** * 客户端注册认证 RegistrationId。 */ private String oidcClientRegistrationId = "oidc-client-registration"; public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getClientId() { return clientId; } public void setClientId(String clientId) { this.clientId = clientId; } public String getClientSecret() { return clientSecret; } public void setClientSecret(String clientSecret) { this.clientSecret = clientSecret; } public String getOidcClientRegistrationEndpoint() { return oidcClientRegistrationEndpoint; } public void setOidcClientRegistrationEndpoint(String oidcClientRegistrationEndpoint) { this.oidcClientRegistrationEndpoint = oidcClientRegistrationEndpoint; } public String getOidcClientRegistrationId() { return oidcClientRegistrationId; } public void setOidcClientRegistrationId(String oidcClientRegistrationId) { this.oidcClientRegistrationId = oidcClientRegistrationId; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy