Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Admin users can manage tokens by opening the Kantega SSO configurations, select the API tokens tab and click Basic configuration. You can also manage API tokens programatically using the REST API.

...

Security control


Admins can restrict and control the usage of API tokens in terms of:

...

You are only allowed to create tokens related to your user account. To create tokens for other user accounts (for example a function user / technical user), you must log in with the relevant user and then create tokens.

...

Code Block
languagejava
HttpClient client = HttpClientBuilder.create().build();
HttpPost post = new HttpPost("https://jira.example.com/rest/");
String encoding = Base64.getEncoder().encodeToString((username.concat(":").concat(my-api-token)).getBytes("UTF-8"));
post.setHeader(HttpHeaders.AUTHORIZATION, "Basic " + encoding);
HttpResponse response = client.execute(post);

...