openstackid/app/libs/openid/services/IAuthService.php

42 lines
991 B
PHP

<?php
/**
* Created by JetBrains PhpStorm.
* User: smarcet
* Date: 10/15/13
* Time: 4:39 PM
* To change this template use File | Settings | File Templates.
*/
namespace openid\services;
use openid\model\IOpenIdUser;
interface IAuthService {
/**
* @return bool
*/
public function isUserLogged();
/**
* @return IOpenIdUser
*/
public function getCurrentUser();
/**
* @param $username
* @param $password
* @return mixed
*/
public function Login($username,$password);
const AuthorizationResponse_None = "None";
const AuthorizationResponse_AllowOnce = "AllowOnce";
const AuthorizationResponse_AllowForever = "AllowForever";
const AuthorizationResponse_DenyForever = "DenyForever";
const AuthorizationResponse_DenyOnce = "DenyOnce";
/**
* @return AuthorizationResponse_*
*/
public function getUserAuthorizationResponse();
public function logout();
}