1 | <?php |
||
26 | class ServiceProvider extends BaseServiceProvider |
||
27 | { |
||
28 | /** |
||
29 | * @return bool |
||
30 | */ |
||
31 | public function mayUseGateway() |
||
35 | |||
36 | /** |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function mayUseSecondFactorOnly() |
||
43 | |||
44 | /** |
||
45 | * @param string $nameId |
||
46 | * @return bool |
||
47 | */ |
||
48 | public function isAllowedToUseSecondFactorOnlyFor($nameId) |
||
70 | |||
71 | /** |
||
72 | * Determine the ACS location to send the response to. |
||
73 | * |
||
74 | * The get getAssertionConsumerUrl() method returns a trusted ACS location |
||
75 | * for this service provider. This value is set when the service provider |
||
76 | * is "internal", for example when it is configured in yaml |
||
77 | * configuration. |
||
78 | * |
||
79 | * Methods like Surfnet\SamlBundle\Http\PostBinding::processResponse use |
||
80 | * this trusted value. When the ServiceProvider is external, this value is |
||
81 | * empty and the ACS location found in the AuthnRequest should be used, if |
||
82 | * it matches one of the configured allowed ACS locations for the service |
||
83 | * provider. This methods checks if a given URL matches the allowed URLs. |
||
84 | * |
||
85 | * @param LoggerInterface $logger |
||
86 | * @param $acsLocationInAuthnRequest |
||
87 | * @return string |
||
88 | */ |
||
89 | public function determineAcsLocation(LoggerInterface $logger, $acsLocationInAuthnRequest) |
||
107 | |||
108 | /** |
||
109 | * Determine the ACS location for ADFS to send the response to. |
||
110 | * |
||
111 | * This method is similar to determineAcsLocation(), but does not check |
||
112 | * for the requested ACS location to be identical to one of the configured |
||
113 | * ACS locations, but only if matches the first part of an allowed URL. |
||
114 | * |
||
115 | * For example, ADFS might send an ACS location like: |
||
116 | * |
||
117 | * https://example.com/consume-assertion?key=value |
||
118 | * |
||
119 | * Above URL is allowed if one of the configured URLs is: |
||
120 | * |
||
121 | * https://example.com/consume-assertion |
||
122 | * |
||
123 | * Or: |
||
124 | * |
||
125 | * https://example.com/consume |
||
126 | * |
||
127 | * |
||
128 | * @param LoggerInterface $logger |
||
129 | * @param $acsLocationInAuthnRequest |
||
130 | * @return string |
||
131 | */ |
||
132 | public function determineAcsLocationforAdfs(LoggerInterface $logger, $acsLocationInAuthnRequest) |
||
149 | } |
||
150 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.