/**
 * # Identity
 *
 * Allow users to log in with auth services that you have hooked on your app.
 * When logged in, show a micro-profile card.
 *
 * ## Examples
 *
 *     <div data-hull-widget="identity@hull"></div>
 *     <div data-hull-widget="identity@hull" data-hull-provider="instagram"></div>
 *     <div data-hull-widget="identity@hull" data-hull-provider="facebook"></div>
 *     <div data-hull-widget="identity@hull" data-hull-provider="github"></div>
 *     <div data-hull-widget="identity@hull" data-hull-provider="github,facebook"></div>
 *
 * ## Options
 *
 * - `provider`: Optional, One or more providers to log users in.
 *   If none specified, will show all configured providers for the app.
 * 
 * ## Template
 *
 * - `identity`: Show login buttons if the user isn't logged, display a micro profile card if he is.
 * 
 */
define({
  type: 'Hull',

  templates: [
    'identity'
  ],

  options:{
    provider:''
  },

  refreshEvents: ['model.hull.me.change'],

  initialize: function() {
    this.authServices = _.map(this.sandbox.config.services.types.auth, function(s) {
      return s.replace(/_app$/, '');
    });

    if (_.isEmpty(this.authServices)) {
      console.error('No Auth services configured. please add one to be able to authenticate users.');
    }
  },

  beforeRender: function(data) {

    // If providers are specified, then use only those. else use all configuredauthServices
    if(this.options.provider){
      data.providers = this.options.provider.replace(' ','').split(',');
    } else {
      data.providers = this.authServices || [];
    }

    // If I'm logged in, then create an array of logged In providers
    if(this.loggedIn()){
      data.loggedInProviders = _.keys(this.loggedIn());
    } else {
      data.loggedInProviders = [];
    }


    // Create an array of logged out providers.
    data.loggedOut = _.difference(data.providers, data.loggedInProviders);
    data.matchingProviders = _.intersection(data.providers, data.loggedInProviders);

    return data;
  }
});

@@ -705,17 +705,16 @@
  app.%0A *
- 
 %0A * ## T
@@ -827,17 +827,16 @@
 e is.%0A *
- 
 %0A */%0Adef
@@ -1995,16 +1995,59 @@
 viders);
+%0A    data.authServices = this.authServices;
 %0A%0A    re

Fix authService list in Indentity widget