diff --git a/.changeset/light-chicken-search.md b/.changeset/light-chicken-search.md new file mode 100644 index 0000000000..aebb53d753 --- /dev/null +++ b/.changeset/light-chicken-search.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-auth-backend-module-oidc-provider': patch +--- + +Increased HTTP request timeout used by OIDC authenticator. diff --git a/plugins/auth-backend-module-oidc-provider/src/authenticator.ts b/plugins/auth-backend-module-oidc-provider/src/authenticator.ts index eddf57a55b..29e8d54ada 100644 --- a/plugins/auth-backend-module-oidc-provider/src/authenticator.ts +++ b/plugins/auth-backend-module-oidc-provider/src/authenticator.ts @@ -15,6 +15,7 @@ */ import { + custom, Issuer, ClientAuthMethod, TokenSet, @@ -30,6 +31,10 @@ import { PassportOAuthPrivateInfo, } from '@backstage/plugin-auth-node'; +custom.setHttpOptionsDefaults({ + timeout: 10000, +}); + /** * authentication result for the OIDC which includes the token set and user * profile response