-
Notifications
You must be signed in to change notification settings - Fork 264
Conversation
| router.get( | ||
| '/dashboard', | ||
| isAuthenticated, | ||
| authProvider.getToken(protectedResources.msGraphAcrs.scopes), |
Check failure
Code scanning / CodeQL
Missing rate limiting
| authProvider.isAuthenticated(), | ||
| dashboardController.postDetailsPage | ||
| ); | ||
| router.post('/details', isAuthenticated, dashboardController.postDetailsPage); |
Check failure
Code scanning / CodeQL
Missing rate limiting
| authProvider.isAuthenticated(), | ||
| dashboardController.deleteDetailsPage | ||
| ); | ||
| router.delete('/details', isAuthenticated, dashboardController.deleteDetailsPage); |
Check failure
Code scanning / CodeQL
Missing rate limiting
| }; | ||
|
|
||
| const API_REQUIRED_PERMISSION = process.env.API_REQUIRED_PERMISSION || "access_as_user"; | ||
| const EXPRESS_SESSION_SECRET = process.env.EXPRESS_SESSION_SECRET || 'ENTER_YOUR_SECRET_HERE'; |
Check failure
Code scanning / CodeQL
Hard-coded credentials
derisen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @salman90 -couple comments to address
derisen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @salman90 -couple comments to address
Co-authored-by: Doğan Erişen <dogan.erisen@gmail.com>
| router.get('/signin', authProvider.signIn({ postLoginRedirect: '/admin' })); | ||
| router.get('/signout', authProvider.signOut({ postLogoutRedirect: '/admin' })); | ||
| // authentication routes | ||
| router.get('/signin', authProvider.login); |
Check failure
Code scanning / CodeQL
Missing rate limiting
Purpose
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information