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
b4c6200c
Unverified
Commit
b4c6200c
authored
5 years ago
by
Tim van Dijen
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Set default algo to SHA256
Like we were supposed to do three versions ago
parent
e2eebd8e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Auth/TimeLimitedToken.php
+2
-4
2 additions, 4 deletions
lib/SimpleSAML/Auth/TimeLimitedToken.php
with
2 additions
and
4 deletions
lib/SimpleSAML/Auth/TimeLimitedToken.php
+
2
−
4
View file @
b4c6200c
...
...
@@ -34,16 +34,14 @@ class TimeLimitedToken
/**
* Create a new time-limited token.
*
* Please note that the default algorithm will change in SSP 1.15.0 to SHA-256 instead of SHA-1.
*
* @param int $lifetime Token lifetime in seconds. Defaults to 900 (15 min).
* @param string $secretSalt A random and unique salt per installation. Defaults to the salt in the configuration.
* @param int $skew The allowed time skew (in seconds) to correct clock deviations. Defaults to 1 second.
* @param string $algo The hash algorithm to use to generate the tokens. Defaults to SHA-
1
.
* @param string $algo The hash algorithm to use to generate the tokens. Defaults to SHA-
256
.
*
* @throws \InvalidArgumentException if the given parameters are invalid.
*/
public
function
__construct
(
$lifetime
=
900
,
$secretSalt
=
null
,
$skew
=
1
,
$algo
=
'sha
1
'
)
public
function
__construct
(
$lifetime
=
900
,
$secretSalt
=
null
,
$skew
=
1
,
$algo
=
'sha
256
'
)
{
if
(
$secretSalt
===
null
)
{
$secretSalt
=
Utils\Config
::
getSecretSalt
();
...
...
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