Using multi factor authentication with Service Portal

Paul McGregor
Kilo Contributor

Hi,

I have the multi factor authentication plugin enabled, however this does not appear to work for a service portal based login, I just get the message:

Screen Shot 2017-05-31 at 9.13.44 am.png

However it does not give any means to actually enter the 2nd factor. This does work on the standard non-portal login, is there anyway to have it work within the service portal?

15 REPLIES 15

Hi Taylor,

Can you share the code to add a query to the user_multifactor_auth table to find out if MFA has been validated before proceeding.

I am trying in server script of widget where i am checking if status is validated or not in table.

if yes allow access else dont

but not able to achieve .

Any inputs?

Hi deepanshanand,

 

Sorry I don't have access to the instance anymore but it would just be a simple gliderecord query.

 
 
 

 

hi Taylor 

i am putting below query to check if validated is true for a user

console.log("MFA TEst")
var gr = new gliderecord('user_multifactor_auth');
if(gr.get('is_validated',true))
{
data.isvalid='valid';
}

 

then i am putting condition in client script 

if ((response.data.status == 'success')&&(c.data.isvalid=='valid')) {

c.success = response.data.message;


$window.location = response.data.redirect_url;
}

 

but still no luck , i am not getting even console.log in console
any idea where i am going wrong

 

Paul McGregor
Kilo Contributor

Thanks for the responses, I didn't want to create and or modify any widgets because I am expecting this will be fixed in a future release. The ultimate solution for us was to work around the problem by making the portal login page non-public, which means that if you try to access the portal without being logged in, you are re-directed to the non-portal login page and when self service users login they are redirected to the portal using the SPEntry script include.


Hi Paul,

 

After making the portal login page non public, is there any step to make so that the portal redirects to the non portal login page? 

 

I tried making the portal login page non public and all I get is a blank page.

 

Thanks

 

Quik