Skip to content

Commit

Permalink
Merge pull request #74 from KjellBerlin/Remove-auth0-props-from-apiKe…
Browse files Browse the repository at this point in the history
…yQuery

Remove auth0 props from apiKey endpoint
  • Loading branch information
KjellBerlin authored Oct 4, 2024
2 parents 6b9cc6e + 7232d55 commit a72fdb7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.carbonara.core.security.apiKeys

data class APIKeyDto(
val googlePlacesAPIKey: String,
val auth0Domain: String,
val auth0ClientId: String,
val googlePlacesAPIKey: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,10 @@ class APIKeysQuery : Query {
@Value("\${google.apiKey}")
lateinit var googlePlacesAPIKey: String

@Value("\${okta.oauth2.issuer}")
lateinit var auth0Domain: String

@Value("\${okta.oauth2.client-id}")
lateinit var auth0ClientId: String

@GraphQLDescription("APIKeys a user needs to use third party APIs")
suspend fun apiKeys(): APIKeyDto {
return APIKeyDto(
googlePlacesAPIKey = googlePlacesAPIKey,
auth0Domain = auth0Domain,
auth0ClientId = auth0ClientId
googlePlacesAPIKey = googlePlacesAPIKey
)
}
}
2 changes: 0 additions & 2 deletions src/main/resources/application-staging.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ spring.data.mongodb.database=${sm://projects/897213585789/secrets/mongodb-databa

okta.oauth2.issuer=https://dev-yntwqm72gdl58ssy.us.auth0.com/
okta.oauth2.audience=https://api.carbonara-app.com
# Only used to provide it to frontend
okta.oauth2.client-id=${sm://projects/897213585789/secrets/oauth0-clientId}

mollie.apiKey=${sm://projects/897213585789/secrets/mollie-apiKey}
mollie.redirectUrl=carbonara://order-status
Expand Down

0 comments on commit a72fdb7

Please sign in to comment.