-- auth_oidc_scope entries are the optional scopes for a specific oidc auth
-- method. There can be 0 or more for each parent oidc auth method. If an auth
-- method has any scopes, they will be added to provider requests along with the
-- default of "openid".
createtableauth_oidc_scope(
create_timewt_timestamp,
oidc_method_idwt_public_id
constraintauth_oidc_method_fkey
referencesauth_oidc_method(public_id)
ondeletecascade
onupdatecascade,
scopetextnotnull
constraintscope_must_not_be_empty
check(length(trim(scope))>0)
constraintscope_must_be_less_than_1024_chars
check(length(trim(scope))<1024)
constraintscope_must_not_be_openid-- the default scope is not allowed, since it's redundant
check(lower(trim(scope))!='openid'),
primarykey(oidc_method_id,scope)
);
commentontableauth_oidc_scopeis
'auth_oidc_scope entries are the optional scopes for a specific oidc auth method. There can be 0 or more for each parent oidc auth method. If an auth method has any scopes, they will be added to provider requests along with the openid default.';