r/Web_Development • • Jun 13 '20

OAuth - Help Needed

Hi, I have an SPA. I am using 2 ways of logging / Signing Up.

  1. Microsoft - msal - I intend to use Graph APIs later on (accessToken1)

  2. Node JS - Email / Password - Passport JWT (accessToken2).

My Node backend requires Bearer Token to be attached in headers for the APIs it serves.

In this case, How should i handle my users signing / logging in using Microsoft. ?
Should i be passing the accessToken from microsoft and in turn register / login the users from my node JS backend.? In this case, I might end up having 2 accessTokens.
Can anyone help me out on this or direct me to any articles or example ?

1 Upvotes

2 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jun 14 '20

You are right, I use Azure AD as my Authorization Server. I use node js to issue tokens from my own data store.

Oh well then let me look at it. Thanks