mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-12 23:37:00 +08:00
CB-960 Multiple auth providers logins in config mode must reset previous token
This commit is contained in:
+4
@@ -108,6 +108,10 @@ public class WebServiceAuthImpl implements DBWServiceAuth {
|
||||
String userId;
|
||||
DBASession authSession;
|
||||
if (configMode) {
|
||||
if (webSession.getUser() != null) {
|
||||
// Already logged in - remove auth token
|
||||
webSession.removeAuthInfo(providerId);
|
||||
}
|
||||
if (authProviderExternal != null) {
|
||||
userId = authProviderExternal.validateLocalAuth(
|
||||
webSession.getProgressMonitor(),
|
||||
|
||||
Reference in New Issue
Block a user