I am trying to authenticate using Passport using this API specified in: https://wiki.nus.edu.sg/display/ivlelapi/Android . User session data must also be saved.
The document shows that the authentication process is a simpler version of Oauth:
- The application server redirects the user to authorize the login page.
- Login page returns successful token
- User data can be obtained using this token.
However, the passport OAuth strategy seems to require a consumer callback and requires a more complex process using two tokens.
Can OAuth be used in this case? I studied using passport-local by checking only the user parameter (if the user exists to add the user to the database), but it does not seem to accept other parameters.
Alternatively, should Passport JS be necessary in such an instance?
source share