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
b76ea672
Unverified
Commit
b76ea672
authored
6 years ago
by
Tim van Dijen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
PSR-2
parent
6d2ac8b4
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
modules/oauth/libextinc/OAuth.php
+10
-6
10 additions, 6 deletions
modules/oauth/libextinc/OAuth.php
with
10 additions
and
6 deletions
modules/oauth/libextinc/OAuth.php
+
10
−
6
View file @
b76ea672
...
...
@@ -12,13 +12,15 @@ if (!class_exists('OAuthException')) {
/*
* Generic exception class
*/
class
OAuthException
extends
Exception
{
class
OAuthException
extends
Exception
{
// pass
}
}
if
(
!
class_exists
(
'OAuthConsumer'
))
{
class
OAuthConsumer
{
class
OAuthConsumer
{
public
$key
;
public
$secret
;
public
$callback_url
;
...
...
@@ -37,7 +39,8 @@ if (!class_exists('OAuthConsumer')) {
}
}
class
OAuthToken
{
class
OAuthToken
{
// access tokens and request tokens
public
$key
;
public
$secret
;
...
...
@@ -65,7 +68,8 @@ class OAuthToken {
"&oauth_callback_confirmed=true"
;
}
public
function
__toString
()
{
public
function
__toString
()
{
return
$this
->
to_string
();
}
}
...
...
@@ -273,7 +277,7 @@ class OAuthRequest
public
static
$version
=
'1.0'
;
public
static
$POST_INPUT
=
'php://input'
;
public
function
__construct
(
$http_method
,
$http_url
,
$parameters
=
null
)
public
function
__construct
(
$http_method
,
$http_url
,
$parameters
=
null
)
{
$parameters
=
(
$parameters
)
?
$parameters
:
array
();
$parameters
=
array_merge
(
OAuthUtil
::
parse_parameters
(
parse_url
(
$http_url
,
PHP_URL_QUERY
)),
$parameters
);
...
...
@@ -747,7 +751,7 @@ class OAuthServer
*/
private
function
check_timestamp
(
$timestamp
)
{
if
(
!
$timestamp
)
{
if
(
!
$timestamp
)
{
throw
new
OAuthException
(
'Missing timestamp 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