evaluate role in higher layer

This commit is contained in:
2023-11-06 22:09:29 +01:00
parent ab2d527dbd
commit f6120640d2
5 changed files with 33 additions and 16 deletions

View File

@ -20,7 +20,7 @@ type Provider interface {
Name() string
GetLoginURL(redirectURI, state string) string
ExchangeCode(redirectURI, code string) (string, error)
GetUser(token string) (User, error)
GetUser(token string) (User, Roles, error)
Setup(*logrus.Logger) error
}