349 Commits

Author SHA1 Message Date
Yang Luo
d29fc88d68 Add getRawGetParameter() 2023-05-25 09:47:39 +08:00
Yaodong Yu
225e9cf70a
fix: set initial value in CountryCodeSelect (#1890) 2023-05-24 23:27:04 +08:00
Yang Luo
c57c6e37dd Fix bug in getRedirectUri() 2023-05-24 23:22:25 +08:00
Yaodong Yu
4d860525bf
feat: fix MFA page bug in OAuth login (#1889) 2023-05-24 21:31:03 +08:00
Yang Luo
a64263f812 Support "#" in redirectUri 2023-05-24 21:29:45 +08:00
Yang Luo
6b42d35223 Fix state encoding for Moodle 2023-05-21 15:47:18 +08:00
Ilya Sulimanov
88c0856d17
feat: add subscription managment (#1858)
* feat: subscription managment

* fix: remove console log

* fix: webhooks

* fix linter

* fix: fix via gofumpt

* fix: review changes

* fix: Copyright 2023

* Update account.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-20 15:56:21 +08:00
Yaodong Yu
319031da28
feat: fix UI in IE11 (#1871) 2023-05-19 21:47:02 +08:00
Yaodong Yu
6455734807
fix: fix incorrect LDAP sync status (#1859) 2023-05-18 22:03:53 +08:00
Yaodong Yu
9092cad631
feat: support forced binding MFA after login (#1845) 2023-05-17 01:13:13 +08:00
Yang Luo
0b5ecca5c8 Support empty application in page 2023-05-16 22:17:39 +08:00
Yang Luo
c33d537ac1 Add formCssMobile to application 2023-05-12 12:16:03 +08:00
helayzhang
3a6846b32c
feat: fix bug that logging in with account/password cannot redirect successfully (When Casdoor working as a OAuth server) (#1819) 2023-05-08 16:37:56 +08:00
Yaodong Yu
eb39e9e044
feat: add multi-factor authentication (MFA) feature (#1800)
* feat: add two-factor authentication interface and api

* merge

* feat: add Two-factor authentication accountItem and two-factor api in frontend

* feat: add basic 2fa setup UI

* rebase

* feat: finish the two-factor authentication

* rebase

* feat: support recover code

* chore: fix eslint error

* feat: support multiple sms account

* fix: client application login

* fix: lint

* Update authz.go

* Update mfa.go

* fix: support phone

* fix: i18n

* fix: i18n

* fix: support preferred mfa methods

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-05 21:23:59 +08:00
Yang Luo
69ee6a6f7e Move result page into entry page 2023-05-05 01:08:56 +08:00
Yang Luo
8d531b8880 Fix getStateFromQueryParams() crash when provider name is non-latin 2023-05-01 10:32:08 +08:00
Joe Zhang
fba4801a41
feat: make redirectUri token param follow OAuth2 standard (#1796)
* fix: rename token to access_token in implicit flow; change ? in the redirect uri to &

* fix typo
2023-04-28 23:54:48 +08:00
Yang Luo
f272be67ab Improve i18n 2023-04-28 18:43:41 +08:00
Yaodong Yu
fe53e90d37
fix: signup page of the app-built-in failed to load (#1785) 2023-04-25 16:00:24 +08:00
Yaodong Yu
4f8dd771bc
feat: fix bug that can not get application in signup/oauth/ router (#1766) 2023-04-22 18:20:45 +08:00
XDTD
6d6cbc7e6f
feat: add dynamic mode for provider to enable verification code when the login password is wrong (#1753)
* fix: update webAuthnBufferDecode to support Base64URL for WebAuthn updates

* feat: enable verification code when the login password is wrong

* fix: only enable captcha when login in password

* fix: disable login error limits when captcha on

* fix: pass "enableCaptcha" as an optional param

* fix: change enbleCapctah to optional bool param
2023-04-22 16:16:25 +08:00
Yang Luo
f3ea39d20c Fix result page button link 2023-04-21 23:56:33 +08:00
Yang Luo
0d12972e92 Fix "auto single OAuth signin doesn't work" bug 2023-04-17 00:38:48 +08:00
wht
5c26335fd6
feat: add rule option for phone in application's signup page (#1745) 2023-04-16 20:34:06 +08:00
Yaodong Yu
b99a0c3ca2
feat: optimize the "forget password" page (#1709) 2023-04-06 23:06:18 +08:00
Yaodong Yu
5b3202cc89
feat: fix phone validation bug in signup page (#1693) 2023-03-27 22:52:49 +08:00
Yaodong Yu
fd61b963d5
feat: [SAML + long button crash] fix Disabling "Enable password" leads to white app page when SAML provider is active (#1691)
* fix: saml long button crush

* fix: sue svg

* Update Setting.js

* Update LoginButton.js

* Update ProviderButton.js

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-03-26 23:56:43 +08:00
Yaodong Yu
a8937d3046
feat: refactor agreement modal and create folders to classify components (#1686)
* refactor: refactor agreement modal and create folders to classify components

* fix: i18

* fix: i18

* fix: i18n
2023-03-26 18:44:47 +08:00
Yaodong Yu
daf3d374b5
fix: adjust error result position (#1683) 2023-03-25 09:36:23 +08:00
Yaodong Yu
337ee2faef
feat: fix the bug that autoSignin generates two callback AJAX calls (#1682) 2023-03-24 23:17:54 +08:00
Gucheng Wang
76eb606335 Support AAD tenant auth URL 2023-03-23 22:37:53 +08:00
Yaodong Yu
c6146a9149
feat: fix bug that login by saml provider can not find application (#1676) 2023-03-23 21:38:33 +08:00
imp2002
f191488338
feat: support popup mode in OAuth (#1668)
* feat: support `popup` mode in OAuth

* feat: sendMessage when popup window closed

* fix: fix param name error
2023-03-22 00:15:17 +08:00
Gucheng Wang
5989c4ff34 Remove i18n duplicates 2023-03-19 01:03:12 +08:00
Gucheng Wang
4e62c255b3 Finish i18n of ru 2023-03-18 23:05:37 +08:00
Gucheng Wang
2bc4cd9337 Fix i18n issue 2023-03-18 20:42:02 +08:00
Gucheng Wang
ed9ceaefe1 Finish i18n of de 2023-03-18 20:31:31 +08:00
Gucheng Wang
31e4813df9 Finish i18n of fr 2023-03-18 18:54:05 +08:00
Gucheng Wang
263f804ab8 Finish i18n of es 2023-03-18 17:24:31 +08:00
Gucheng Wang
28d24cc913 Improve i18n 2023-03-18 12:18:42 +08:00
Yaodong Yu
fd883a3211
feat: improve verification error translation (#1660) 2023-03-15 23:44:38 +08:00
Yaodong Yu
90f8eba02d
feat: can send Aliyun test SMS now (#1651) 2023-03-13 17:48:58 +08:00
Gucheng Wang
71db1f62a9 Fix DingTalk oauth link 2023-03-09 21:11:16 +08:00
Yaodong Yu
8427d63872
feat: fix empty value of countryCode for signup (#1620) 2023-03-05 21:52:40 +08:00
Yaodong Yu
e8a7b7ee9c
feat: support all captcha for login (#1619)
* refactor: captcha modal

* feat: support all captcha when login

* chore: improve i18 in loginPage.js
2023-03-05 20:31:46 +08:00
Gucheng Wang
3e6ef9e666 Fix forget page i18n 2023-03-03 23:55:48 +08:00
Gucheng Wang
e50c832ff9 Fix login width 2023-03-02 20:49:13 +08:00
Yaodong Yu
e21087aa50
feat: refactor reset password api and forgetPage.js (#1601) 2023-03-01 15:57:42 +08:00
Yaodong Yu
afd3c4ed25
fix: fix bug form country code init error (#1591) 2023-02-27 22:07:28 +08:00
Yaodong Yu
5caceb4ae2
feat: fix bug that signup country code is undefined (#1590)
* feat: fix signup country code is undefined

* refactor: valid phone number in CN
2023-02-27 20:10:59 +08:00