openstackid/app/libs/oauth2/responses/OAuth2IndirectErrorResponse.php
smarcet ad1844984e Implements: blueprint openid-oauth2-implicit-client-flow
Change-Id: Iee3c9412a3f75a4aba5421e8c5f881a60b396df0
2014-01-06 18:07:55 -03:00

18 lines
452 B
PHP

<?php
namespace oauth2\responses;
use oauth2\OAuth2Protocol;
use openid\responses\OpenIdIndirectResponse;
class OAuth2IndirectErrorResponse extends OAuth2IndirectResponse {
public function __construct($error, $return_to=null){
$this[OAuth2Protocol::OAuth2Protocol_Error] = $error;
$this->return_to = $return_to;
}
public function setError($error){
$this[OAuth2Protocol::OAuth2Protocol_Error] = $error;
}
}