Files
threshold/internal/auth/oidc/query.go
T

15 lines
242 B
Go
Raw Normal View History

2021-04-08 20:54:32 -04:00
package oidc
const (
acctUpsertQuery = `
2021-06-01 14:18:10 -05:00
insert into auth_oidc_account
2021-04-08 20:54:32 -04:00
(%s)
2021-06-01 14:18:10 -05:00
values
2021-04-08 20:54:32 -04:00
(%s)
2021-06-01 14:18:10 -05:00
on conflict on constraint
2021-04-08 20:54:32 -04:00
auth_oidc_account_auth_method_id_issuer_subject_uq
2021-06-01 14:18:10 -05:00
do update set
2021-04-08 20:54:32 -04:00
%s
2021-06-01 14:18:10 -05:00
returning public_id, version
`
2021-04-08 20:54:32 -04:00
)