diff --git a/src/main/kotlin/com/carbonara/core/security/apiKeys/APIKeyDto.kt b/src/main/kotlin/com/carbonara/core/security/apiKeys/APIKeyDto.kt index 98d076f..9508f7e 100644 --- a/src/main/kotlin/com/carbonara/core/security/apiKeys/APIKeyDto.kt +++ b/src/main/kotlin/com/carbonara/core/security/apiKeys/APIKeyDto.kt @@ -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 ) diff --git a/src/main/kotlin/com/carbonara/core/security/apiKeys/APIKeysQuery.kt b/src/main/kotlin/com/carbonara/core/security/apiKeys/APIKeysQuery.kt index 023f489..a349ad9 100644 --- a/src/main/kotlin/com/carbonara/core/security/apiKeys/APIKeysQuery.kt +++ b/src/main/kotlin/com/carbonara/core/security/apiKeys/APIKeysQuery.kt @@ -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 ) } } diff --git a/src/main/resources/application-staging.properties b/src/main/resources/application-staging.properties index ae31f61..5276cae 100644 --- a/src/main/resources/application-staging.properties +++ b/src/main/resources/application-staging.properties @@ -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