Projects response = _projects_paginated() Permissions Get my permissions response = _my_permissions() Get create issue metadata response = _create_issue_metadata() Response = _issue(data)ĭelete issue response = _issue('ISSUE_ID') Issues Get issue response = _issue('ISSUE_ID') Refresh token response = client.refresh_token('REFRESH_TOKEN') Set cloudid in the library t_cloud_id('CLOUD_ID') Get the cloudid for your site response = client.get_resource_list() Set access token in the library t_access_token('ACCESS_TOKEN') Url = thorization_url('REDIRECT_URI', scope_list, 'STATE')Įxchange authorization code for access token response = client.exchange_code('REDIRECT_URI', 'CODE') To do this, add the offline_access scope to the scope parameter of the authorization URL. Usage Client instantiation from jiracloud.client import ClientĬlient = Client('CLIENT_ID', 'CLIENT_SECRET') # Host must have trailing slashįor more information: Direct the user to the authorization URL to get an authorization codeĪ refresh token can be returned with the access token in your initial authorization flow. If the session should be invalidated after succeeded authentication using personal access token.Jira-cloud-python is an API wrapper for Jira Software Cloud written in Python Installing pip install jira-cloud-python How many days before sending an e-mail notification about tokens that will expire soon. The CRON expression for the scheduler job that sends notifications about expired tokens and about tokens that will expire soon. The maximum number of items allowed in the Authentication Cache. The length of time, in minutes, an item can stay in the Authentication Cache before being removed. Maximum number of tokens allowed per user. If you decided to change this property, the new value will apply only to tokens created after your change and won't affect already created tokens. Maximum number of days for a token to expire. The delay before expired tokens are removed from the database, in days. The cron expression must be surrounded by single-quotes. The CRON expression for the expired token pruning scheduler job. '0 0 0 * * ?' - 12 am local time, every day The interval at which the scheduler job is updating the 'last accessed at' property of each token, in minutes. Whether mail notifications are globally enabled. If users should be able to create tokens that do not expire. Whether personal access tokens are globally enabled. Limit token creationĪdministrators can use system properties to limit the number of tokens people can create, and set expiry rules. Your token is now revoked and can't be used for further authentication. Select Revoke next to the token you want to delete.In Confluence, select your profile picture at the top right of the screen, then choose Settings > Personal access tokens.In Jira select your profile picture at the top right of the screen, then choose Personal Access Tokens.If for any reason, for instance, a security breach, you need to revoke your token, you can do it quickly from your Atlassian application: If attempting to use the PAT on a script or with some other method, you should still follow the Bearer Token OAuth standard. The "Bearer" part should not be changed, nor should you need to inform which user is making the request.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |