Why JWT Token need to be there on top of the credentials

Not applicable

I have gone thru the video "JWT Token Explanation" from 4M4D.

APIGEE gateway passing the credentials to Resource Server to get a token, and that JWT token will be sent back to the client by APIGEE. SO why Token is required when already APIGEE is having the credentials of that particular client application and why cant validation happen then and there with those credentials?

0 1 101
1 REPLY 1

What you might have missed from the video is that there are actually two API calls made. The first call is to get the token. Also, just to clarify, Apigee Edge is not passing credentials to “get the token”. Apigee Edge itself is generating the JWT but only after verifying the “user” credentials by calling to a resource server. The grant type example in the video is resource owner — aka password grant type

Once Edge has generated the JWT (token) and the client application has received it, the application would likely need some data. For that to happen the client application needs to call a business API. That business API is protected by Edge and Edge requires a JWT (token) to be passed.

Does all the above make sense?