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
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
19e96997
Unverified
Commit
19e96997
authored
7 years ago
by
Tim van Dijen
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Set visibility
parent
e07e95e9
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
+9
-9
9 additions, 9 deletions
modules/oauth/libextinc/OAuth.php
with
9 additions
and
9 deletions
modules/oauth/libextinc/OAuth.php
+
9
−
9
View file @
19e96997
...
...
@@ -213,13 +213,13 @@ abstract class OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod
// (3) some sort of specific discovery code based on request
//
// Either way should return a string representation of the certificate
protected
abstract
function
fetch_public_cert
(
&
$request
);
abstract
protected
function
fetch_public_cert
(
&
$request
);
// Up to the SP to implement this lookup of keys. Possible ideas are:
// (1) do a lookup in a table of trusted certs keyed off of consumer
//
// Either way should return a string representation of the certificate
protected
abstract
function
fetch_private_cert
(
&
$request
);
abstract
protected
function
fetch_private_cert
(
&
$request
);
public
function
build_signature
(
$request
,
$consumer
,
$token
)
{
...
...
@@ -273,7 +273,7 @@ class OAuthRequest
public
static
$version
=
'1.0'
;
public
static
$POST_INPUT
=
'php://input'
;
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
);
...
...
@@ -553,7 +553,7 @@ class OAuthServer
protected
$data_store
;
function
__construct
(
$data_store
)
public
function
__construct
(
$data_store
)
{
$this
->
data_store
=
$data_store
;
}
...
...
@@ -788,27 +788,27 @@ class OAuthServer
class
OAuthDataStore
{
function
lookup_consumer
(
$consumer_key
)
public
function
lookup_consumer
(
$consumer_key
)
{
// implement me
}
function
lookup_token
(
$consumer
,
$token_type
,
$token
)
public
function
lookup_token
(
$consumer
,
$token_type
,
$token
)
{
// implement me
}
function
lookup_nonce
(
$consumer
,
$token
,
$nonce
,
$timestamp
)
public
function
lookup_nonce
(
$consumer
,
$token
,
$nonce
,
$timestamp
)
{
// implement me
}
function
new_request_token
(
$consumer
,
$callback
=
null
)
public
function
new_request_token
(
$consumer
,
$callback
=
null
)
{
// return a new token attached to this consumer
}
function
new_access_token
(
$token
,
$consumer
,
$verifier
=
null
)
public
function
new_access_token
(
$token
,
$consumer
,
$verifier
=
null
)
{
// return a new access token attached to this consumer
// for the user associated with this token if the request token
...
...
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