You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API authentication with audience restriction in JWT (JSON Web Token) involves ensuring that the token is only accepted by the intended audience or recipients. The audience claim (aud) in a JWT specifies the intended recipients for the token. Here are the steps to handle API authentication with audience restriction using JWT.
Steps to Reproduce
Steps needed to check the validity of the fix is as follows.
Create an api
Update an api with audience.
e.g:
{
"id": "8a734d25-c4af-406e-acb5-b76ef1d40a9d",
"name": "PizzaShackAPI",
"description": "This is a simple API for Pizza Shack online pizza delivery store.",
"context": "/pizzashack",
"version": "1.0.0",
"provider": "admin",
"lifeCycleStatus": "PUBLISHED",
.
.
.
"audience": ["aud1","aud2"],
"transport": [
"http",
"https"
],
.
.
.
}
Deploy the api (Unless deployed the audience will not be validated)
Invoke the api with jwt with audience
Solution
Create audience field in api product and validate with the audience of the jwt token
Affected Component
APIM
Version
No response
Implementation
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered:
Problem
Description
API authentication with audience restriction in JWT (JSON Web Token) involves ensuring that the token is only accepted by the intended audience or recipients. The audience claim (aud) in a JWT specifies the intended recipients for the token. Here are the steps to handle API authentication with audience restriction using JWT.
Steps to Reproduce
Steps needed to check the validity of the fix is as follows.
e.g:
Solution
Create audience field in api product and validate with the audience of the jwt token
Affected Component
APIM
Version
No response
Implementation
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: