mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-02-23 17:32:00 +00:00
fix: ensure service configured check is set to true when service is
configured
This commit is contained in:
@@ -62,6 +62,8 @@ func (ldap *LdapService) Init() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
ldap.isConfigured = true
|
||||
|
||||
// Check whether authentication with client certificate is possible
|
||||
if ldap.config.AuthCert != "" && ldap.config.AuthKey != "" {
|
||||
cert, err := tls.LoadX509KeyPair(ldap.config.AuthCert, ldap.config.AuthKey)
|
||||
|
||||
@@ -110,6 +110,8 @@ func (service *OIDCService) Init() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
service.isConfigured = true
|
||||
|
||||
// Ensure issuer is https
|
||||
uissuer, err := url.Parse(service.config.Issuer)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user