casbin / casbin-hub

The hub for Casbin
https://dashboard.casbin.com
Apache License 2.0
87 stars 46 forks source link

Using an authentication header instead using the access_token query parameter #136

Closed Xiaoyang-Gu closed 3 years ago

Xiaoyang-Gu commented 3 years ago

Signed-off-by: guxiaoyang_s20_307 guxiaoyang@bupt.edu.cn

Fix: https://github.com/casbin/casbin-dashboard/issues/135

Description :

Add access_token into http header when access the GitHub API to avoid the error [E] [account.go:97] json: cannot unmarshal object into Go value of type []controllers.userEmailFromGithub, fixed #135 .

Screenshot of changes :

Please ensure Checkmark the following :

Xiaoyang-Gu commented 3 years ago

@hsluoyz Please review!

Xiaoyang-Gu commented 3 years ago

@BetaCat0 @GopherJ Please review!

Xiaoyang-Gu commented 3 years ago

@BetaCat0 I have remove the hard-coding method temporarily.