lib/rodauth/features/oidc.rb in rodauth-oauth-0.9.0 vs lib/rodauth/features/oidc.rb in rodauth-oauth-0.9.1
- old
+ new
@@ -232,12 +232,11 @@
links: [{
rel: webfinger_relation,
href: authorization_server_url
}]
})
- response.write(json_payload)
- request.halt
+ return_response(json_payload)
end
end
end
def check_csrf?
@@ -531,9 +530,9 @@
response["Access-Control-Allow-Origin"] = "*"
response["Access-Control-Allow-Methods"] = "GET, OPTIONS"
response["Access-Control-Max-Age"] = "3600"
response.status = 200
- request.halt
+ return_response
end
end
end