This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
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 zendframework/zendframework#5901 from danizord/fea…
…ture/authentication-service-interface Add AuthenticationServiceInterface
- Loading branch information
111 parents
e0114df
+
cb65c9a
+
0f058eb
+
88238c7
+
6d3555d
+
bf1b675
+
8918c09
+
1528233
+
a6f33f5
+
aee8483
+
9b1ad90
+
92baf0c
+
782d34b
+
da3b5e2
+
8c5486e
+
08b5959
+
29cb9fc
+
a79175d
+
186ebc9
+
3af3a6e
+
3d17935
+
df05eb8
+
e421e0f
+
00bb39e
+
78b260b
+
a6c654b
+
6dcb060
+
ba14e90
+
dc7d636
+
06375a2
+
53fdaa9
+
80ccc9b
+
fa80520
+
4009aca
+
ad280cb
+
b0d3db4
+
9b28224
+
49a871c
+
4145ab4
+
ff8e603
+
abd0527
+
9dc2f89
+
20317fc
+
da6fd5b
+
1702218
+
487a6e9
+
6051222
+
80b8984
+
a1a90b3
+
1d03186
+
b2e7f7a
+
a185b42
+
533f958
+
cfc5d6f
+
da7d3f0
+
d11e4f8
+
598cfab
+
0955e03
+
8e03b2a
+
c8941af
+
1589b26
+
6e2a869
+
3c9218d
+
fed889d
+
3355853
+
89e0cd8
+
e795f2b
+
16438c0
+
c93bd38
+
ac50ffc
+
a9bc506
+
eef23f4
+
fcda91a
+
056a288
+
607ac6f
+
30f7828
+
9d2a936
+
3747749
+
17325fb
+
4e43d4b
+
0dcaf98
+
3f8e8ac
+
32407f8
+
6e0bb7b
+
c865c5f
+
95c45dc
+
4829cce
+
89ebbef
+
99e35fb
+
7636944
+
0b01291
+
54ce65a
+
387aa24
+
f045e85
+
0c22da5
+
c6ac9e7
+
6a67213
+
1acb365
+
6b26972
+
ef091c1
+
53a73c5
+
cf7d965
+
84df2d2
+
e26606b
+
b41134a
+
a68cf64
+
8b40f40
+
3726c82
+
02d5321
+
4040578
+
1d02fff
commit 32f3538
Showing
2 changed files
with
45 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace Zend\Authentication; | ||
|
||
/** | ||
* Provides an API for authentication and identity management | ||
*/ | ||
interface AuthenticationServiceInterface | ||
{ | ||
/** | ||
* Authenticates and provides an authentication result | ||
* | ||
* @return Result | ||
*/ | ||
public function authenticate(); | ||
|
||
/** | ||
* Returns true if and only if an identity is available | ||
* | ||
* @return bool | ||
*/ | ||
public function hasIdentity(); | ||
|
||
/** | ||
* Returns the authenticated identity or null if no identity is available | ||
* | ||
* @return mixed|null | ||
*/ | ||
public function getIdentity(); | ||
|
||
/** | ||
* Clears the identity | ||
* | ||
* @return void | ||
*/ | ||
public function clearIdentity(); | ||
} |