Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change mfa to SMS otp #68

Open
Nimaj1994 opened this issue Dec 13, 2023 · 1 comment
Open

change mfa to SMS otp #68

Nimaj1994 opened this issue Dec 13, 2023 · 1 comment

Comments

@Nimaj1994
Copy link

Hi
As I understood you've used pyotp package for mfa. this package also support SMS otp.can you please point me to the file that I should change to switch it to SMS otp please?
I did add mobile phone number to my users model and there is no problem with that.

@markstuart
Copy link
Contributor

Hi @Nimaj1994, the interaction with the pyotp library all happens in the SecurityTOTP class here: https://github.com/data-govt-nz/ckanext-security/blob/master/ckanext/security/model.py#L58

If you look at where the class methods on SecurityTOTP are used in the codebase, that should give you an idea of where you might need to make changes to pass the SMS code in or whatever you need to do.

Feel free to raise a pull request if you like :)

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

No branches or pull requests

2 participants