Native OAuth 2.0 api authentication using Okta as a provider?

Gerard O_Rourke December 10, 2024

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?

2 answers

0 votes
Gerard O_Rourke December 12, 2024

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)

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 13, 2024
0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2024

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 

Gerard O_Rourke December 12, 2024

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

B) Authenticate using an okta token rather than a token generated inside Confluence.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events