195 Commits

Author SHA1 Message Date
hsluoyz
94c7923c0e Revert "feat: fix login page path after logout (#2493)"
This reverts commit 23d4488b647161da67c530ddb61bbdfff0981698.
2023-11-24 15:33:59 +08:00
aiden
23d4488b64
feat: fix login page path after logout (#2493)
Co-authored-by: aidenlu <aiden_lu@wochacha.com>
2023-11-21 23:37:35 +08:00
songjf
23f4684e1d
feat: make MFA works for CAS login (#2506)
* feat: make MFA works for CAS login

* fix: Reduced code redundancy

* fix: Modified the format of the code.

* fix: fix an error with the 'res' variable

* Update LoginPage.js

* Update LoginPage.js

* Update LoginPage.js

* Update MfaAuthVerifyForm.js

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-11-21 21:35:19 +08:00
aiden
34b1945180
feat: fix bugs in custom app sso login with WebAuthn authentication (#2457)
Co-authored-by: aidenlu <aiden_lu@wochacha.com>
2023-10-30 10:54:34 +08:00
Yang Luo
6713dad0af Fix this.props.account null issue 2023-10-27 02:13:23 +08:00
Yang Luo
1732cd8538 Fix the bug that sometimes cannot auto login with enableAutoSignin = true 2023-10-27 00:06:17 +08:00
haiwu
05b2f00057
feat: support Pricings flow (#2250)
* feat: fix price display

* feat: support subscription

* feat: fix select-plan-> signup -> buy-plan -> login flow

* feat: support paid-user to login and jump to the pricing page

* feat: support more subscription state

* feat: add payment providers for plan

* feat: format code

* feat: gofumpt

* feat: redirect to buy-plan-result page when user have pending subscription

* feat: response err when pricing don't exit

* Update PricingListPage.js

* Update ProductBuyPage.js

* Update LoginPage.js

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-08-24 23:20:50 +08:00
haiwu
fec54944dd feat: fix CAS login bug (#2230)
* fix: cas login

* fix: cas login

* feat: rollback get-default-app change

* fix : move cas restrict logic to GetApplicationLogin()

* fix: format code

* fix: fix getOAuthGetParameters for cas

* fix: fix getOAuthGetParameters for cas

* fix: cas login
2023-08-19 01:15:41 +08:00
hsluoyz
a2db61cc1a
chore: Revert "feat: restrict redirectUrls for CAS login" (#2234)
This reverts commit b7a37126ad2a7568426d6410480829d9ece51ef0.
2023-08-19 00:30:35 +08:00
haiwu
d1f88ca9b8
feat: support google one tap signin (#2131)
* feat: add google one tap support

* feat: gofumpt

* feat: add google provider rule conf

* feat: update i18n
2023-07-25 15:49:15 +08:00
haiwu
b7a37126ad
feat: restrict redirectUrls for CAS login (#2118)
* feat: support cas restricted login

* feat: add cas login i18n

* feat: add CheckCasService for all cas api

* feat: gofumpt

* feat: replace 404

* feat: reuse i18n

* feat: delete CheckCasService

* Update token_cas.go

* Update LoginPage.js

* Update token_cas.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-07-24 11:47:31 +08:00
Yaodong Yu
a6f803aff1
feat: refactor code to use responseOK everywhere (#2111)
* refactor: use responseOK return frontend format json data

* revert handle error

* revert handle error
2023-07-23 09:49:16 +08:00
Baihhh
ae6e35ee73
feat: fix bug that the password input disappears in login window (#2051)
Signed-off-by: baihhh <2542274498@qq.com>
2023-07-08 23:46:31 +08:00
Yaodong Yu
347d3d2b53
feat: fix bugs in MFA (#2033)
* fix: prompt mfa binding

* fix: clean session when leave promptpage

* fix: css

* fix: force enable mfa

* fix: add prompt rule

* fix: refactor directory structure

* fix: prompt notification

* fix: fix some bug and clean code

* fix: rebase

* fix: improve notification

* fix: i18n

* fix: router

* fix: prompt

* fix: remove localStorage
2023-07-07 12:30:07 +08:00
Yang Luo
30a14ff54a Fix null issue in getDefaultApplication() 2023-07-02 09:44:48 +08:00
June
8080b10b3b
feat: show code signin page with password disabled (#2021) 2023-06-28 00:38:48 +08:00
Trần Thanh Tịnh
cd7589775c
feat: replace all panic by response err (#1993)
* fix: missing return after response error

* feat: handle error in frontend

* feat: disable loading and catch org edit error

* chore: i18 for error message

* chore: remove break line

* feat: application catching error
2023-06-27 21:33:47 +08:00
Yaodong Yu
8ede4993af feat: specify login organization 2023-05-27 19:02:54 +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
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
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
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
0d12972e92 Fix "auto single OAuth signin doesn't work" bug 2023-04-17 00:38:48 +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
337ee2faef
feat: fix the bug that autoSignin generates two callback AJAX calls (#1682) 2023-03-24 23:17:54 +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
28d24cc913 Improve i18n 2023-03-18 12:18:42 +08:00
Yaodong Yu
90f8eba02d
feat: can send Aliyun test SMS now (#1651) 2023-03-13 17:48:58 +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
e50c832ff9 Fix login width 2023-03-02 20:49:13 +08:00
Yang Luo
4806e76cf6 Fix demo mode default login 2023-02-18 23:43:22 +08:00
Yaodong Yu
eb72c9f273
feat: support multiple country codes for sending SMS (#1557)
* feat: support multiple country code

* feat: improve UI

* feat: migrate accountItem

* fix: Aliyun compatible

* fix: phone validate

* fix: typo
2023-02-16 22:53:28 +08:00
Yaodong Yu
950a274b23
fix: region don't display in userEditPage (#1544) 2023-02-12 18:56:56 +08:00
Yaodong Yu
95b32d5ebf
feat: support customize theme (#1500)
* refactor: simplify functions and improve variable naming

* feat: add themeEditor component

* feat: support customize theme

* chore: resolve conflict and add LICENCE

* chore: format code

* refactor: use icon replace background url

* feat: improve organization and application theme editor
2023-02-01 22:06:40 +08:00
Chell
457e6208ad
feat: terms of use auto selected (#1485) 2023-01-19 20:31:21 +08:00
Chell
d10b1347a8
feat: add terms of use in signin page (#1476)
* feat: extract terms of use renderer

* fix: layout

* fix: form styling

* fix: required state

* feat: application terms of use setting

* fix: refactor getTermsOfUseContent

* fix: refactor renderers
2023-01-19 18:39:24 +08:00
Yaodong Yu
eae3b0d367
feat: fix saml login failed by using oauth (#1443) 2023-01-03 19:42:12 +08:00
Yaodong Yu
86ae97d1e5
feat: fix the bug that spin is always showing when response error (#1424) 2022-12-24 17:55:36 +08:00
Yaodong Yu
6ea73e3eca
fix: show background image in preview (#1425) 2022-12-24 17:47:05 +08:00