mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
auth flow
This commit is contained in:
@@ -106,3 +106,11 @@ router.post('/new', projectSanitiser, postNew);
|
||||
|
||||
// create route between controller and '/ontime/sheet-client' endpoint
|
||||
router.post('/sheet-clientsecrect', uploadFile, sheetClientFile);
|
||||
|
||||
// create route between controller and '/ontime/sheet-authstatus' endpoint
|
||||
router.get('/sheet-authstatus', sheetAuthState);
|
||||
|
||||
// create route between controller and '/ontime/sheet-authstatus' endpoint
|
||||
router.get('/sheet-authurl', sheetAuthUrl);
|
||||
|
||||
|
||||
|
||||
@@ -143,6 +143,7 @@ class sheet {
|
||||
*/
|
||||
public async openAuthServer(): Promise<string | false> {
|
||||
//TODO: this only works on local networks
|
||||
//FIXME: the authUrl is not returnd before the second call
|
||||
if (sheet.authUrl) {
|
||||
return sheet.authUrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user