1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* This file is part of graze/gigya-client |
4
|
|
|
* |
5
|
|
|
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
6
|
|
|
* |
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
8
|
|
|
* file that was distributed with this source code. |
9
|
|
|
* |
10
|
|
|
* @license https://github.com/graze/gigya-client/blob/master/LICENSE.md |
11
|
|
|
* @link https://github.com/graze/gigya-client |
12
|
|
|
*/ |
13
|
|
|
|
14
|
|
|
namespace Graze\Gigya\Endpoint; |
15
|
|
|
|
16
|
|
|
use Graze\Gigya\Gigya; |
17
|
|
|
use Graze\Gigya\Response\ResponseInterface; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* Class Saml. |
21
|
|
|
* |
22
|
|
|
* |
23
|
|
|
* @link http://developers.gigya.com/display/GD/FIdM+SAML+REST |
24
|
|
|
* |
25
|
|
|
* @method ResponseInterface delIdP(array $params = [], array $options = []) @link |
26
|
|
|
* http://developers.gigya.com/display/GD/fidm.saml.delIdP+REST |
27
|
|
|
* @method ResponseInterface getConfig(array $params = [], array $options = []) @link |
28
|
|
|
* http://developers.gigya.com/display/GD/fidm.saml.getConfig+REST |
29
|
|
|
* @method ResponseInterface getRegisteredIdPs(array $params = [], array $options = []) @link |
30
|
|
|
* http://developers.gigya.com/display/GD/fidm.saml.getRegisteredIdPs+REST |
31
|
|
|
* @method ResponseInterface importIdPMetadata(array $params = [], array $options = []) @link |
32
|
|
|
* http://developers.gigya.com/display/GD/fidm.saml.importIdPMetadata+REST |
33
|
|
|
* @method ResponseInterface registerIdP(array $params = [], array $options = []) @link |
34
|
|
|
* http://developers.gigya.com/display/GD/fidm.saml.registerIdP+REST |
35
|
|
|
* @method ResponseInterface setConfig(array $params = [], array $options = []) @link |
36
|
|
|
* http://developers.gigya.com/display/GD/fidm.saml.setConfig+REST |
37
|
|
|
*/ |
38
|
|
|
class Saml extends Client |
39
|
|
|
{ |
40
|
|
|
/** |
41
|
|
|
* {@inheritdoc} |
42
|
|
|
* |
43
|
|
|
* @return string |
44
|
|
|
*/ |
45
|
2 |
|
public function getMethodNamespace() |
46
|
|
|
{ |
47
|
2 |
|
return Gigya::NAMESPACE_FIDM_SAML; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @return SamlIdp |
52
|
|
|
*/ |
53
|
1 |
|
public function idp() |
54
|
|
|
{ |
55
|
1 |
|
return $this->endpointFactory(SamlIdp::class); |
56
|
|
|
} |
57
|
|
|
} |
58
|
|
|
|