In this part we will configure and execute the application
Steps:
(Assuming you are in a terminal window at ./ex-04
)
-
Source the configuration file
source $HOME/envs/appsec-course-client-eq.env
-
Run the application
npm start
- If problems; remember that the forwarded port needs to be PUBLIC and that the redirect uri is dynamic.
-
Use the application and test the "get Inbox" feature
-
Stop the application and set the NODE_ENV to "development"
export NODE_ENV=development
-
Run the application again and observer the logging
- Do the steps above
- Extract the access token and inspect at jwt.ms
- Good practice: Frameworks may seem like a black box. It is smart to know the frameworks well
- It is good practice to know the specifications (RFC's) well
- It is good practice to be able to observe from the outside (proxies) how flows are working - and thus know when standards are deviated from. (MSAL implement OAuth2 and OIDC - knowing how OAuth2 and OIDC helps your observe that the framework is operating as expected)