Hi Team,
Description
I’m trying to access my Forge app’s storage (KVS) from an external service using REST API calls. According to the documentation, the Forge storage API requires OAuth bearer tokens for authentication. However, I’ve encountered challenges in generating the proper OAuth token with appropriate scopes to access this API.
What I’ve Tried
- Created an OAuth 2.0 integration in the Atlassian Developer Console
- Attempted to include Forge storage-related scopes for the OAuth app
- Set up Postman to make API calls to:
https://api.atlassian.com/forge/storage/kvs/v1/secret/get
- Generated OAuth tokens from my registered OAuth 2.0 app
Error Message
When attempting to access the API with the generated token, I receive:
json
{
"code": "INVALID_OR_MISSING_CLAIMS",
"message": "The authorization claims are missing or incorrect"
}
Questions
- Is it possible to access Forge storage API from external services (outside of the Forge environment)?
- If yes, what specific OAuth scopes are required to access the Forge storage API?
- Is there any additional authentication mechanism needed beyond standard OAuth 2.0 tokens?
- Are there any code examples for accessing Forge storage from external services?
Environment
- Forge App:myapp
- Trying to access from: Postman/External service
- Authentication: OAuth 2.0
Thank you for your help!