summaryrefslogtreecommitdiff
path: root/vendor/OAuth/OAuth2/Service/Exception
diff options
context:
space:
mode:
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
+{
+}