mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -05:00
* refactor(schemas): add new sso_connector_id column to the users_sso_identities table add new sso_connector_id column to the users_sso_identities table * refactor(schemas): add new sso_connector_id row to the users_sso_identities table add new sso_connector_id row to the users_sso_identities table * fix(schemas): fix alteration script fix alteration script * fix(schemas): fix alteration script fix alteration script * feat(core): add single sign on authentication api (#4814) * feat(core): add single sign on authentication api add single sign on authentication api * feat(core): finish up the single sign on authentication api finish up the single sign on authentication api * chore(core): fix typo fix typo * test(core): add ut for getSsoAuthorizationUrl method add ut for getSsoAuthorizationUrl method * fix(core): fix the userSsoIdentities sql fix the userSsoIdentities sql * test(core): add unit tests add unit tests * fix(core): saml sso rebase fix saml sso rebase fix * fix(core): fix rebase issue fix rebase issue * feat(core): add sso email guard to interaction endpoint (#4838) * feat(core): add sso email guard to interaction endpoint add sso email guard to interaction endpoint * fix(core): fix unit tests fix unit tests * chore(core): split files split files
18 lines
522 B
TypeScript
18 lines
522 B
TypeScript
import { sql } from 'slonik';
|
|
|
|
import type { AlterationScript } from '../lib/types/alteration.js';
|
|
|
|
const alteration: AlterationScript = {
|
|
up: async (pool) => {
|
|
await pool.query(sql`
|
|
alter table user_sso_identities add column sso_connector_id varchar(128) not null references sso_connectors (id) on update cascade on delete cascade;
|
|
`);
|
|
},
|
|
down: async (pool) => {
|
|
await pool.query(sql`
|
|
alter table user_sso_identities drop column sso_connector_id;
|
|
`);
|
|
},
|
|
};
|
|
|
|
export default alteration;
|