From a49f1dc7e81e0e673198187a7508578cb7771f52 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 26 Jul 2023 17:58:52 +0200 Subject: [PATCH] auth-node: add oauth index exports Signed-off-by: Patrik Oldsberg --- plugins/auth-node/src/index.ts | 1 + plugins/auth-node/src/oauth/index.ts | 32 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 plugins/auth-node/src/oauth/index.ts diff --git a/plugins/auth-node/src/index.ts b/plugins/auth-node/src/index.ts index 6c0993203b..b055e3a7d3 100644 --- a/plugins/auth-node/src/index.ts +++ b/plugins/auth-node/src/index.ts @@ -22,6 +22,7 @@ export * from './flow'; export * from './identity'; +export * from './oauth'; export * from './passport'; export type { AuthProviderConfig, diff --git a/plugins/auth-node/src/oauth/index.ts b/plugins/auth-node/src/oauth/index.ts new file mode 100644 index 0000000000..52c7b859f7 --- /dev/null +++ b/plugins/auth-node/src/oauth/index.ts @@ -0,0 +1,32 @@ +/* + * Copyright 2023 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export { + createOAuthHandlers, + type OAuthHandlersOptions, +} from './createOAuthHandlers'; +export { PassportOAuthAuthenticatorHelper } from './PassportOAuthAuthenticatorHelper'; +export { + createOAuthAuthenticator, + type OAuthAuthenticator, + type OAuthAuthenticatorAuthenticateInput, + type OAuthAuthenticatorLogoutInput, + type OAuthAuthenticatorRefreshInput, + type OAuthAuthenticatorResult, + type OAuthAuthenticatorStartInput, + type OAuthProfileTransform, + type OAuthSession, +} from './types';