Home | History | Annotate | Download | only in lightopenid

Lines Matching refs:sreg

30  * AX and SREG extensions are supported.
36 * If the server supports only SREG or OpenID 1.1, these are automaticaly
37 * mapped to SREG names, so that user doesn't have to know anything about the server.
54 , $ax = false, $sreg = false, $data;
212 # We ignore it for MyOpenID, as it breaks sreg if using OpenID 2.0
223 # Does the server advertise support for either AX or SREG?
225 $this->sreg = strpos($content, '<Type>http://openid.net/sreg/1.0</Type>')
226 || strpos($content, '<Type>http://openid.net/extensions/sreg/1.1</Type>');
246 # AX can be used only with OpenID 2.0, so checking only SREG
247 $this->sreg = strpos($content, '<Type>http://openid.net/sreg/1.0</Type>')
248 || strpos($content, '<Type>http://openid.net/extensions/sreg/1.1</Type>');
308 # We always use SREG 1.1, even if the server is advertising only support for 1.0.
311 $params['openid.ns.sreg'] = 'http://openid.net/extensions/sreg/1.1';
313 $params['openid.sreg.required'] = array();
316 $params['openid.sreg.required'][] = self::$ax_to_sreg[$required];
318 $params['openid.sreg.required'] = implode(',', $params['openid.sreg.required']);
322 $params['openid.sreg.optional'] = array();
325 $params['openid.sreg.optional'][] = self::$ax_to_sreg[$optional];
327 $params['openid.sreg.optional'] = implode(',', $params['openid.sreg.optional']);
402 if ($this->sreg) {
405 if (!$this->ax && !$this->sreg) {
406 # If OP doesn't advertise either SREG, nor AX, let's send them both
522 # Found the AX attributes, so no need to scan for SREG.
536 # The field name isn't part of the SREG spec, so we ignore it.
544 * Gets AX/SREG attributes provided by OP. should be used only after successful validaton.
548 * * SREG names will be mapped to AX names.
558 # We search for both AX and SREG attributes, with AX taking precedence.