-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Staffbase/add-module-exceptions
Add module exceptions
- Loading branch information
Showing
13 changed files
with
114 additions
and
32 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
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,27 @@ | ||
<?php | ||
/** | ||
* SSO Session implementation, based on this doc: | ||
* https://developers.staffbase.com/api/plugin-sso/ | ||
* | ||
* PHP version 5.5.9 | ||
* | ||
* @category Authentication | ||
* @copyright 2017-2019 Staffbase, GmbH. | ||
* @author Vitaliy Ivanov | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 | ||
* @link https://github.com/staffbase/plugins-sdk-php | ||
*/ | ||
|
||
namespace Staffbase\plugins\sdk\Exceptions; | ||
|
||
/** | ||
* Class SSOAuthenticationException | ||
* | ||
* An SSO Exception type which indicates | ||
* a failure during the authentication process | ||
* caused by invalid input. | ||
* | ||
* Can be used to identify cases which can | ||
* be handled with a soft http error eg.: 401. | ||
*/ | ||
class SSOAuthenticationException extends SSOException {} |
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,25 @@ | ||
<?php | ||
/** | ||
* SSO Session implementation, based on this doc: | ||
* https://developers.staffbase.com/api/plugin-sso/ | ||
* | ||
* PHP version 5.5.9 | ||
* | ||
* @category Authentication | ||
* @copyright 2017-2019 Staffbase, GmbH. | ||
* @author Vitaliy Ivanov | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 | ||
* @link https://github.com/staffbase/plugins-sdk-php | ||
*/ | ||
|
||
namespace Staffbase\plugins\sdk\Exceptions; | ||
|
||
use Exception; | ||
|
||
/** | ||
* Class SSOException | ||
* | ||
* A general SSO Exception type to group | ||
* exceptions from this library. | ||
*/ | ||
class SSOException extends Exception {} |
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
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
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
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
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