-
- Downloads
Add the 2FA for OIDC (#1961)
* Add eslint * Extract the 2FA from login process * Refactor the session generation * Add 2FA for OIDC * Take off trusted device checkbox for oidc * Add test * Fix linter * Improve linting - Add the JS linting in scripts/lint.sh - Add documentation - Lint the JS files * Use cozy-ui utilities instead of js hack for templates * Move trusted device checkbox logic to Go * Lighten the twoFactor function by extracting the failed case * Simplify the isTrustedDevice function * Check device token only for login form * Rework the long run session * Bring back the checkmark for login * Add ESLint to .travis.yml * Sudo commands for travis * Force ESLint to v5 * Add prettier * Add prettier * Move eslint to scripts/lint.sh * Wrap the piwik initialization in a try/catch * Remove CSRF * Disable longRunSession for reset passphrase page * Fix linter * Use a QueryParam instead of FormValue for LongRunSession
Showing
- .eslintrc.json 3 additions, 0 deletions.eslintrc.json
- .travis.yml 1 addition, 0 deletions.travis.yml
- assets/scripts/cancel-button.js 2 additions, 2 deletionsassets/scripts/cancel-button.js
- assets/scripts/check-deeplink.js 61 additions, 64 deletionsassets/scripts/check-deeplink.js
- assets/scripts/passwd-strength-indicator.js 22 additions, 17 deletionsassets/scripts/passwd-strength-indicator.js
- assets/scripts/password-helper.js 13 additions, 10 deletionsassets/scripts/password-helper.js
- assets/scripts/password-visibility.js 12 additions, 7 deletionsassets/scripts/password-visibility.js
- assets/scripts/submit.js 81 additions, 129 deletionsassets/scripts/submit.js
- assets/scripts/tracking-onboarding.js 11 additions, 11 deletionsassets/scripts/tracking-onboarding.js
- assets/scripts/twofactor_submit.js 117 additions, 0 deletionsassets/scripts/twofactor_submit.js
- assets/templates/login.html 3 additions, 27 deletionsassets/templates/login.html
- assets/templates/twofactor.html 87 additions, 0 deletionsassets/templates/twofactor.html
- docs/CONTRIBUTING.md 4 additions, 0 deletionsdocs/CONTRIBUTING.md
- scripts/lint.sh 3 additions, 0 deletionsscripts/lint.sh
- web/auth/auth.go 76 additions, 133 deletionsweb/auth/auth.go
- web/auth/twofactor.go 162 additions, 0 deletionsweb/auth/twofactor.go
- web/oidc/oidc.go 13 additions, 0 deletionsweb/oidc/oidc.go
- web/oidc/oidc_test.go 96 additions, 3 deletionsweb/oidc/oidc_test.go
Loading
Please register or sign in to comment