Redirect_uri is a url where the oauth will redirect to on success or fail. If success, the auth_token will be appended to the url parameter
Convert the auth_token to a Duke Access_token
POST /api/user/auth/duke HTTP/1.1
Host: localhost:8000 <--note it is our own server
Content-Type: application/json
Convert the Duke OAuth token to a ASAP_Inventory Oauth Token to use ASAP API's
POST /auth/convert-token HTTP/1.1
Host: localhost:8000
Content-Type: application/x-www-form-urlencoded
Request:
Flow for users to log in through NetID:-
Frontend should redirect to this link
Redirect_uri is a url where the oauth will redirect to on success or fail. If success, the auth_token will be appended to the url parameter
Convert the auth_token to a Duke Access_token POST /api/user/auth/duke HTTP/1.1 Host: localhost:8000 <--note it is our own server Content-Type: application/json
Request:
Response:
Response:
Now you can use the asap_access_token and append it to the api calls like the old way Authorization: "Bearer"