-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to abort with details fixed minor issues with abort and…
… client getting abort details
- Loading branch information
Showing
7 changed files
with
171 additions
and
8 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
24 changes: 24 additions & 0 deletions
24
tests/Clients/AbortAfterAuthenticateWithDetailsAuthProviderClient.php
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,24 @@ | ||
<?php | ||
|
||
class AbortAfterAuthenticateWithDetailsAuthProviderClient extends \Thruway\Authentication\AbstractAuthProviderClient { | ||
/** | ||
* @return string | ||
*/ | ||
public function getMethodName() | ||
{ | ||
return 'abortafterauthenticatewithdetails'; | ||
} | ||
|
||
public function preProcessAuthenticate(array $args) { | ||
return [ | ||
"FAILURE", | ||
[ | ||
"abort_uri" => "my.custom.abort.uri.2", | ||
"details" => [ | ||
"message" => "My custom abort message 2" | ||
] | ||
] | ||
]; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
tests/Clients/AbortAfterHelloWithDetailsAuthProviderClient.php
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,24 @@ | ||
<?php | ||
|
||
class AbortAfterHelloWithDetailsAuthProviderClient extends \Thruway\Authentication\AbstractAuthProviderClient { | ||
/** | ||
* @return string | ||
*/ | ||
public function getMethodName() | ||
{ | ||
return 'abortafterhellowithdetails'; | ||
} | ||
|
||
public function processHello(array $args) { | ||
return [ | ||
"FAILURE", | ||
[ | ||
"abort_uri" => "my.custom.abort.uri", | ||
"details" => [ | ||
"message" => "My custom abort message" | ||
] | ||
] | ||
]; | ||
} | ||
|
||
} |
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