Call audit log before ending calling all sessions
This commit is contained in:
parent
1a4f3cae73
commit
1e80995c7d
|
|
@ -803,7 +803,7 @@ func (p *OAuthProxy) backendLogout(rw http.ResponseWriter, req *http.Request, si
|
|||
if providerData.BackendLogoutAllSessionsURL == "" {
|
||||
return
|
||||
}
|
||||
|
||||
p.picsAuditClient.CreateSuccessfulLogoutAuditEntry(session, req.RequestURI, req.Header.Get("edisp-org-id"))
|
||||
resp, err := PicsSignOutAllSessions(providerData.BackendLogoutAllSessionsURL, session.IntrospectClaims, session.AccessToken)
|
||||
if err != nil {
|
||||
logger.Errorf("error while calling backend logout all sessions: %v", err)
|
||||
|
|
@ -813,8 +813,6 @@ func (p *OAuthProxy) backendLogout(rw http.ResponseWriter, req *http.Request, si
|
|||
if resp.StatusCode() != 200 {
|
||||
logger.Errorf("error while calling backend logout url, returned error code %v", resp.StatusCode())
|
||||
}
|
||||
|
||||
p.picsAuditClient.CreateSuccessfulLogoutAuditEntry(session, req.RequestURI, req.Header.Get("edisp-org-id"))
|
||||
} else {
|
||||
if providerData.BackendLogoutURL == "" {
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue