eiam/eiam-common/src/main/resources/db/changelog/app_oidc_config-changelog.xml

80 lines
4.3 KiB
XML

<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<!--
eiam-common - Employee Identity and Access Management Program
Copyright © 2020-2023 TopIAM (support@topiam.cn)
This program 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.
This program 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 <http://www.gnu.org/licenses/>.
-->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd
http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/pro/liquibase-pro-4.3.xsd">
<!--init-->
<changeSet author="TopIAM" id="1657029263955-0">
<createTable remarks="OIDC 应用配置" tableName="app_oidc_config">
<column name="id_" type="BIGINT" remarks="主键ID">
<constraints nullable="false" primaryKey="true"/>
</column>
<column name="app_id" remarks="应用ID" type="BIGINT">
<constraints nullable="false" unique="true" uniqueConstraintName="oidc_appid_uindex"/>
</column>
<column name="client_auth_methods" remarks="客户端认证方法" type="JSON">
<constraints nullable="false"/>
</column>
<column name="auth_grant_types" remarks="认证授权类型" type="JSON">
<constraints nullable="false"/>
</column>
<column name="redirect_uris" remarks="重定向URIs" type="TEXT">
<constraints nullable="false"/>
</column>
<column name="grant_scopes" remarks="授权范围" type="JSON">
<constraints nullable="false"/>
</column>
<column name="require_auth_consent" remarks="是否需要授权同意" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="require_proof_key" remarks="需要PKCE" type="TINYINT">
<constraints nullable="false"/>
</column>
<column name="token_endpoint_auth_signing_algorithm" remarks="令牌 Endpoint 身份验证签名算法"
type="VARCHAR(100)"/>
<column name="refresh_token_time_to_live" remarks="刷新 Token生存时间" type="INT">
<constraints nullable="false"/>
</column>
<column name="id_token_time_to_live" remarks="ID Token生存时间" type="INT">
<constraints nullable="false"/>
</column>
<column name="access_token_time_to_live" remarks="访问 Token生存时间" type="INT"/>
<column name="id_token_signature_algorithm" remarks="Id Token 签名算法" type="VARCHAR(100)"/>
<column name="access_token_format" remarks="Access Token 格式" type="VARCHAR(100)"/>
<column name="reuse_refresh_token" remarks="是否重用刷新令牌" type="TINYINT"/>
<column name="create_by" remarks="创建者" type="VARCHAR(64)">
<constraints nullable="false"/>
</column>
<column defaultValueComputed="CURRENT_TIMESTAMP" name="create_time" remarks="创建时间" type="datetime">
<constraints nullable="false"/>
</column>
<column name="update_by" remarks="修改者" type="VARCHAR(64)">
<constraints nullable="false"/>
</column>
<column defaultValueComputed="CURRENT_TIMESTAMP" name="update_time" remarks="修改时间" type="datetime">
<constraints nullable="false"/>
</column>
<column name="remark_" remarks="备注" type="TEXT"/>
</createTable>
</changeSet>
</databaseChangeLog>