0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/schemas/tables/sso_connectors.sql
simeng-li cdf5a22315
refactor(core,schemas,console): optimize the sso connector endpoints naming (#5047)
* refactor(core,schemas): rename the sso-connector-factory terms to connector-provider

shouls align the terms of api. Replace the factory using provider.

* refactor(core,console): rename the sso-connector-providers response property name

 rename the sso-connector-providers response property name

* chore(core): update api doc content

update api doc content

* feat(core): declare the SAMLResponse field in ACS api body

declare the SAMLResponse field in ACS api body

* refactor(console,core): categorize standard SSO providers at client side only

categorize standard SSO providers at client side only

* fix(core): fix rebase issue

fix rebase issue

* chore(console): remove useless useMemo

remove useless useMemo

* chore(core): update the api content

update the api content
2023-12-04 15:07:33 +08:00

30 lines
1.2 KiB
SQL

/* init_order = 1 */
create table sso_connectors (
tenant_id varchar(21) not null
references tenants (id) on update cascade on delete cascade,
/** The globally unique identifier of the SSO connector. */
id varchar(128) not null,
/** The identifier of connector's SSO provider */
provider_name varchar(128) not null,
/** The name of the SSO provider for display. */
connector_name varchar(128) not null,
/** The connector configuration. Different schemas for different provide type */
config jsonb /* @use JsonObject */ not null default '{}'::jsonb,
/** The SSO email domains. */
domains jsonb /* @use SsoDomains */ not null default '[]'::jsonb,
/** The SSO branding. */
branding jsonb /* @use SsoBranding */ not null default '{}'::jsonb,
/** Determines whether to synchronize the user's profile on each login. */
sync_profile boolean not null default FALSE,
/** When the SSO connector was created. */
created_at timestamptz not null default(now()),
primary key (id),
constraint sso_connectors__connector_name__unique
unique (tenant_id, connector_name)
);
create index sso_connectors__id
on sso_connectors (tenant_id, id);
create index sso_connectors__id__provider_name
on sso_connectors (tenant_id, id, provider_name);