Skip to content
Discussion options

You must be logged in to vote

Solved.
on dependencies.py I add code to detect if it a byot token or not

        oauth_config_for_user: OAuthConfig | BYOAccessTokenOAuthConfig

        is_byo_oauth = bool(os.getenv("ATLASSIAN_OAUTH_ACCESS_TOKEN") and os.getenv("ATLASSIAN_OAUTH_CLOUD_ID"))

        if is_byo_oauth:
            # For BYO OAuth config (user-provided tokens)
            logger.debug(
                f"get_confluence_fetcher: using user-provided token (BYOT) config"
            )
            oauth_config_for_user = BYOAccessTokenOAuthConfig(
                cloud_id=effective_cloud_id,
                access_token=user_access_token,
            )
        else:
          # For minimal OAuth config (user-prov…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bayudamar18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant