app/controllers/oauth2/authentication_controller.rb in vidibus-oauth2_server-0.0.6 vs app/controllers/oauth2/authentication_controller.rb in vidibus-oauth2_server-0.0.7
- old
+ new
@@ -20,10 +20,14 @@
redirect_to(uri)
end
def access_token
token = Oauth2Token.find!(params)
- render :text => {:access_token => token.token}.to_uri, :type => :url_encoded_form, :status => :ok
+ render({
+ :text => {:access_token => token.token}.to_uri,
+ :content_type => 'application/x-www-form-urlencoded',
+ :status => :ok
+ })
end
protected
# Ensures that the type of flow is supported