Is there a native way to authenticate to the api using OAuth 2.0 tokens provided by Okta? I know there are ways to do this using plugins like miniOrange, but does Confluence support this on its own?
Hi @Gerard O_Rourke
Welcome to the community.
You can check the following article, how-to-integrate-confluence-dc-with-okta-for-saml-2-0-sso
Thank you for your response. Unfortunately, this does not solve my problem. That is for integrating Confluence with okta in general.
Let me add some clarification here: Our confluence instance is already integrated with okta. We are trying to do something involving authenticated to the api (using the Atlassian Python Module) by passing an OAuth2.0 token from okta. From the docs:
Welcome to Atlassian Python API’s documentation! — Atlassian Python API 3.41.17 documentation (atlassian-python-api.readthedocs.io)
This is an example from under the header "Other Authentication methods"
from atlassian.bitbucket import Cloud # token is a dictionary and must at least contain "access_token" # and "token_type". oauth2_dict = { "client_id": client_id, "token": token} bitbucket_cloud = Cloud( oauth2=oauth2_dict)
We have gotten this code to work using a token generated inside confluence using miniorange. I am wondering if there is:
A) A way to make this code work natively, without miniOrange
Authenticate using an okta token rather than a token generated inside Confluence.
I did some more research on my own on this one. It seems like Confluence Data Center does not support OAuth 2.0 for REST APIs
Sources
Authentication and authorization for developers (atlassian.com)
Jira Rest API Okta - REST API Authentication In Jira using Okta (miniorange.com)
It does, see https://developer.atlassian.com/server/confluence/confluence-oauth2-provider-api/
It looks like you're new here. Sign in or register to get started.