Did you know ... | Search Documentation: |
ax.pl -- Attribute Exchange library |
This library can be used to create HTTP request parameters and analyse form-data for attribute exchange. Attribute exchange (AX) is used by OpenID and OAuth to fetch attributes for accounts, such as the real username or e-mail address.
Alias(Value[, Options])
. Options
include:
if_available
.required
. This is the default.For example:
?- http_ax_attributes([ nickname(Nick), email(Email, [required]) ], Params). Params = [ 'openid.ax.mode' = fetch_request, 'openid.ax.type.nickname' = 'http://axschema.org/namePerson/friendly', 'openid.ax.type.email' = 'http://axschema.org/contact/email', 'openid.ax.required' = email, 'openid.ax.if_available' = nickname ].
Note that Google federated login only supports email
,
country
, language
, firstname
and lastname
.
Note that we assume we get the same alias names as we used for requesting the data. Not sure whether this is true.