summaryrefslogtreecommitdiff
path: root/vendor/OAuth/OAuth2/Service/Exception
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/OAuth2/Service/Exception
parent9531e439cd99fb7dbcfb039f422f1d1ba414ec30 (diff)
Add Google authentication
Diffstat (limited to 'vendor/OAuth/OAuth2/Service/Exception')
-rwxr-xr-xvendor/OAuth/OAuth2/Service/Exception/InvalidAccessTypeException.php12
-rwxr-xr-xvendor/OAuth/OAuth2/Service/Exception/InvalidAuthorizationStateException.php10
-rwxr-xr-xvendor/OAuth/OAuth2/Service/Exception/InvalidScopeException.php17
-rwxr-xr-xvendor/OAuth/OAuth2/Service/Exception/MissingRefreshTokenException.php17
4 files changed, 56 insertions, 0 deletions
diff --git a/vendor/OAuth/OAuth2/Service/Exception/InvalidAccessTypeException.php b/vendor/OAuth/OAuth2/Service/Exception/InvalidAccessTypeException.php
new file mode 100755
index 00000000..398df2fd
--- /dev/null
+++ b/vendor/OAuth/OAuth2/Service/Exception/InvalidAccessTypeException.php
@@ -0,0 +1,12 @@
+<?php
+
+namespace OAuth\OAuth2\Service\Exception;
+
+use OAuth\Common\Exception\Exception;
+
+/**
+ * Exception thrown when an invalid accessType for the Google Service is specified
+ */
+class InvalidAccessTypeException extends Exception
+{
+}
diff --git a/vendor/OAuth/OAuth2/Service/Exception/InvalidAuthorizationStateException.php b/vendor/OAuth/OAuth2/Service/Exception/InvalidAuthorizationStateException.php
new file mode 100755
index 00000000..fe9d550a
--- /dev/null
+++ b/vendor/OAuth/OAuth2/Service/Exception/InvalidAuthorizationStateException.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace OAuth\OAuth2\Service\Exception;
+
+/**
+ * Exception thrown when the state parameter received during the authorization process is invalid.
+ */
+class InvalidAuthorizationStateException extends \Exception
+{
+}
diff --git a/vendor/OAuth/OAuth2/Service/Exception/InvalidScopeException.php b/vendor/OAuth/OAuth2/Service/Exception/InvalidScopeException.php
new file mode 100755
index 00000000..c6a51c88
--- /dev/null
+++ b/vendor/OAuth/OAuth2/Service/Exception/InvalidScopeException.php
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * @author David Desberg <david@daviddesberg.com>
+ * Released under the MIT license.
+ */
+
+namespace OAuth\OAuth2\Service\Exception;
+
+use OAuth\Common\Exception\Exception;
+
+/**
+ * Exception thrown when a scope provided to a service is invalid.
+ */
+class InvalidScopeException extends Exception
+{
+}
diff --git a/vendor/OAuth/OAuth2/Service/Exception/MissingRefreshTokenException.php b/vendor/OAuth/OAuth2/Service/Exception/MissingRefreshTokenException.php
new file mode 100755
index 00000000..21eece6a
--- /dev/null
+++ b/vendor/OAuth/OAuth2/Service/Exception/MissingRefreshTokenException.php
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * @author David Desberg <david@daviddesberg.com>
+ * Released under the MIT license.
+ */
+
+namespace OAuth\OAuth2\Service\Exception;
+
+use OAuth\Common\Exception\Exception;
+
+/**
+ * Exception thrown when service is requested to refresh the access token but no refresh token can be found.
+ */
+class MissingRefreshTokenException extends Exception
+{
+}