Logging in using a JWT
2 min
use a json web token (jwt) to log into a tenant through open id connect (oidc) authorization base url https //{tenant url}/api/rest/authentication/login generating a jwt generate a jwt to log in to a tenant using oidc authorization a jwt does not contain a tenant url while a session id does url https //{tenant url}/api/rest/authentication/login method post request payload { "tenant" "{tenant url}", "username" "{name of the user}", "password" "{password set for the user}", "role" "{user role to log in to the application}" } status code 200 when providing the "role" parameter, you need to provide the internal name of the role and not the display name for example, admin is the internal name of the role if the log in api is executed successfully, the application generates a jwt follow the below steps to execute an endpoint create a new request in the postman application enter the following information in the authorization tab set the option as bearer token in the type field enter the generated jwt in the token field enter the endpoint request payload details and select send
