2 factor authentication

utpalborgohain
Tera Contributor

Can anyone provide me a sample example of curl request for the user login by hitting service now api  with 2factor authentication or any documentation link for the same?

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi @utpalborgohain 

 

this is not possible as the MFA (multi-factor) authentication only works in a browser and not for integrations. Instead you have to use adaptive authentication to bypass the MFA for integrations.

 

Or you go that approach: Bypass Multi-factor Authentication (MFA) based on IP Addresses 

 

Maik

Hi Maik, so there's this browser website in which we login with username and password , we hit a service now api with these credentials(username and password) and when we get an authenticated response from the api we let the user login.So basically we let all the users who are registered with service now to access this site .Now let's say for all those users who have MFA enabled in service now , we want them to provide an authentication code while logging into this website (Basically we won't be providing login access to the users who do not have MFA enabled in service now) , this authentication code will be sent to the service now along with the user's username and password for verification.Is this possible to implelemt ?Is there any documentation or any sample curl request on how the reuqest for the same should look like?

utpalborgohain
Tera Contributor

Hi @Maik Skoddow

 

So there's this browser website in which we login with username and password , we hit a service now api with these credentials(username and password) and when we get an authenticated response from the api we let the user login.So basically we let all the users who are registered with service now to access this site .Now let's say for all those users who have MFA enabled in service now , we want them to provide an authentication code while logging into this website (Basically we won't be providing login access to the users who do not have MFA enabled in service now) , this authentication code will be sent to the service now along with the user's username and password for verification.Is this possible to implelemt ?Is there any documentation or any sample curl request on how the reuqest for the same should look like?