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
4dc98dfb
Unverified
Commit
4dc98dfb
authored
6 years ago
by
Tim van Dijen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Set method visibility /
PSR-2
parent
a6e5d08a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/oauth/libextinc/OAuth.php
+5
-5
5 additions, 5 deletions
modules/oauth/libextinc/OAuth.php
with
5 additions
and
5 deletions
modules/oauth/libextinc/OAuth.php
+
5
−
5
View file @
4dc98dfb
...
...
@@ -65,7 +65,7 @@ class OAuthToken {
"&oauth_callback_confirmed=true"
;
}
function
__toString
()
{
public
function
__toString
()
{
return
$this
->
to_string
();
}
}
...
...
@@ -134,7 +134,7 @@ abstract class OAuthSignatureMethod
*/
class
OAuthSignatureMethod_HMAC_SHA1
extends
OAuthSignatureMethod
{
function
get_name
()
public
function
get_name
()
{
return
"HMAC-SHA1"
;
}
...
...
@@ -286,7 +286,7 @@ class OAuthRequest
/**
* attempt to build up a request from what was passed to the server
*/
public
static
function
from_request
(
$http_method
=
NULL
,
$http_url
=
null
,
$parameters
=
null
)
public
static
function
from_request
(
$http_method
=
null
,
$http_url
=
null
,
$parameters
=
null
)
{
$scheme
=
(
!
isset
(
$_SERVER
[
'HTTPS'
])
||
$_SERVER
[
'HTTPS'
]
!=
"on"
)
?
'http'
...
...
@@ -339,7 +339,7 @@ class OAuthRequest
/**
* pretty much a helper function to set up the request
*/
public
static
function
from_consumer_and_token
(
$consumer
,
$token
,
$http_method
,
$http_url
,
$parameters
=
null
)
public
static
function
from_consumer_and_token
(
$consumer
,
$token
,
$http_method
,
$http_url
,
$parameters
=
null
)
{
$parameters
=
(
$parameters
)
?
$parameters
:
array
();
$defaults
=
array
(
"oauth_version"
=>
OAuthRequest
::
$version
,
...
...
@@ -767,7 +767,7 @@ class OAuthServer
*/
private
function
check_nonce
(
$consumer
,
$token
,
$nonce
,
$timestamp
)
{
if
(
!
$nonce
)
{
if
(
!
$nonce
)
{
throw
new
OAuthException
(
'Missing nonce parameter. The parameter is required'
);
...
...
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