Jump to content

WHMCS API Two Factor Authentication


aryan

Recommended Posts

Hello,

 

We have integrated WHMCS on our website using API to ValidateLogin it works fine for all users the issue is if the user has enabled Two-Factor Authentication the login from API directly logging in to WHMCS without asking the Two-Factor Authentication steps.

 

While if they log in from WHMCS it ask for Two-Factor Authentication.

Any idea why for API login it doesnt takes them to Two-Factor Authentication?

Or any URL that i redirect the users if the Two-Factor Authentication enabled so they can verify their then can login to whmcs?

 

Regards,

Link to comment
Share on other sites

  • 3 years later...
  • 5 months later...

i need to,,

i try to make standalone 2FA in my client site.  with package speakeasy node js. 

if 2fa has been active i see tblclients have autmodule = totp, and authdata = some serialize array like

Array
(
    [tokendata] => YTo2OntzOjg6InRva2Vua2V5IjtzOjIwOiI2M2NlYmI0ZmQ3NzNjMWIxZDQ4NiI7czo5OiJ0b2tlbnR5cGUiO3M6NDoiVE9UUCI7czoxMDoidG9rZW50aW1lciI7aTozMDtzOjEyOiJ0b2tlbmNvdW50ZXIiO2k6MTtzOjE0OiJ0b2tlbmFsZ29yaXRobSI7czo0OiJTSEExIjtzOjQ6InVzZXIiO3M6MDoiIjt9
    [backupcode] => 5d4eba1f404724c0b815d4b12101ecec958c4a32
)

i can decode backupcode with sha1() but how to to decode or decrypt tokendata ?

Link to comment
Share on other sites

On 1/6/2022 at 3:52 PM, addin said:

i need to,,

i try to make standalone 2FA in my client site.  with package speakeasy node js. 

if 2fa has been active i see tblclients have autmodule = totp, and authdata = some serialize array like


Array
(
    [tokendata] => YTo2OntzOjg6InRva2Vua2V5IjtzOjIwOiI2M2NlYmI0ZmQ3NzNjMWIxZDQ4NiI7czo5OiJ0b2tlbnR5cGUiO3M6NDoiVE9UUCI7czoxMDoidG9rZW50aW1lciI7aTozMDtzOjEyOiJ0b2tlbmNvdW50ZXIiO2k6MTtzOjE0OiJ0b2tlbmFsZ29yaXRobSI7czo0OiJTSEExIjtzOjQ6InVzZXIiO3M6MDoiIjt9
    [backupcode] => 5d4eba1f404724c0b815d4b12101ecec958c4a32
)
 

i can decode backupcode with sha1() but how to to decode or decrypt tokendata ?

now, i can generate manual 2FA code with this, but not yet to verify between my app with whmcs 🙂

Link to comment
Share on other sites

  • 2 months later...

Hello my name is Leandro de França, I'm talking about Brazil!
Have any of you built API so customers can:
- Get Billing Information and Credits
- Add Credits
- Buy products
- Use features of the module linked to the product (Suspend, Reactivate, Restart, Update password)?

I need these resources!

If anyone can help me in a paid way, please contact me via Telegram:


Leandro de França
https://t.me/LeandroDeFranca

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated