Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Test_IdP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Trust and Identity Incubator
Test_IdP
Commits
a90fd3d6
Commit
a90fd3d6
authored
3 years ago
by
Martin van Es
Browse files
Options
Downloads
Patches
Plain Diff
Improve explanations
parent
30288798
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+36
-0
36 additions, 0 deletions
.gitignore
modules/customauth/templates/authenticate.tpl.php
+1
-1
1 addition, 1 deletion
modules/customauth/templates/authenticate.tpl.php
modules/customauth/www/authpage.php
+4
-1
4 additions, 1 deletion
modules/customauth/www/authpage.php
with
41 additions
and
2 deletions
.gitignore
0 → 100644
+
36
−
0
View file @
a90fd3d6
composer.json
composer.lock
CONTRIBUTING.md
COPYING
LICENSE
package-lock.json
package.json
README.org
SECURITY.md
TESTING.md
webpack.config.js
attributemap/
bin/
cert/
config-templates/
config/
dictionaries/
docs/
extra/
lib/
locales/
log/
metadata-templates/
metadata/
modules/
phpcs.xml
phpunit.xml
routing/
schemas/
src/
templates/
tests/
vendor/
www/
This diff is collapsed.
Click to expand it.
modules/customauth/templates/authenticate.tpl.php
+
1
−
1
View file @
a90fd3d6
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
user
=
this
.
value
;
user
=
this
.
value
;
for
(
let
key
in
users
[
user
])
{
for
(
let
key
in
users
[
user
])
{
attribute
=
users
[
user
][
key
];
attribute
=
users
[
user
][
key
];
attributes
+=
"
<input id=chkbx_
"
+
key
+
"
type=checkbox name=keys[
"
+
key
+
"
]
"
+
(
keys
[
key
]?
'
checked
'
:
''
)
+
"
value='
"
+
users
[
user
][
key
]
+
"
'><span title=
\"
"
+
message
[
key
]
+
"
\"
>
"
+
key
+
"
</span><br>
\n
"
;
attributes
+=
"
<input id=chkbx_
"
+
key
+
"
type=checkbox name=keys[
"
+
key
+
"
]
"
+
(
keys
[
key
]?
'
checked
'
:
''
)
+
"
value='
"
+
users
[
user
][
key
]
+
"
'><span title=
'
"
+
message
[
key
]
+
"
'
>
"
+
key
+
"
</span><br>
\n
"
;
};
};
$
(
'
#explanation
'
).
html
(
explanations
[
user
]);
$
(
'
#explanation
'
).
html
(
explanations
[
user
]);
$
(
'
#attributes
'
).
html
(
attributes
);
$
(
'
#attributes
'
).
html
(
attributes
);
...
...
This diff is collapsed.
Click to expand it.
modules/customauth/www/authpage.php
+
4
−
1
View file @
a90fd3d6
...
@@ -37,7 +37,10 @@ if (!preg_match('@State=(.*)@', $returnTo, $matches)) {
...
@@ -37,7 +37,10 @@ if (!preg_match('@State=(.*)@', $returnTo, $matches)) {
// our list of users.
// our list of users.
$raw_users
=
json_decode
(
file_get_contents
(
'/opt/simplesamlphp/config/logins.json'
),
true
);
$raw_users
=
json_decode
(
file_get_contents
(
'/opt/simplesamlphp/config/logins.json'
),
true
);
$attributes
=
json_decode
(
file_get_contents
(
'/opt/simplesamlphp/config/attributes.json'
),
true
);
$attr_raw
=
json_decode
(
file_get_contents
(
'/opt/simplesamlphp/config/attributes.json'
),
true
);
foreach
(
$attr_raw
as
$attribute
=>
$value
)
{
$attributes
[
$attribute
]
=
htmlentities
(
$value
,
ENT_QUOTES
);
}
$users
=
[];
$users
=
[];
$explanations
=
[];
$explanations
=
[];
...
...
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