Home | History | Annotate | Download | only in lightopenid

Lines Matching refs:AX

30  * AX and SREG extensions are supported.
32 * These are arrays, with values being AX schema paths (the 'path' part of the URL).
54 , $ax = false, $sreg = false, $data;
223 # Does the server advertise support for either AX or SREG?
224 $this->ax = (bool) strpos($content, '<Type>http://openid.net/srv/ax/1.0</Type>');
246 # AX can be used only with OpenID 2.0, so checking only SREG
335 $params['openid.ns.ax'] = 'http://openid.net/srv/ax/1.0';
336 $params['openid.ax.mode'] = 'fetch_request';
351 $params['openid.ax.type.' . $alias] = $ns;
355 $params['openid.ax.count.' . $alias] = $count;
358 # Don't send empty ax.requied and ax.if_available.
359 # Google and possibly other providers refuse to support ax when one of these is empty.
361 $params['openid.ax.required'] = implode(',', $required);
364 $params['openid.ax.if_available'] = implode(',', $optional);
399 if ($this->ax) {
405 if (!$this->ax && !$this->sreg) {
406 # If OP doesn't advertise either SREG, nor AX, let's send them both
467 # AX namePerson, it might containg an apostrophe, which will be escaped.
485 && $this->data['openid_ns_ax'] != 'http://openid.net/srv/ax/1.0'
487 $alias = 'ax';
489 # 'ax' prefix is either undefined, or points to another extension,
493 && $val == 'http://openid.net/srv/ax/1.0'
501 # An alias for AX schema has not been found,
502 # so there is no AX data in the OP's response
522 # Found the AX attributes, so no need to scan for SREG.
544 * Gets AX/SREG attributes provided by OP. should be used only after successful validaton.
548 * * SREG names will be mapped to AX names.
549 * * @return Array Array of attributes with keys being the AX schema names, e.g. 'contact/email'
558 # We search for both AX and SREG attributes, with AX taking precedence.