app/controllers/pages_controller.rb
# Deletes the local session and sends the browser to the logout endpoint
# so Azure AD has a chance to handle its own logout flow
# After Azure AD is done, it redirects the browser to the value in
# post_logout_redirect_uri, which happens to be our start screen
Deletes the local session and sends the browser to the logout endpoint
so Azure AD has a chance to handle its own logout flow
After Azure AD is done, it redirects the browser to the value in
post_logout_redirect_uri, which happens to be our start screen
Deletes the local session and sends the browser to the logout endpoint so Azure AD has a chance to handle its own logout flow After Azure AD is done it redirects the browser to the value in post_logout_redirect_uri which happens to be our start screen
def disconnect
    reset_session
    redirect = "#{ENV['LOGOUT_ENDPOINT']}"\
               "?post_logout_redirect_uri=#{ERB::Util.url_encode(root_url)}"
    logger.info 'REDIRECT: ' + redirect
    redirect_to redirect
  end
def disconnect reset_session redirect = "#{ENV['LOGOUT_ENDPOINT']}" "?post_logout_redirect_uri=#{ERB::Util.url_encode(root_url)}" logger . info 'REDIRECT: ' + redirect redirect_to redirect end
Deletes the local session and sends the browser to the logout endpoint
so Azure AD has a chance to handle its own logout flow
After Azure AD is done, it redirects the browser to the value in
post_logout_redirect_uri, which happens to be our start screen
Deletes the local session and sends the browser to the logout endpoint so Azure AD has a chance to handle its own logout flow After Azure AD is done it redirects the browser to the value in post_logout_redirect_uri which happens to be our start screen