BitBucket Plugin with Bamboo Integration

I’m writing a BitBucket plugin that will integrate with Bamboo to download an artifact from a build plan. I’m doing this via the Bamboo rest api, but am running into issues with authentication. Everything I’ve found so far requires me to send the user credentials with Bamboo requests in order for it to authenticate successfully. Since the user has already logged in with BitBucket, is there any way to use that same login context so I don’t have to send user credentials with every request?

Take a look at Application Links:
https://confluence.atlassian.com/applinks/application-links-documentation-165120834.html

for api:
https://developer.atlassian.com/server/framework/atlassian-sdk/application-links/

Examples:
https://developer.atlassian.com/server/jira/platform/implementing-application-links-in-jira/

2 Likes