mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add authSubject and authProvider to sessions
Summary: This also updates Authorizer to link the authSubject to Grist users if not previously linked. Linked subjects are now used as the username for password-based logins, instead of emails, which remain as a fallback. Test Plan: Existing tests, and tested login flows manually. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3356
This commit is contained in:
@@ -135,6 +135,8 @@ export interface Document extends DocumentProperties {
|
||||
export interface UserOptions {
|
||||
// Whether signing in with Google is allowed. Defaults to true if unset.
|
||||
allowGoogleLogin?: boolean;
|
||||
// The "sub" (subject) from the JWT issued by the password-based authentication provider.
|
||||
authSubject?: string;
|
||||
// Whether user is a consultant. Consultant users can be added to sites
|
||||
// without being counted for billing. Defaults to false if unset.
|
||||
isConsultant?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user