887 Commits

Author SHA1 Message Date
hsluoyz
d0e243fca3
Merge pull request #23 from Kininaru/master
feat: added avatar tailoring and uploading
2021-03-17 13:25:53 +08:00
Kininaru
1908f528c8 feat: added avatar tailoring and uploading
Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed type errors

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed the wrong folder

Signed-off-by: Kininaru <shiftregister233@outlook.com>

rewrite login check logic, added unix time to avatar url

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed a bug about strconv

Signed-off-by: Kininaru <shiftregister233@outlook.com>

supported oss

Signed-off-by: Kininaru <shiftregister233@outlook.com>

disabled oss provide qiniu

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Fixed avatar url error

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Fixed avatar length bug

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Fixed avatar length bug

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed oss.conf

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Put uploading avatar into UserEditPage

Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed avatar dir

Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed avatar in main.go

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Made CropperDiv a reusable component, and updated README for OSS config

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Convert ts to js

Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed ts

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fix: set avatar link to string 255

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fix: updated yarn lock

Signed-off-by: Kininaru <shiftregister233@outlook.com>

add: Casbin license

Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-03-17 13:19:23 +08:00
Yang Luo
4e22e0523d Rename redirectUrl to redirectUri. 2021-03-15 00:01:21 +08:00
Yang Luo
df948e9e34 Fix JWT token bugs. 2021-03-14 23:08:08 +08:00
Yang Luo
f014554415 Generate real access token. 2021-03-14 22:48:09 +08:00
Yang Luo
1fd6ee388c Add /api/oauth/code API. 2021-03-14 18:18:03 +08:00
Yang Luo
202a94a8e5 Add /api/oauth/token API. 2021-03-14 00:18:11 +08:00
Yang Luo
85523fa9d4 Add token pages. 2021-03-14 00:00:29 +08:00
Yang Luo
64c9548019 Update license header. 2021-03-13 23:09:14 +08:00
Yang Luo
5e04b8c726 Add HomepageUrl and Description to app. 2021-03-06 21:50:48 +08:00
Yang Luo
45ec95b859 Add RedirectUrls to app. 2021-03-06 21:41:24 +08:00
Yang Luo
9e8bde509a Add clientId and clientSecret to app. 2021-03-06 16:39:17 +08:00
Yang Luo
ba4185c9b1 Add AuthzFilter. 2021-02-28 20:23:50 +08:00
Yang Luo
dfa77ab25d Add GoogleIdProvider. 2021-02-21 23:51:40 +08:00
Yang Luo
60ad52f7ae Add User.isGlobalAdmin 2021-02-15 22:14:19 +08:00
Yang Luo
d44a5ee2c1 Update app default logo URL. 2021-02-15 17:19:48 +08:00
Yang Luo
abe1e5eccb Add initBuiltInApplication(). 2021-02-15 10:32:14 +08:00
Yang Luo
e4778b967f Add dbName config. 2021-02-15 10:11:26 +08:00
Yang Luo
e71311b1af Add InitDb(). 2021-02-15 10:05:14 +08:00
Yang Luo
65eee22099 Check user under org. 2021-02-14 21:45:40 +08:00
Yang Luo
40587f35e3 Add user's Affiliation and IsAdmin. 2021-02-14 13:43:55 +08:00
Yang Luo
4b66c24bb6 Add app's EnablePassword. 2021-02-14 10:56:37 +08:00
Yang Luo
2dd4afbe7b Fix github login. 2021-02-14 01:04:51 +08:00
Yang Luo
c81118feff Add github oauth. 2021-02-14 00:22:24 +08:00
Yang Luo
ea09beffe2 Show oauth logos. 2021-02-13 23:00:43 +08:00
Yang Luo
6e015a959f Add user's id. 2021-02-13 20:10:41 +08:00
Yang Luo
9677282017 Add user's avatar. 2021-02-13 14:49:31 +08:00
Yang Luo
7304e62f95 Add login and account pages. 2021-02-13 01:33:06 +08:00
Yang Luo
cdc1445883 Fix login. 2021-02-13 00:11:12 +08:00
Yang Luo
8790e95147 Add Organization to Application. 2021-02-11 23:51:48 +08:00
Yang Luo
3ea58a0cdc Add account APIs. 2021-02-11 22:56:08 +08:00
Yang Luo
6459926a0f Add application logo. 2021-01-12 22:44:26 +08:00
Yang Luo
84c1f2634e Add application list and edit pages. 2020-12-20 23:24:09 +08:00
Yang Luo
b9adda2277 Add provider list and edit pages. 2020-12-20 21:25:23 +08:00
Yang Luo
f0692985f1 Add organization list and edit pages. 2020-12-20 20:31:48 +08:00
Yang Luo
6be01cc77c Improve user pages. 2020-10-21 00:23:39 +08:00
Yang Luo
b5eb673c81 Add user list and edit pages. 2020-10-20 23:14:03 +08:00