CB-1580 Federated auth redesign

This commit is contained in:
Serge Rider
2022-02-04 10:31:50 +03:00
parent 84dab8a79c
commit 9b8940aeb7
@@ -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) {