Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Trust and Identity Incubator
Test_IdP
Commits
a90fd3d6
Commit
a90fd3d6
authored
Jul 20, 2021
by
Martin van Es
Browse files
Improve explanations
parent
30288798
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
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/
modules/customauth/templates/authenticate.tpl.php
View file @
a90fd3d6
...
...
@@ -99,7 +99,7 @@
user
=
this
.
value
;
for
(
let
key
in
users
[
user
])
{
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
]);
$
(
'
#attributes
'
).
html
(
attributes
);
...
...
modules/customauth/www/authpage.php
View file @
a90fd3d6
...
...
@@ -37,7 +37,10 @@ if (!preg_match('@State=(.*)@', $returnTo, $matches)) {
// our list of users.
$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
=
[];
$explanations
=
[];
...
...
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