chore: small nits

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-02-21 13:14:44 +01:00
parent b1b012d065
commit 44f89d5ca3
3 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -5,4 +5,4 @@
'@backstage/plugin-auth-node': patch
---
Fix issue with `providerInfo` not being set properly for some auth providers, by making `providerInfo` an explicit optional return from `authenticate`
Fix issue with `providerInfo` not being set properly for some proxy providers, by making `providerInfo` an explicit optional return from `authenticate`
@@ -18,7 +18,7 @@ export const OAUTH2_PROXY_JWT_HEADER = 'X-OAUTH2-PROXY-ID-TOKEN';
// @public (undocumented)
export const oauth2ProxyAuthenticator: ProxyAuthenticator<
unknown,
Promise<void>,
OAuth2ProxyResult,
{
accessToken: string;
@@ -31,11 +31,7 @@ import { OAuth2ProxyResult } from './types';
export const OAUTH2_PROXY_JWT_HEADER = 'X-OAUTH2-PROXY-ID-TOKEN';
/** @public */
export const oauth2ProxyAuthenticator = createProxyAuthenticator<
unknown,
OAuth2ProxyResult,
{ accessToken: string }
>({
export const oauth2ProxyAuthenticator = createProxyAuthenticator({
defaultProfileTransform: async (result: OAuth2ProxyResult) => {
return {
profile: {