Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
6a6c13a8
Commit
6a6c13a8
authored
6 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Fix negotiate for old ui
parent
4238c9b9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/negotiate/lib/Auth/Source/Negotiate.php
+1
-4
1 addition, 4 deletions
modules/negotiate/lib/Auth/Source/Negotiate.php
modules/negotiate/templates/redirect.php
+11
-0
11 additions, 0 deletions
modules/negotiate/templates/redirect.php
with
12 additions
and
4 deletions
modules/negotiate/lib/Auth/Source/Negotiate.php
+
1
−
4
View file @
6a6c13a8
...
...
@@ -49,7 +49,6 @@ class Negotiate extends \SimpleSAML\Auth\Source
if
(
!
extension_loaded
(
'krb5'
))
{
throw
new
\Exception
(
'KRB5 Extension not installed'
);
}
// call the parent constructor first, as required by the interface
parent
::
__construct
(
$info
,
$config
);
...
...
@@ -242,15 +241,13 @@ class Negotiate extends \SimpleSAML\Auth\Source
$config
=
\SimpleSAML\Configuration
::
getInstance
();
$url
=
htmlspecialchars
(
\SimpleSAML\Module
::
getModuleURL
(
'negotiate/backend.php'
,
$params
));
$json_url
=
json_encode
(
$url
);
header
(
'HTTP/1.1 401 Unauthorized'
);
header
(
'WWW-Authenticate: Negotiate'
,
false
);
$t
=
new
\SimpleSAML\XHTML\Template
(
$config
,
'negotiate:redirect.
twig
'
);
$t
=
new
\SimpleSAML\XHTML\Template
(
$config
,
'negotiate:redirect.
php
'
);
$t
->
data
[
'baseurlpath'
]
=
\SimpleSAML\Module
::
getModuleURL
(
'negotiate'
);
$t
->
data
[
'url'
]
=
$url
;
$t
->
data
[
'json_url'
]
=
$json_url
;
$t
->
show
();
}
...
...
This diff is collapsed.
Click to expand it.
modules/negotiate/templates/redirect.php
0 → 100644
+
11
−
0
View file @
6a6c13a8
<!DOCTYPE HTML>
<html
lang=
"en-US"
>
<head>
<script
src=
"
<?php
echo
$this
->
data
[
'baseurlpath'
];
?>
/assets/js/redirect.js"
></script>
<title>
Redirect to login
</title>
</head>
<body>
<p>
Your browser seems to have Javascript disabled. Please click
<a
id=
"redirect"
href=
"
<?php
echo
$this
->
data
[
'url'
];
?>
"
>
here
</a>
.
</p>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment