go-http-file-server icon indicating copy to clipboard operation
go-http-file-server copied to clipboard

role based access control

Open steven-sun opened this issue 1 year ago • 1 comments

真不错! 请问是否能支持根据角色进行权限管理,认证采用header,jwt或其他常用形式,这样就能集成到更多需要文件管理的项目里。

steven-sun avatar Apr 30 '24 02:04 steven-sun

目前暂未支持,但是可以在自己的项目里添加认证功能,然后以中间件的方式调用ghfs,示例: https://github.com/mjpclab/use-ghfs-example/blob/main/use-as-middleware.go

marjune163 avatar Aug 10 '24 02:08 marjune163