Closed BryanttV closed 5 months ago
I will test this soon, but in the meantime, can you add the Postman collection to the repository? Create a docs directory, something like https://github.com/eduNEXT/eox-core/tree/master/docs/resources, to add the collection you already created. It doesn't enter explicitly in the scope but will be helpful for future testing, and you already have the collection. Is it possible?
Hi @MaferMazu. Yes, I can do something similar to how it is in eox-core
.
@MaferMazu: do we deploy the latest release somewhere for remote testing?
@MaferMazu, I already added the postman collection in docs/resources
, and I also left a single signed commit.
@mariajgrimaldi No, we only test this in our environments for now. Then, we want to implement something to make testing easy in remote environments.
Description
This PR allows you to make a request with a JWT token.
Testing instructions
Using Tutor:
http://local.edly.io:8000/admin/oauth2_provider/application/
. Associate a user with sufficient permissions and add to the Redirect uris field: http://local.edly.io:8000/Generate a JWT Token for the user using the next endpoint. POST
http://local.edly.io:8000/oauth2/access_token/
. The content type of the request must beapplication/x-www-form-urlencoded
Body parameters
client_id
: Client ID of the application created above. e.g. CAfZv...IHD0Jclient_secret
: Client Secret of the application created above. e.g. Qu2pnJJ9b1C6DA...u7Ej8x31RFiaKg9grant_type
: client_credentialstoken_type
: JWTResponse
access_token
: The user's access token. You must use this token in the Authorization header of the requests to the API.eox-tenant
endpoints using the JWT token, all should work correctly. You can use this eox-tenant postman collection.Checklist for Merge