forked from 1EdTech/lti-1-3-php-library
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MGMT-132: Add methods for validating and computing oauth_consumer_key…
…_sign
- Loading branch information
1 parent
99c825e
commit ed910da
Showing
3 changed files
with
126 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace Packback\Lti1p3; | ||
|
||
class Lti1p1Installation | ||
{ | ||
private string $oauth_consumer_key; | ||
private string $oauth_consumer_secret; | ||
|
||
public static function new() | ||
{ | ||
return new Lti1p1Installation(); | ||
} | ||
|
||
public function computeOauthConsumerKeySign (array $lti1p3LaunchData): string | ||
{ | ||
|
||
} | ||
|
||
public function getOauthConsumerKey() | ||
{ | ||
return $this->oauth_consumer_key; | ||
} | ||
|
||
public function setOauthConsumerKey($oauth_consumer_key) | ||
{ | ||
$this->oauth_consumer_key = $oauth_consumer_key; | ||
return $this; | ||
} | ||
|
||
public function getOauthConsumerSecret() | ||
{ | ||
return $this->oauth_consumer_secret; | ||
} | ||
|
||
public function setOauthConsumerSecret($oauth_consumer_secret) | ||
{ | ||
$this->oauth_consumer_secret = $oauth_consumer_secret; | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters