graph: refactor auth and middlewares

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2021-07-21 08:54:19 +00:00
parent 1af75187c1
commit 5070941dc4
8 changed files with 141 additions and 72 deletions
+6
View File
@@ -63,6 +63,11 @@ type Reva struct {
Address string
}
// TokenManager is the config for using the reva token manager
type TokenManager struct {
JWTSecret string
}
type Spaces struct {
WebDavBase string
}
@@ -79,6 +84,7 @@ type Config struct {
Ldap Ldap
OpenIDConnect OpenIDConnect
Reva Reva
TokenManager TokenManager
Spaces Spaces
Context context.Context