Skip to content

Commit

Permalink
🐞 Can't login on alt auth method with openid as main (#395)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#913
  • Loading branch information
Findeton committed May 16, 2024
1 parent a6d22a2 commit 59424ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions avRegistration/login-directive/login-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ angular.module('avRegistration')
return;
}

scope.isOpenId = altAuthMethod.auth_method === 'openid-connect';
scope.current_alt_auth_method_id = altAuthMethod.id;
authevent.extra_fields = altAuthMethod.extra_fields;
authevent.auth_method_config = altAuthMethod.auth_method_config;
Expand Down
7 changes: 4 additions & 3 deletions dist/appCommon-vmaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,10 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
var authevent = angular.copy(scope.base_authevent);
if (null === altAuthMethod) return scope.current_alt_auth_method_id = null, scope.isOpenId = scope.isOpenId || "openid-connect" === authevent.auth_method,
void scope.apply(authevent);
altAuthMethod.id !== scope.current_alt_auth_method_id && (isClick && "smart-link" !== scope.selectedAltMethod && "smart-link" === altAuthMethod.auth_method_name || (scope.current_alt_auth_method_id = altAuthMethod.id,
authevent.extra_fields = altAuthMethod.extra_fields, authevent.auth_method_config = altAuthMethod.auth_method_config,
authevent.auth_method = altAuthMethod.auth_method_name, scope.apply(authevent)));
altAuthMethod.id !== scope.current_alt_auth_method_id && (isClick && "smart-link" !== scope.selectedAltMethod && "smart-link" === altAuthMethod.auth_method_name || (scope.isOpenId = "openid-connect" === altAuthMethod.auth_method,
scope.current_alt_auth_method_id = altAuthMethod.id, authevent.extra_fields = altAuthMethod.extra_fields,
authevent.auth_method_config = altAuthMethod.auth_method_config, authevent.auth_method = altAuthMethod.auth_method_name,
scope.apply(authevent)));
}, scope.apply = function(authevent) {
scope.hasOtpFieldsCode = Authmethod.hasOtpCodeField(authevent), scope.method = authevent.auth_method,
scope.oidc_providers = authevent.oidc_providers, scope.current_oidc_providers = getCurrentOidcProviders(authevent),
Expand Down

0 comments on commit 59424ff

Please sign in to comment.