Merge pull request #26788 from RedlineTriad/propagate-env-for-bitbucket-server-auth

fix: propagate environment for bitbucket-server-auth
This commit is contained in:
Johan Haals
2024-09-20 15:14:51 +02:00
committed by GitHub
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/app-defaults': patch
---
Updated the `bitbucket-server-auth` default API to set its environment based on the `auth.environment` config option instead of being hardcoded to `development`.
@@ -243,6 +243,7 @@ export const apis = [
discoveryApi,
oauthRequestApi,
defaultScopes: ['REPO_READ'],
environment: configApi.getOptionalString('auth.environment'),
}),
}),
createApiFactory({
+1
View File
@@ -318,6 +318,7 @@ export const apis = [
discoveryApi,
oauthRequestApi,
defaultScopes: ['REPO_READ'],
environment: configApi.getOptionalString('auth.environment'),
}),
}),
},