We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 533f7ac commit f0e823eCopy full SHA for f0e823e
pkg/db/db.go
@@ -138,8 +138,12 @@ func (store *CredentialStore) GetClientWithSecret(allClients map[string]OidcClie
138
139
func (store *CredentialStore) GetClientWithoutSecret(allClients map[string]OidcClient, name string) (OidcClient, error) {
140
var client OidcClient
141
- client = allClients[name]
142
- return client, nil
+
+ if client, ok := allClients[name]; ok {
143
+ return client, nil
144
+ }
145
146
+ return client, errors.New("connection not found")
147
}
148
149
func (store *CredentialStore) ClientExists(name string) (bool, error) {
0 commit comments