mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
Subscription checks
This commit is contained in:
parent
6e4c5194e2
commit
e116d3b000
20 changed files with 211 additions and 76 deletions
|
@ -23,6 +23,7 @@ func StripAuthSecrets(r *env.Runtime, provider, config string) string {
|
|||
switch provider {
|
||||
case auth.AuthProviderDocumize:
|
||||
return config
|
||||
|
||||
case auth.AuthProviderKeycloak:
|
||||
c := auth.KeycloakConfig{}
|
||||
err := json.Unmarshal([]byte(config), &c)
|
||||
|
@ -41,6 +42,7 @@ func StripAuthSecrets(r *env.Runtime, provider, config string) string {
|
|||
}
|
||||
|
||||
return string(j)
|
||||
|
||||
case auth.AuthProviderLDAP:
|
||||
c := auth.LDAPConfig{}
|
||||
err := json.Unmarshal([]byte(config), &c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue