@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user