Social Login Application

Last modified by Felipe Ascensio on 2024/09/09 00:03

userUI for social login application
TypeXAR
CategoryApplication
Developed by

Jerome Velociter, Sidali Djebloun

Active Installs1
Rating
2 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

Login to XWiki from various social sites, including Facebook, Twitter but also Google and Google Apps. Based on socialauth.

Screenshots

sociallogin.png

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

For versions 2.0 and above

  • Setup all API keys you plan on using in a oauth_consumer.properties file, in your /WEB-INF/ directory. Check-out the sample properties file> to know which format is expected for each OAuth consumer.
  • Set the authclass parameter (xwiki.authentication.authclass) to "org.xwiki.social.authentication.internal.SocialAuthServiceImpl" in xwiki.cfg. If you want a global multi-wiki setup (only global users, set xwiki.authentication.socialLogin.globalConfiguration to "1" also in xwiki.cfg.
  • Add XWiki.SocialLoginTranslations as an internationalization bundle in your wiki administration (in section Localization)
  • Copy the login.vm template available at https://raw.github.com/jvelo/xwiki-social-login/xwiki-social-login-2.0/xwiki-social-login-ui/src/main/webapp/templates/login.vm in your webapp templates folder, or in your custom skin
  • Visit the SocialLogin administration section and list all providers you want to expose, one on each line, in the order you want them to appear on the login form. For example :
    Facebook
    Twitter
    Foursquare
  • You are done

Older versions

  • Setup all API keys you plan on using in a oauth_consumer.properties file, in your /WEB-INF/ directory. Check-out the sample properties file to know which format is expected for each OAuth consumer.
  • Add XWiki.SocialLoginTranslations as an internationalization bundle in your wiki administration (in section Localization)
  • Copy the login.vm template available at https://raw.github.com/jvelo/xwiki-social-login/xwiki-social-login-0.2/src/main/webapp/templates/login.vm in your webapp templates folder, or in your custom skin
  • Visit the SocialLogin administration section and list all providers you want to expose, one on each line, in the order you want them to appear on the login form. For example :
    Facebook
    Twitter
    Foursquare
  • You are done

Release Notes

v2.6

v2.5

v2.4

v2.3

v2.2

v2.1

v2.0.2

Fixes for playing well with extension manager

v2.0.1

Bug fixes + new APIs

v2.0

Revamp as a true authenticator, now based on the Social Login Module.

Dependencies

Dependencies for this extension (org.xwiki.contrib:xwiki-social-login-ui 2.6):

Get Connected