3.11 library(http/http_openid): OpenID consumer and server library
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog HTTP support
        • The HTTP server libraries
          • library(http/http_openid): OpenID consumer and server library
            • openid_hook/1
            • openid_login/1
            • openid_logout/1
            • openid_logged_in/1
            • openid_user/3
            • openid_login_form//2
            • openid_verify/2
            • openid_server/3
            • openid_current_url/2
            • openid_current_host/3
            • ssl_verify/5
            • openid_authenticate/4
            • openid_server/2
            • openid_grant/1
            • openid_associate/3
            • openid_associate/4
Availability::- use_module(library(http/http_openid)).
Sourceopenid_verify(+Options, +Request)
Handle the initial login form presented to the user by the relying party (consumer). This predicate discovers the OpenID server, associates itself with this server and redirects the user's browser to the OpenID server, providing the extra openid.X name-value pairs. Options is, against the conventions, placed in front of the Request to allow for smooth cooperation with http_dispatch.pl. Options processes:
return_to(+URL)
Specifies where the OpenID provider should return to. Normally, that is the current location.
trust_root(+URL)
Specifies the openid.trust_root attribute. Defaults to the root of the current server (i.e., http://host[.port]/).
realm(+URL)
Specifies the openid.realm attribute. Default is the trust_root.
ax(+Spec)
Request the exchange of additional attributes from the identity provider. See http_ax_attributes/2 for details.

The OpenId server will redirect to the openid.return_to URL.

throws
http_reply(moved_temporary(Redirect))