Open mjstealey opened 2 years ago
@mjstealey Hi Michael, I'm trying to refresh the token and using the API mentioned on API Endpoint page ("http://aerpaw-dev.renci.org:8000/api/users/$userID/token/refresh") We are seeing the following response from this API. Can you please check the response?
Can you please check the response?
Add a trailing slash to the API_URL, e.g. http://aerpaw-dev.renci.org:8000/api/token/refresh/
Hi, I used a trailing slash too. But it gives me the same error. Following is my command: curl -X "POST" -H "Authorization: Bearer ${token}" -H "Content-Type: application/json" -d "${updatedtoken}" "http://aerpaw-dev.renci.org:8000/api/users/$userID/token/refresh/"
I used a trailing slash too. But it gives me the same error.
Sorry, use http://aerpaw-dev.renci.org:8000/api/token/refresh/
, without the /users/{int:pk}
part
/users
endpoint, but for now it's under the /token
endpoint and figures out who you are by the Bearer token in the headerIt worked! Thanks
It worked! Thanks
Glad to hear it
NOTE: The newly issued ACCESS_TOKEN
is only seen by the receiver and is not currently stored to the User's profile - this will be taken care of when I migrate the refresh call to be under the /users
endpoint (again, sorry about the confusion here)
No problem and thanks for mentioning it.
/users
Endpoints
/users
paginated - optional parameters:search=string
/users/{int:pk}
- optional request bodydata = {"display_name": "string"}
/users/{int:pk}/credentials
/users/{int:pk}/tokens
- optional parameters:refresh=true
,generate=true
Functions
display_name
,email
- as active useruser_id
- as selfdisplay_name
- as selfuser_id
- as selfuser_id
- as selfis_active
to False from the admin panel)Fields
Notes
Roles: