Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Not working in 8.1.0 #15

Open
flexxdesign opened this issue Jan 25, 2021 · 4 comments
Open

Not working in 8.1.0 #15

flexxdesign opened this issue Jan 25, 2021 · 4 comments

Comments

@flexxdesign
Copy link

Just confirmed that AutoAuth is not working in WHMCS version 8.1.0. The replacement is CreateSsoToken: https://developers.whmcs.com/api-reference/createssotoken/

Are you planning on modifying the module? It would be greatly appreciated!

@JonTheWong
Copy link
Owner

Probably not, the issue is that the session only lasts for for 60 seconds.

Not very useful for this type of implementation.

I’d have to dig and look into the API and see if we can hook in other parts.

But I don’t think so, SSO is used to allow another login form to use the same user auth. Making it easier for users to login.

there’s no way to auth in an email.

they essentially kill this module.

As a security standpoint it’s also not ideal to keep a token that never expires in email.

RIP to this module.

@flexxdesign
Copy link
Author

Okay, that's a bummer! Thank you for the quick response!

@JonTheWong
Copy link
Owner

Yeah no problem, if I find an alternative method.

I’ll update this module with a link.

@joelw
Copy link

joelw commented Jun 13, 2023

I'm a happy user of whmcs_autoauth for several years, but after upgrading to the latest WHMCS recently I realised that it was no longer working!

I've create a PR #17 to replace AutoAuth with CreateSsoToken. The 60 second token duration is no problem because it is generated at the time the customer hits the ?auth.php file. The previous email+secret key hash method is still used, so you don't need to change your templates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants