85 Commits

Author SHA1 Message Date
Steve0x2a
63161d6135
fix: infoflow's parameter error (#480)
* fix: missing state parameter

Signed-off-by: Steve0x2a <stevesough@gmail.com>

* fix: infoflow's parameter error

Signed-off-by: Steve0x2a <stevesough@gmail.com>

* fix: use userid instead of imid

Signed-off-by: Steve0x2a <stevesough@gmail.com>
2022-02-07 21:50:51 +08:00
Steve0x2a
f85f4c0cf8
feat: add infoflow idp support (#472)
* feat: add infoflow internal backend support

Signed-off-by: Steve0x2a <stevesough@gmail.com>

* feat: add infoflow idp support

Signed-off-by: Steve0x2a <stevesough@gmail.com>

* fix: copyright and comment

Signed-off-by: Steve0x2a <stevesough@gmail.com>
2022-02-05 21:54:38 +08:00
Gucheng Wang
034d822dd5 Fix empty UserInfo ID in wecom_internal.go 2022-01-29 10:27:45 +08:00
Gucheng Wang
a8502d1173 Fix GetIdProvider() bug. 2022-01-29 09:52:48 +08:00
Steve0x2a
c1f553440e
feat: add wecom internal support (#452)
Signed-off-by: 0x2a <stevesough@gmail.com>
2022-01-28 12:44:45 +08:00
Steve0x2a
12bc419659
fix: baidu's display name error (#440)
Signed-off-by: Steve0x2a <stevesough@gmail.com>
2022-01-23 20:32:44 +08:00
Steve0x2a
02c06bc93c
feat: add baidu support as idp (#438)
* feat: add baidu support as idp

Signed-off-by: Steve0x2a <stevesough@gmail.com>

* fix: add license

Signed-off-by: Steve0x2a <stevesough@gmail.com>
2022-01-22 19:36:44 +08:00
Gucheng Wang
c22ab44894 Update import path. 2022-01-20 14:11:46 +08:00
Steve0x2a
067ae5448f
fix: idp using goth shows wrong display name (#398)
* fix: adjust the accessToken field

Signed-off-by: 0x2a <stevesough@gmail.com>

* fix: missing name and owner

Signed-off-by: 0x2a <stevesough@gmail.com>

* fix: get wrong display name

Signed-off-by: 0x2a <stevesough@gmail.com>
2021-12-27 18:55:25 +08:00
Steve0x2a
99ef329325
feat: support mobile login with WeChat Official Accounts (#383)
* fix: adjust the accessToken field

Signed-off-by: 0x2a <stevesough@gmail.com>

* fix: missing name and owner

Signed-off-by: 0x2a <stevesough@gmail.com>

* feat: support mobile login with WeChat

Signed-off-by: 0x2a <stevesough@gmail.com>
2021-12-20 20:21:12 +08:00
Eng Zer Jun
726e4e3dc1
refactor: move from io/ioutil to io and os packages (#366)
* chore: format code by running `go fmt ./...`

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* refactor: move from io/ioutil to io and os packages

The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-12-13 09:49:43 +08:00
Steve0x2a
967113689d
feat: add three idp support by goth. (#351)
1. add 3 providers: apple, azuread(v1) and slack.
2. support importing providers from goth.

Signed-off-by: 0x2a <stevesough@gmail.com>
2021-12-10 00:55:27 +08:00
sh1luo
75e917a070 feat: add gitlab provider (#273)
Signed-off-by: sh1luo <690898835@qq.com>
2021-08-19 22:13:40 +08:00
sh1luo
c05b27c38f
feat: add lark provider (#264)
Signed-off-by: sh1luo <690898835@qq.com>
2021-08-14 16:00:38 +08:00
sh1luo
718fc4df74 fix: improve goland experience (#238)
Signed-off-by: sh1luo <690898835@qq.com>
2021-08-14 14:22:18 +08:00
sh1luo
8c66ef6860 fix: improve code specification (#231) 2021-08-14 14:18:08 +08:00
Yang Luo
629ae5a54b Improve OAuth params. 2021-08-01 14:27:53 +08:00
sh1luo
512a451800
feat: add wecom provider (#200)
Signed-off-by: sh1luo <690898835@qq.com>
2021-07-28 20:36:27 +08:00
wasabi
c963ba6098 feat: add linkedin provider
Signed-off-by: wasabi <690898835@qq.com>
2021-07-19 09:57:43 +08:00
wasabi
d14ba476b9
feat: add gitee provider (#104)
* feat: add gitee provider

Signed-off-by: wasabi <690898835@qq.com>

* Update gitee.go

Signed-off-by: wasabi <690898835@qq.com>
2021-06-14 12:53:07 +08:00
wasabi
3d3a331784 feat: add weibo provider
Signed-off-by: wasabi <690898835@qq.com>
2021-06-10 16:55:36 +08:00
wasabi
4162ab4984 feat: add dingtalk provider (#94)
* feat: add dingtalk provider

Signed-off-by: zKen <690898835@qq.com>

* fix: amend the comment

Signed-off-by: zKen <690898835@qq.com>
2021-06-09 19:53:22 +08:00
Yang Luo
ec5a574ce6 Show null provider error. 2021-06-06 11:19:28 +08:00
WindSpiritSR
6142ca52ca
feat: add facebook provider (#79)
* feat: add facebook provider

Signed-off-by: WindSpirit <simon343riley@gmail.com>

* fix: set fb id to username and reformat

Signed-off-by: WindSpirit <simon343riley@gmail.com>
2021-06-06 10:06:54 +08:00
Yang Luo
95cda41732 Improve UserInfo. 2021-05-31 01:23:32 +08:00
Yang Luo
0960578c35 Improve providers. 2021-05-31 00:24:52 +08:00
Weihao Chen
3e41ce0104
feat: add WeChatIdProvider (#62)
* feat: add WeChatIdProvider

Signed-off-by: Weihao <1340908470@qq.com>

* refactor: refactor WeChatIdProvider to suit to IdProvider interface; translate the annotation to English

Signed-off-by: Weihao <1340908470@qq.com>

* refactor: remove unnecessary comment

Signed-off-by: Weihao <1340908470@qq.com>
2021-05-17 14:17:46 +08:00
Weihao
f48e04ef15 refactor: remove ClientId/ClientSecret/RedirectUrl in IdProvider int /idp/github.go & google.go & qq.go; alter Scopes in QqIdProvider.Config: profile&email -> get_user_info
Signed-off-by: Weihao <1340908470@qq.com>
2021-05-16 00:24:36 +08:00
Yang Luo
d6c8bb87c2 Fix provider type. 2021-03-28 20:20:40 +08:00
Yang Luo
540adfed20 Improve IDP username handling. 2021-03-24 00:44:41 +08:00
Yang Luo
39d208ccd0 Fix QqIdProvider. 2021-03-23 23:48:18 +08:00
Yang Luo
c24de7d180 Change provider interface. 2021-03-23 23:23:59 +08:00
Yang Luo
fa141a0edb Add QqIdProvider. 2021-03-22 20:00:35 +08:00
Yang Luo
dfa77ab25d Add GoogleIdProvider. 2021-02-21 23:51:40 +08:00
Yang Luo
40fb336e95 Add IdProvider interface. 2021-02-21 22:33:53 +08:00