/swish/lib/plugin/login.pl
All Application Manual Name SummaryHelp

  • lib
    • plugin
      • login.pl -- SWISH login support
        • login_button//1
        • reply_logged_in/1
        • reply_logged_in_page/1
        • login_continue_button//0
        • reply_logged_out/1
        • current_user_info/2
        • li_login_button//1
      • es_swish.pl -- SWISH integration of Elastic Search
      • elastic.pl -- Core Elastic search interface
      • email.pl -- Email plugin for SWISH
      • hdt.pl -- Access RDF through HDTs
      • notify.pl -- SWISH notifications
      • profile.pl -- User profile configuration
 reply_logged_in(+Options) is det
 reply_logged_in_page(+Options) is det
Reply with an HTML document that the login succeeded. This is normally called from the protocol-specific login handler to indicate that the login succeeded. Options:
identity_provider(+Provider)
Indicate the identity provider that did the login. Provider is a term for html//1.
user(+User)
User id of the identified user.
name(+Name)
Common name of the identified user.
user_info(+Dict)
Information provided by the identity provider.

At least one of user(User) or name(Name) must be present.

The predicate reply_logged_in/1 calls the hook swish_config:reply_logged_in/1. This hook is provided for interacting with a user profile manager.