mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add new Grist login page
Summary: Adds a new Grist login page to the login app, and replaces the server-side Cognito Google Sign-In flow with Google's own OAuth flow. Test Plan: Browser and server tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3332
This commit is contained in:
@@ -51,10 +51,10 @@ export interface GristLoginMiddleware {
|
||||
getLoginRedirectUrl(req: express.Request, target: URL): Promise<string>;
|
||||
getSignUpRedirectUrl(req: express.Request, target: URL): Promise<string>;
|
||||
getLogoutRedirectUrl(req: express.Request, nextUrl: URL): Promise<string>;
|
||||
|
||||
// Optional middleware for the GET /login, /signup, and /signin routes.
|
||||
getLoginOrSignUpMiddleware?(): express.RequestHandler[];
|
||||
|
||||
// Optional middleware for the GET /logout route.
|
||||
getLogoutMiddleware?(): express.RequestHandler[];
|
||||
// Returns arbitrary string for log.
|
||||
addEndpoints(app: express.Express): Promise<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user