-
Notifications
You must be signed in to change notification settings - Fork 0
Inject tenant_id from JWT #94
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestsecurityFeatures related to authentication and authorization or any sort of security measure.Features related to authentication and authorization or any sort of security measure.
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestsecurityFeatures related to authentication and authorization or any sort of security measure.Features related to authentication and authorization or any sort of security measure.
Type
Fields
Give feedbackNo fields configured for issues without a type.
All requests to the API are receiving a JWT using the Authorization header as follows:
If an incoming request does not include this token, the request should not be processed. The API should not validate this JWT since it is going to be validated in API management, API only cares if the header is present or not.
If the token is not present a 401 response should be returned.
If the token is present, we need to decode it and get the tenant_id from it that is located in the
issfield:We need to extract the value before
/v2.0/, in this case:This value needs to be used as
tenant_idto perform all the operations in the API.