Merge pull request #21633 from backstage/djam/oauth2proxy-fix

This commit is contained in:
Fredrik Adelöw
2023-11-29 17:16:49 +01:00
committed by GitHub
3 changed files with 8 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend-module-oauth2-proxy-provider': patch
---
Exported the provider as default so it gets discovered when using `featureDiscoveryServiceFactory()`
@@ -10,7 +10,8 @@ import { IncomingHttpHeaders } from 'http';
import { ProxyAuthenticator } from '@backstage/plugin-auth-node';
// @public (undocumented)
export const authModuleOauth2ProxyProvider: () => BackendFeature;
const authModuleOauth2ProxyProvider: () => BackendFeature;
export default authModuleOauth2ProxyProvider;
// @public
export const OAUTH2_PROXY_JWT_HEADER = 'X-OAUTH2-PROXY-ID-TOKEN';
@@ -19,7 +19,7 @@
*
* @packageDocumentation
*/
export { authModuleOauth2ProxyProvider } from './module';
export { authModuleOauth2ProxyProvider as default } from './module';
export {
oauth2ProxyAuthenticator,
OAUTH2_PROXY_JWT_HEADER,