[#1377] added Authentik OAuth2 provider

Co-authored-by: Marc Singer <ms@pr0.tech>
This commit is contained in:
Gani GeorgievandMarc Singer committed 2023-01-16 11:50:45 +02:00
1 parent fd97732d4d
commit 6d08a5f36f
41 files changed
+261 -116

No files matched your search

+9
View File
@@ -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")
}
}