Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I configure a Spring Boot application to use Jira as an OAuth authentication server?

Dirk April 20, 2018

How can I configure my Sprint Boot application to use Jira as an OAuth authentication server?

What do I have to specify for the `resource-details-service` element? (especially key, secret, ...)

Is there a sample implementation from Atlassian anywhere?

2 answers

0 votes
Tmk Washington
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 14, 2024
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version>
<relativePath/>
</parent>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<build>
<plugins>
 <plugin>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-maven-plugin</artifactId>
 </plugin>

 <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-install-plugin</artifactId>
  <version>2.5.1</version>
  <executions>
   <execution>
    <id>id.install-file</id>
    <phase>clean</phase>
    <goals>
     <goal>install-file</goal>
    </goals>
    <configuration>
     <file>C:\Program Files\CData[product_name] ####\lib\cdata.jdbc.jira.jar</file>
     <groupId>org.cdata.connectors</groupId>
     <artifactId>cdata-jira-connector</artifactId>
     <version>23</version>
     <packaging>jar</packaging>
    </configuration>
   </execution>
  </executions>
 </plugin>
</plugins>
</build>

<dependencies>
<dependency>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-starter-jdbc</artifactId>
 <version>2.7.0</version>
</dependency>
<dependency>
 <groupId>org.cdata.connectors</groupId>
 <artifactId>cdata-jira-connector</artifactId>
 <version>23</version>
</dependency>

<dependency>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-starter-test</artifactId>
 <scope>test</scope>
</dependency>
</dependencies>



<distributionManagement>
<repository>
 <uniqueVersion>false</uniqueVersion>
 <id>test</id>
 <name>My Repository</name>
 <url>scp://repo/maven2</url>
 <layout>default</layout>
</repository>
</distributionManagement>

</project>
0 votes
Andy Heinzer
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.
April 20, 2018

Hi Dirk,

I would recommend checking out the documentation on OAuth 2.0 - JWT Bearer token authorization grant type  and  OAuth for REST APIs

These explain an overview of how you can configuring a plugin/application to use Oauth with Jira.

Sorry if this is not exactly what you are looking for.  If you are in search of more detailed instructions for your use case, I would actually recommend posting this kind of question to our Developer Community instead, https://community.developer.atlassian.com/

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, aafp, jira migration, marketing collaboration, end siloed work, streamline workflows, kerrie gottschalk, jira cloud admins, unified marketing, process visibility, team efficiency, cross-team collaboration

How Kerrie Gottschalk unified AAFP’s marketing team with Jira

At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.

Read the story
AUG Leaders

Atlassian Community Events