Redirect users to SLO at the IdP after logging them out of Mastodon. (#24020)
This commit is contained in:
		
							parent
							
								
									23bce96f0c
								
							
						
					
					
						commit
						cfc04637b5
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -61,8 +61,12 @@ class ApplicationController < ActionController::Base
 | 
			
		|||
  end
 | 
			
		||||
 | 
			
		||||
  def after_sign_out_path_for(_resource_or_scope)
 | 
			
		||||
    if ENV['OMNIAUTH_ONLY'] == 'true' && ENV['OIDC_ENABLED'] == 'true'
 | 
			
		||||
      '/auth/auth/openid_connect/logout'
 | 
			
		||||
    else
 | 
			
		||||
      new_user_session_path
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  protected
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue