Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
openid_connect
Commits
cc75d928
Commit
cc75d928
authored
Nov 17, 2014
by
pjcdawkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2362913
: fix infinite loop with r4032login module.
parent
dd4d7cc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
includes/OpenIDConnectClientBase.class.php
includes/OpenIDConnectClientBase.class.php
+2
-0
openid_connect.module
openid_connect.module
+2
-1
No files found.
includes/OpenIDConnectClientBase.class.php
View file @
cc75d928
...
...
@@ -101,6 +101,8 @@ abstract class OpenIDConnectClientBase implements OpenIDConnectClientInterface {
),
);
$endpoints
=
$this
->
getEndpoints
();
// Clear $_GET['destination'] because we need to override it.
unset
(
$_GET
[
'destination'
]);
drupal_goto
(
$endpoints
[
'authorization'
],
$url_options
);
}
...
...
openid_connect.module
View file @
cc75d928
...
...
@@ -166,7 +166,8 @@ function openid_connect_login_form($form, &$form_state) {
function
openid_connect_login_form_submit
(
&
$form
,
&
$form_state
)
{
// Save the current path in the session, so that we can redirect the user back
// there after the authorization.
$_SESSION
[
'openid_connect_destination'
]
=
request_path
();
$destination
=
drupal_get_destination
();
$_SESSION
[
'openid_connect_destination'
]
=
$destination
[
'destination'
];
$client_name
=
$form_state
[
'triggering_element'
][
'#name'
];
$client
=
openid_connect_get_client
(
$client_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment