atlassian-api / atlassian-python-api

Atlassian Python REST API wrapper
https://atlassian-python-api.readthedocs.io
Apache License 2.0
1.35k stars 662 forks source link

Authenticating with JWT for Bitbucket Apps #420

Open juli1 opened 4 years ago

juli1 commented 4 years ago

The bitbucket cloud app allows to use the API by using a JWT token. That would then be another way to authenticate for making API calls.

Bitbucket documentation: https://developer.atlassian.com/cloud/bitbucket/authentication-for-apps/

Using the JWT would just add a header in the request such as "Authorization": "<insert jwt-token here>"

gonchik commented 4 years ago

@juli1 As I see you can do through exist headers parameters, if you want to have more easy way. Could you provide me, please, how often it's going to be used ? Cheers, Gonchik Tsymzhitov

juli1 commented 4 years ago

How can I add headers when using the API? Is there any special parameters I can use to add the Authorization header value?

Thanks!