authorizer/server/utils
Lakhan Samani fe4c693324
feat: add totp login API (#416)
* fix:
* removed hasReversedValue in playground

* feat:
* added totp methods in db's providers
* adding totp in login method

* feat:
* added toggle in dashboard
* fixing issue with env set

* feat:
* integrated totp

* feat:
* encrypted userid
* added totp_verified column in user table
* started test for totp

* feat:
* test cases totp

* test-cases:
* completed test cases
* tested for all dbs

* fixes:
* return variable to snake case
* import refactoring

* feat:
* created seperate folder for authenticator with totp subfolder
* refactored code
* created new table for authenticators
* added recovery code for totp

* feat:
* adding functions to different db providers

* feat:
* added authenticators method for all db

* feat:
* added logic for updating mfa in user_profile update

* fix:
* merge conflict

* fix:
* resolved mongodb, dynamodb and arangodb test case bug
* added new condition for checking first time totp user or not

* feat:
* changes in all respective db with authenticator

* fix:
* PR suggested changes

* fix(cassandra): list users

* Update verify otp

* fix totp login api

---------

Co-authored-by: lemonScaletech <anand.panigrahi@scaletech.xyz>
2023-11-16 18:30:54 +05:30
..
common.go revert change for forgot password 2023-05-12 16:39:02 +05:30
file.go feat: add support for database cert, key, ca-cert 2022-04-23 17:52:02 +05:30
generate_otp.go Update generate_otp.go 2022-08-02 18:26:05 +05:30
generate_totp_recovery_code.go feat: add totp login API (#416) 2023-11-16 18:30:54 +05:30
gin_context.go fix: openid flow 2022-11-12 23:54:37 +05:30
nonce.go fix: auth flow 2022-03-02 17:42:31 +05:30
pagination.go fix: refs for cassandra db 2023-08-01 16:09:17 +05:30
parser.go enhancement: add access_token_expiry_time env variable 2022-03-25 15:21:20 +03:00
pkce.go feat: Adds login via twitter 2022-08-22 09:25:10 +02:00
request_info.go Feat/dashboard (#105) 2022-01-17 11:32:13 +05:30
response.go [server]fix: error redirection for email verification 2023-05-02 18:39:10 +05:30
webhook.go refactor(server/utils): remove redundant nil check 2023-09-09 12:57:20 +08:00