mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-1580 Federated auth redesign
This commit is contained in:
+13
-8
@@ -235,14 +235,6 @@ public class WebSession implements DBASession, DBAAuthCredentialsProvider, IAdap
|
||||
refreshSessionAuth();
|
||||
|
||||
initNavigatorModel();
|
||||
|
||||
for (WebSessionHandlerDescriptor hd : WebHandlerRegistry.getInstance().getSessionHandlers()) {
|
||||
try {
|
||||
hd.getInstance().handleSessionAuth(this);
|
||||
} catch (Exception e) {
|
||||
log.error("Error calling session handler '" + hd.getId() + "'", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void initNavigatorModel() {
|
||||
@@ -767,6 +759,19 @@ public class WebSession implements DBASession, DBAAuthCredentialsProvider, IAdap
|
||||
synchronized (authTokens) {
|
||||
Collections.addAll(authTokens, tokens);
|
||||
}
|
||||
|
||||
notifySessionAuthChange();
|
||||
}
|
||||
|
||||
public void notifySessionAuthChange() {
|
||||
// Notify handlers about auth change
|
||||
for (WebSessionHandlerDescriptor hd : WebHandlerRegistry.getInstance().getSessionHandlers()) {
|
||||
try {
|
||||
hd.getInstance().handleSessionAuth(this);
|
||||
} catch (Exception e) {
|
||||
log.error("Error calling session handler '" + hd.getId() + "'", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void removeAuthInfo(WebAuthInfo oldAuthInfo) {
|
||||
|
||||
Reference in New Issue
Block a user