mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Revert "DEV: Let OmniAuth strategies return auth result. (#7833)"
This reverts commit dc5eb7655148742593257dbe690d829c264f26d2. It is better to keep any custom redirect logic within omniauth, without relying on the app
This commit is contained in:
@ -19,15 +19,6 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
skip_before_action :verify_authenticity_token, only: :complete
|
||||
|
||||
def complete
|
||||
if result = request.env["omniauth.result"]
|
||||
@auth_result = result
|
||||
|
||||
return respond_to do |format|
|
||||
format.html
|
||||
format.json { render json: @auth_result.to_client_hash }
|
||||
end
|
||||
end
|
||||
|
||||
auth = request.env["omniauth.auth"]
|
||||
raise Discourse::NotFound unless request.env["omniauth.auth"]
|
||||
|
||||
|
Reference in New Issue
Block a user