问题
We're trying to work out how to consume an MSAL access token from a front-end vue.js application on our hapi.js back-end.
Following the documentation for Single Page Applications we are successfully adding the MSAL accessToken to our http requests as a Bearer token. This token can be seen on the back-end if we disable JWT on the API server.
How do we validate the MSAL access token so that we can return a valid JWT token? (secondary question is what is the recommended auth strategy for the login route?)
来源:https://stackoverflow.com/questions/57996592/converting-msal-access-token-to-hapi-jwt-token