summaryrefslogtreecommitdiff
path: root/vendor/OAuth/Common/Consumer/Credentials.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fguillot@users.noreply.github.com>2014-05-03 22:24:03 -0400
committerFrédéric Guillot <fguillot@users.noreply.github.com>2014-05-03 22:24:03 -0400
commit560a12f0bd6347a335f8ed5201d6d9562d03d4bc (patch)
tree00510d25c1cf5e747573543fa88d44ef003b1c9a /vendor/OAuth/Common/Consumer/Credentials.php
parent9531e439cd99fb7dbcfb039f422f1d1ba414ec30 (diff)
Add Google authentication
Diffstat (limited to 'vendor/OAuth/Common/Consumer/Credentials.php')
-rwxr-xr-xvendor/OAuth/Common/Consumer/Credentials.php60
1 files changed, 60 insertions, 0 deletions
diff --git a/vendor/OAuth/Common/Consumer/Credentials.php b/vendor/OAuth/Common/Consumer/Credentials.php
new file mode 100755
index 00000000..8e98e9fa
--- /dev/null
+++ b/vendor/OAuth/Common/Consumer/Credentials.php
@@ -0,0 +1,60 @@
+<?php
+
+namespace OAuth\Common\Consumer;
+
+/**
+ * Value object for the credentials of an OAuth service.
+ */
+class Credentials implements CredentialsInterface
+{
+ /**
+ * @var string
+ */
+ protected $consumerId;
+
+ /**
+ * @var string
+ */
+ protected $consumerSecret;
+
+ /**
+ * @var string
+ */
+ protected $callbackUrl;
+
+ /**
+ * @param string $consumerId
+ * @param string $consumerSecret
+ * @param string $callbackUrl
+ */
+ public function __construct($consumerId, $consumerSecret, $callbackUrl)
+ {
+ $this->consumerId = $consumerId;
+ $this->consumerSecret = $consumerSecret;
+ $this->callbackUrl = $callbackUrl;
+ }
+
+ /**
+ * @return string
+ */
+ public function getCallbackUrl()
+ {
+ return $this->callbackUrl;
+ }
+
+ /**
+ * @return string
+ */
+ public function getConsumerId()
+ {
+ return $this->consumerId;
+ }
+
+ /**
+ * @return string
+ */
+ public function getConsumerSecret()
+ {
+ return $this->consumerSecret;
+ }
+}