mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-18 20:18:15 +02:00
[#1377] added Authentik OAuth2 provider
Co-authored-by: Marc Singer <ms@pr0.tech>
This commit is contained in:
1 parent
fd97732d4d
commit
6d08a5f36f
41 files changed
+261
-116
No files matched your search
@@ -135,4 +135,13 @@ func TestNewProviderByName(t *testing.T) {
|
||||
if _, ok := p.(*auth.Livechat); !ok {
|
||||
t.Error("Expected to be instance of *auth.Livechat")
|
||||
}
|
||||
|
||||
// authentik
|
||||
p, err = auth.NewProviderByName(auth.NameAuthentik)
|
||||
if err != nil {
|
||||
t.Errorf("Expected nil, got error %v", err)
|
||||
}
|
||||
if _, ok := p.(*auth.Authentik); !ok {
|
||||
t.Error("Expected to be instance of *auth.Authentik")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user