Closed sapergus closed 1 year ago
Hi @sapergus, it looks amazing and it is actually on the roadmap to allow users to have permissions to specific resources, but this is going to be implemented a bit differently. We are going to implement it in a way that on user creation you will attach a role that has permissions, this way all other adapters that will be implemented in the future (grpc/ws/etc.) we won't need to implement it again and again for each adapter
That makes sense. Looking forward to the new version.
Added configuration option so that as station can use its own authentication method. The new configuration is backward compatible with previous versions so a user who doesn't want to use the new features can still use their old configuration file.
The package github.com/tkanos/gonfig doesn't handle embedded structs, so I patch it and added the patcher version directly in conf/gonfig.go. I have informed the people behind github.com/tkanos/gonfig about the bug and how I fixed it, so maybe the'll add the fix to their package.
I have tried to document the changes and provided examples on how to use various configuration options.