fix: comments.

Signed-off-by: Navdeep Gupta <navdeep.gupta@philips.com>
This commit is contained in:
Navdeep Gupta
2024-01-23 17:57:48 -05:00
parent 011002233b
commit 1a9f24cc0c
6 changed files with 3 additions and 28 deletions
@@ -40,8 +40,7 @@
"@types/passport": "^1.0.3",
"jose": "^4.6.0",
"jwt-decode": "^3.1.0",
"node-cache": "^5.1.2",
"passport": "^0.7.0"
"node-cache": "^5.1.2"
},
"devDependencies": {
"@backstage/backend-test-utils": "workspace:^",
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { PassportProfile } from './types';
import type { PassportProfile } from '@backstage/plugin-auth-node/';
import { ProfileInfo } from '@backstage/plugin-auth-node';
import { KeyObject } from 'crypto';
import jwtDecoder from 'jwt-decode';
@@ -1,17 +0,0 @@
/*
* 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 { type PassportProfile } from './types';
@@ -24,4 +24,3 @@ export { awsAlbAuthenticator } from './authenticator';
export { authModuleAwsAlbProvider } from './module';
export { awsAlbSignInResolvers } from './resolvers';
export { type AwsAlbResult } from './types';
export { type PassportProfile } from './types';
@@ -14,8 +14,7 @@
* limitations under the License.
*/
import passport from 'passport';
import type { PassportProfile } from '@backstage/plugin-auth-node/';
/**
* JWT header extraction result, containing the raw value and the parsed JWT
* payload.
@@ -30,10 +29,6 @@ export type AwsAlbResult = {
/**
* @public
*/
export type PassportProfile = passport.Profile & {
avatarUrl?: string;
};
export type AwsAlbClaims = {
sub: string;
name: string;
-1
View File
@@ -4748,7 +4748,6 @@ __metadata:
jose: ^4.6.0
jwt-decode: ^3.1.0
node-cache: ^5.1.2
passport: ^0.7.0
languageName: unknown
linkType: soft