1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-10 21:52:01 +02:00

Auth Generate, make secret optional

This commit is contained in:
Ben Toogood
2020-04-01 17:20:02 +01:00
parent d577c32563
commit df8c0bb5e1
6 changed files with 79 additions and 59 deletions

View File

@@ -32,7 +32,7 @@ type Auth interface {
// Options set for auth
Options() Options
// Generate a new account
Generate(id, secret string, opts ...GenerateOption) (*Account, error)
Generate(id string, opts ...GenerateOption) (*Account, error)
// Grant access to a resource
Grant(role string, res *Resource) error
// Revoke access to a resource