feat(auth): 添加JWT与Casbin权限认证功能
This commit is contained in:
1 parent
fe86c081f4
commit
16a9f64109
9 files changed
+236
-27
No files matched your search
@@ -0,0 +1,9 @@
|
||||
package conf
|
||||
|
||||
type JwtConfig struct {
|
||||
AccessExpire int `mapstructure:"access_expire" yaml:"access_expire"`
|
||||
RefreshExpire int `mapstructure:"refresh_expire" yaml:"refresh_expire"`
|
||||
AccessSecret string `mapstructure:"access_secret" yaml:"access_secret"`
|
||||
RefreshSecret string `mapstructure:"refresh_secret" yaml:"refresh_secret"`
|
||||
Issuer string `mapstructure:"issuer" yaml:"issuer"`
|
||||
}
|
||||
Reference in new issue
Block a user