Skip to content

Instantly share code, notes, and snippets.

@uira
Created July 14, 2018 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uira/5c2f32cb60aaec3dc4fcfd3687fac16a to your computer and use it in GitHub Desktop.
Save uira/5c2f32cb60aaec3dc4fcfd3687fac16a to your computer and use it in GitHub Desktop.
object(WP_Error)#744 (2) {
["errors"]=>
array(1) {
["redirect_uri_mismatch"]=>
array(1) {
[0]=>
string(43) "The redirect URI is missing or do not match"
}
}
["error_data"]=>
array(1) {
["redirect_uri_mismatch"]=>
array(6) {
["headers"]=>
object(Requests_Utility_CaseInsensitiveDictionary)#745 (1) {
["data":protected]=>
array(12) {
["server"]=>
string(21) "nginx/1.10.3 (Ubuntu)"
["content-type"]=>
string(16) "application/json"
["cache-control"]=>
string(8) "no-cache"
["date"]=>
string(29) "Sat, 14 Jul 2018 18:13:06 GMT"
["x-content-type-options"]=>
string(7) "nosniff"
["x-frame-options"]=>
string(4) "DENY"
["content-security-policy-report-only"]=>
string(581) "default-src 'self'; script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ 'unsafe-inline' 'unsafe-eval' 'self'; object-src 'none'; style-src https://www.google.com/ https://ajax.googleapis.com/ 'unsafe-inline' 'self'; img-src *; frame-src https://s-static.ak.facebook.com http://static.ak.facebook.com https://www.facebook.com; font-src https://themes.googleusercontent.com/ 'self'; report-uri /nelmio/csp/report"
["x-content-security-policy-report-only"]=>
string(581) "default-src 'self'; script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ 'unsafe-inline' 'unsafe-eval' 'self'; object-src 'none'; style-src https://www.google.com/ https://ajax.googleapis.com/ 'unsafe-inline' 'self'; img-src *; frame-src https://s-static.ak.facebook.com http://static.ak.facebook.com https://www.facebook.com; font-src https://themes.googleusercontent.com/ 'self'; report-uri /nelmio/csp/report"
["content-security-policy"]=>
string(319) "script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ https://ajax.googleapis.com/ 'unsafe-inline' 'unsafe-eval' 'self'; report-uri /nelmio/csp/report"
["x-content-security-policy"]=>
string(319) "script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ https://ajax.googleapis.com/ 'unsafe-inline' 'unsafe-eval' 'self'; report-uri /nelmio/csp/report"
["x-xss-protection"]=>
string(1) "0"
["set-cookie"]=>
string(86) "session_state=44b2b1d2dea1787baa240b210a6897df398dcef462b87108bd524c30d3bb9176; path=/"
}
}
["body"]=>
string(128) "{"error":"redirect_uri_mismatch","error_description":"The redirect URI is missing or do not match","error_uri":"#section-4.1.3"}"
["response"]=>
array(2) {
["code"]=>
int(400)
["message"]=>
string(11) "Bad Request"
}
["cookies"]=>
array(1) {
[0]=>
object(WP_Http_Cookie)#746 (5) {
["name"]=>
string(13) "session_state"
["value"]=>
string(64) "44b2b1d2dea1787baa240b210a6897df398dcef462b87108bd524c30d3bb9176"
["expires"]=>
NULL
["path"]=>
string(1) "/"
["domain"]=>
string(9) "id.org.br"
}
}
["filename"]=>
NULL
["http_response"]=>
object(WP_HTTP_Requests_Response)#747 (5) {
["response":protected]=>
object(Requests_Response)#748 (10) {
["body"]=>
string(128) "{"error":"redirect_uri_mismatch","error_description":"The redirect URI is missing or do not match","error_uri":"#section-4.1.3"}"
["raw"]=>
string(2441) "HTTP/1.1 400 Bad Request
Server: nginx/1.10.3 (Ubuntu)
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Cache-Control: no-cache
Date: Sat, 14 Jul 2018 18:13:06 GMT
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Content-Security-Policy-Report-Only: default-src 'self'; script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ 'unsafe-inline' 'unsafe-eval' 'self'; object-src 'none'; style-src https://www.google.com/ https://ajax.googleapis.com/ 'unsafe-inline' 'self'; img-src *; frame-src https://s-static.ak.facebook.com http://static.ak.facebook.com https://www.facebook.com; font-src https://themes.googleusercontent.com/ 'self'; report-uri /nelmio/csp/report
X-Content-Security-Policy-Report-Only: default-src 'self'; script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ 'unsafe-inline' 'unsafe-eval' 'self'; object-src 'none'; style-src https://www.google.com/ https://ajax.googleapis.com/ 'unsafe-inline' 'self'; img-src *; frame-src https://s-static.ak.facebook.com http://static.ak.facebook.com https://www.facebook.com; font-src https://themes.googleusercontent.com/ 'self'; report-uri /nelmio/csp/report
Content-Security-Policy: script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ https://ajax.googleapis.com/ 'unsafe-inline' 'unsafe-eval' 'self'; report-uri /nelmio/csp/report
X-Content-Security-Policy: script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ https://ajax.googleapis.com/ 'unsafe-inline' 'unsafe-eval' 'self'; report-uri /nelmio/csp/report
X-XSS-Protection: 0
Set-Cookie: session_state=44b2b1d2dea1787baa240b210a6897df398dcef462b87108bd524c30d3bb9176; path=/
{"error":"redirect_uri_mismatch","error_description":"The redirect URI is missing or do not match","error_uri":"#section-4.1.3"}"
["headers"]=>
object(Requests_Response_Headers)#749 (1) {
["data":protected]=>
array(12) {
["server"]=>
array(1) {
[0]=>
string(21) "nginx/1.10.3 (Ubuntu)"
}
["content-type"]=>
array(1) {
[0]=>
string(16) "application/json"
}
["cache-control"]=>
array(1) {
[0]=>
string(8) "no-cache"
}
["date"]=>
array(1) {
[0]=>
string(29) "Sat, 14 Jul 2018 18:13:06 GMT"
}
["x-content-type-options"]=>
array(1) {
[0]=>
string(7) "nosniff"
}
["x-frame-options"]=>
array(1) {
[0]=>
string(4) "DENY"
}
["content-security-policy-report-only"]=>
array(1) {
[0]=>
string(581) "default-src 'self'; script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ 'unsafe-inline' 'unsafe-eval' 'self'; object-src 'none'; style-src https://www.google.com/ https://ajax.googleapis.com/ 'unsafe-inline' 'self'; img-src *; frame-src https://s-static.ak.facebook.com http://static.ak.facebook.com https://www.facebook.com; font-src https://themes.googleusercontent.com/ 'self'; report-uri /nelmio/csp/report"
}
["x-content-security-policy-report-only"]=>
array(1) {
[0]=>
string(581) "default-src 'self'; script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ 'unsafe-inline' 'unsafe-eval' 'self'; object-src 'none'; style-src https://www.google.com/ https://ajax.googleapis.com/ 'unsafe-inline' 'self'; img-src *; frame-src https://s-static.ak.facebook.com http://static.ak.facebook.com https://www.facebook.com; font-src https://themes.googleusercontent.com/ 'self'; report-uri /nelmio/csp/report"
}
["content-security-policy"]=>
array(1) {
[0]=>
string(319) "script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ https://ajax.googleapis.com/ 'unsafe-inline' 'unsafe-eval' 'self'; report-uri /nelmio/csp/report"
}
["x-content-security-policy"]=>
array(1) {
[0]=>
string(319) "script-src https://connect.facebook.net/ http://connect.facebook.net/ http://www.google-analytics.com/ https://www.google-analytics.com/ http://browser-update.org/ https://www.google.com/ https://www.gstatic.com/recaptcha/ https://ajax.googleapis.com/ 'unsafe-inline' 'unsafe-eval' 'self'; report-uri /nelmio/csp/report"
}
["x-xss-protection"]=>
array(1) {
[0]=>
string(1) "0"
}
["set-cookie"]=>
array(1) {
[0]=>
string(86) "session_state=44b2b1d2dea1787baa240b210a6897df398dcef462b87108bd524c30d3bb9176; path=/"
}
}
}
["status_code"]=>
int(400)
["protocol_version"]=>
float(1.1)
["success"]=>
bool(false)
["redirects"]=>
int(0)
["url"]=>
string(38) "https://id.org.br/openid/connect/token"
["history"]=>
array(0) {
}
["cookies"]=>
object(Requests_Cookie_Jar)#750 (1) {
["cookies":protected]=>
array(1) {
["session_state"]=>
object(Requests_Cookie)#751 (5) {
["name"]=>
string(13) "session_state"
["value"]=>
string(64) "44b2b1d2dea1787baa240b210a6897df398dcef462b87108bd524c30d3bb9176"
["attributes"]=>
object(Requests_Utility_CaseInsensitiveDictionary)#752 (1) {
["data":protected]=>
array(2) {
["path"]=>
string(1) "/"
["domain"]=>
string(9) "id.org.br"
}
}
["flags"]=>
array(4) {
["creation"]=>
int(1531591986)
["last-access"]=>
int(1531591986)
["persistent"]=>
bool(false)
["host-only"]=>
bool(true)
}
["reference_time"]=>
int(1531591986)
}
}
}
}
["filename":protected]=>
NULL
["data"]=>
NULL
["headers"]=>
NULL
["status"]=>
NULL
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment