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
0
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
75eba308
Commit
75eba308
authored
6 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for modules/authorize
parent
f0e198e7
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/authorize/lib/Auth/Process/Authorize.php
+3
-1
3 additions, 1 deletion
modules/authorize/lib/Auth/Process/Authorize.php
modules/authorize/templates/authorize_403.php
+1
-1
1 addition, 1 deletion
modules/authorize/templates/authorize_403.php
with
4 additions
and
2 deletions
modules/authorize/lib/Auth/Process/Authorize.php
+
3
−
1
View file @
75eba308
...
...
@@ -99,6 +99,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter
* Apply filter to validate attributes.
*
* @param array &$request The current request
* @return void
*/
public
function
process
(
&
$request
)
{
...
...
@@ -108,7 +109,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter
$attributes
=
&
$request
[
'Attributes'
];
// Store the rejection message array in the $request
if
(
!
empty
(
$this
->
reject_msg
))
{
if
(
!
empty
(
$this
->
reject_msg
))
{
$request
[
'authprocAuthorize_reject_msg'
]
=
$this
->
reject_msg
;
}
...
...
@@ -149,6 +150,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter
* permission logic.
*
* @param array $request
* @return void
*/
protected
function
unauthorized
(
&
$request
)
{
...
...
This diff is collapsed.
Click to expand it.
modules/authorize/templates/authorize_403.php
+
1
−
1
View file @
75eba308
...
...
@@ -14,7 +14,7 @@ $this->data['403_header'] = $this->t('{authorize:Authorize:403_header}');
$this
->
data
[
'403_text'
]
=
$this
->
t
(
'{authorize:Authorize:403_text}'
);
if
(
array_key_exists
(
'reject_msg'
,
$this
->
data
))
{
if
(
isset
(
$this
->
data
[
'reject_msg'
][
$this
->
getLanguage
()]))
{
if
(
isset
(
$this
->
data
[
'reject_msg'
][
$this
->
getLanguage
()]))
{
$this
->
data
[
'403_text'
]
=
$this
->
data
[
'reject_msg'
][
$this
->
getLanguage
()];
}
}
...
...
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