You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/OAuth2.php
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ class OAuth2
130
130
constCONFIG_WWW_REALM = 'realm';
131
131
constCONFIG_ENFORCE_INPUT_REDIRECT = 'enforce_redirect'; // Set to true to enforce redirect_uri on input for both authorize and token steps.
132
132
constCONFIG_ENFORCE_STATE = 'enforce_state'; // Set to true to enforce state to be passed in authorization (see http://tools.ietf.org/html/draft-ietf-oauth-v2-21#section-10.12)
133
+
constCONFIG_RESPONSE_EXTRA_HEADERS = 'response_extra_headers'; // Add extra headers to the response
133
134
134
135
/**
135
136
* Regex to filter out the client identifier (described in Section 2 of IETF draft).
@@ -422,6 +423,7 @@ protected function setDefaultOptions()
422
423
self::CONFIG_ENFORCE_STATE => false,
423
424
self::CONFIG_SUPPORTED_SCOPES => null,
424
425
// This is expected to be passed in on construction. Scopes can be an aribitrary string.
426
+
self::CONFIG_RESPONSE_EXTRA_HEADERS => array(),
425
427
);
426
428
}
427
429
@@ -1475,11 +1477,13 @@ protected function getAuthorizationHeader(Request $request)
0 commit comments