Skip to content

Commit

Permalink
Add support to make OAuth 2.0 client credential request to product AP…
Browse files Browse the repository at this point in the history
…Is for Connect on Forge app

- Add `cloudId` field to repository implementation
- Update evolution to include `cloud_id` field

fixes #31
  • Loading branch information
tbinna committed Jan 10, 2024
1 parent 9340c10 commit ac7430c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/resources/evolutions/default/1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CREATE TABLE atlassian_host
key VARCHAR NOT NULL,
oauth_client_id VARCHAR,
shared_secret VARCHAR NOT NULL,
cloud_id VARCHAR,
base_url VARCHAR NOT NULL,
display_url VARCHAR NOT NULL,
display_url_servicedesk_help_center VARCHAR NOT NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ private[slick] trait AtlassianHostTable {
val key = column[String]("key", NotNull)
val oauthClientId = column[Option[String]]("oauth_client_id")
val sharedSecret = column[String]("shared_secret", NotNull)
val cloudId = column[String]("cloud_id", SqlType("VARCHAR(255)"))
val baseUrl = column[String]("base_url", NotNull, SqlType("VARCHAR(512)"))
val displayUrl =
column[String]("display_url", NotNull, SqlType("VARCHAR(512)"))
Expand All @@ -82,6 +83,7 @@ private[slick] trait AtlassianHostTable {
key,
oauthClientId,
sharedSecret,
cloudId,
baseUrl,
displayUrl,
displayUrlServicedeskHelpCenter,
Expand All @@ -96,6 +98,7 @@ private[slick] trait AtlassianHostTable {
String,
Option[String],
String,
Option[String],
String,
String,
String,
Expand All @@ -112,6 +115,7 @@ private[slick] trait AtlassianHostTable {
String,
Option[String],
String,
Option[String],
String,
String,
String,
Expand All @@ -127,6 +131,7 @@ private[slick] trait AtlassianHostTable {
host.key,
host.oauthClientId,
host.sharedSecret,
host.cloudId,
host.baseUrl,
host.displayUrl,
host.displayUrlServicedeskHelpCenter,
Expand Down

0 comments on commit ac7430c

Please sign in to comment.