From 05e1d158216999a52d651e73d347c5fec90de97c Mon Sep 17 00:00:00 2001 From: fratzinger <22286818+fratzinger@users.noreply.github.com> Date: Wed, 3 Apr 2024 14:22:02 +0200 Subject: [PATCH] fix(authentication-oauth): defaults first for GrantConfig --- packages/authentication-oauth/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/authentication-oauth/src/utils.ts b/packages/authentication-oauth/src/utils.ts index ef16e8ccd5..21eff4217f 100644 --- a/packages/authentication-oauth/src/utils.ts +++ b/packages/authentication-oauth/src/utils.ts @@ -42,11 +42,11 @@ export const getGrantConfig = (service: AuthenticationService): GrantConfig => { const grant: GrantConfig = { ...oauthConfig, defaults: { - ...oauthConfig.defaults, prefix: '/oauth', origin: `${protocol}://${host}`, transport: 'state', - response: ['tokens', 'raw', 'profile'] + response: ['tokens', 'raw', 'profile'], + ...oauthConfig.defaults } }