JWT
JWT (JSON Web Token) is an anonymous token authorization mechanism used for authentication and information transmission.
After receiving a request, the target server endpoint parses the JWT header and payload, and verifies the validity of the signature.
If the signature is valid, the user's identity can be confirmed, and corresponding operations can be performed based on the information in the payload.
Apidog can generate token in JWT format and attach it to the request directly. There is no need to generate it in othere tools and then paste it back.
Basic Settings
To generate a JWT Key, you need to configure the following settings:
- Algorithm
- Secret
- Payload
After finish the configuration, click "Send" button, and the generated JWT Token will be automatically attached to the Authorization Header, and then added to the Bearer prefix and sent out.
Advanced Settings
If you need to add more custom options, click the "More" button to fill them in. If left blank, they will be automatically generated.
HTTP Authorization Prefix
If you need to modify the Token prefix, you can adjust the HTTP Authorization prefix.
Custom JWT Header
If you want to add a
JWT Header
, you can add it here.
If you want to attach the Token to the Query parameter instead of the Header, you can switch the "Add to" bar. When the Add Location is Query, you can adjust the Query Param Name in the "Advanced" section.