app/controllers/oauth2/authentication_controller.rb in vidibus-oauth2_server-0.0.1 vs app/controllers/oauth2/authentication_controller.rb in vidibus-oauth2_server-0.0.2
- old
+ new
@@ -15,10 +15,10 @@
args = params.slice(:client_id, :redirect_url)
args[:user_id] = current_user.uuid
token = Oauth2Token.create!(args)
uri_params = { :code => token.code }
uri_params[:state] = params[:state] if params.has_key?(:state)
- uri = build_uri(params[:redirect_url], uri_params)
+ uri = params[:redirect_url].with_params(uri_params)
redirect_to(uri)
end
def access_token
token = Oauth2Token.find!(params)