diff --git a/server/utils/oidc-provider.ts b/server/utils/oidc-provider.ts index 8a76ba8..63dd819 100644 --- a/server/utils/oidc-provider.ts +++ b/server/utils/oidc-provider.ts @@ -214,11 +214,13 @@ export async function getOidcProvider() { rpInitiatedLogout: { enabled: true, logoutSource: async (ctx: any, form: string) => { + // oidc-provider generates http:// form actions behind reverse proxy + const secureForm = form.replace('http://ghostguild.org', 'https://ghostguild.org'); ctx.body = guildPageShell("Sign Out", `

Sign Out

Do you want to sign out of your Ghost Guild session?

This will sign you out of the wiki and any other connected services.

- ${form} + ${secureForm}
Stay signed in