From c93a6838123fee254e37d9f907e4ee622a439a65 Mon Sep 17 00:00:00 2001 From: wewe0901 Date: Thu, 21 Mar 2019 11:10:26 +0800 Subject: [PATCH 1/2] New Auth method should add in storage getter When implement the new authentication method we should add it to storage getter also. Otherwise, will get invalid auth method when use filebrowser config get. --- contributing/authentication-provider.md | 1 + 1 file changed, 1 insertion(+) diff --git a/contributing/authentication-provider.md b/contributing/authentication-provider.md index 255c739..de30052 100644 --- a/contributing/authentication-provider.md +++ b/contributing/authentication-provider.md @@ -14,6 +14,7 @@ After implementing the interface you should: 1. Add it to [`auth` directory](https://github.com/filebrowser/filebrowser/blob/master/auth). 2. Add it to the [configuration parser](https://github.com/filebrowser/filebrowser/blob/master/cmd/config.go) for the CLI. +3. Add it to the [auth db gtter](https://github.com/filebrowser/filebrowser/blob/master/storage/bolt/auth.go). If you need to add more flags, please update the function `addConfigFlags`. From d06d20724bd08d9802a71628658c0e28008e2670 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 19 Apr 2019 16:49:37 +0100 Subject: [PATCH 2/2] feat: use function name --- contributing/authentication-provider.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributing/authentication-provider.md b/contributing/authentication-provider.md index de30052..6d50705 100644 --- a/contributing/authentication-provider.md +++ b/contributing/authentication-provider.md @@ -14,7 +14,7 @@ After implementing the interface you should: 1. Add it to [`auth` directory](https://github.com/filebrowser/filebrowser/blob/master/auth). 2. Add it to the [configuration parser](https://github.com/filebrowser/filebrowser/blob/master/cmd/config.go) for the CLI. -3. Add it to the [auth db gtter](https://github.com/filebrowser/filebrowser/blob/master/storage/bolt/auth.go). +3. Add it to the [`authBackend.Get`](https://github.com/filebrowser/filebrowser/blob/master/storage/bolt/auth.go). If you need to add more flags, please update the function `addConfigFlags`.