From e0a74e336ac97bc14000536ed87a60cd52a92e10 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 23 Aug 2014 10:34:48 +1000 Subject: [PATCH] Add SSO diagnostics --- .../admin/templates/user_index.js.handlebars | 29 +++++++++++++++++++ app/serializers/admin_user_serializer.rb | 2 ++ .../single_sign_on_record_serializer.rb | 7 +++++ config/locales/client.en.yml | 7 +++++ 4 files changed, 45 insertions(+) create mode 100644 app/serializers/single_sign_on_record_serializer.rb diff --git a/app/assets/javascripts/admin/templates/user_index.js.handlebars b/app/assets/javascripts/admin/templates/user_index.js.handlebars index 74e4ba264..513abfabe 100644 --- a/app/assets/javascripts/admin/templates/user_index.js.handlebars +++ b/app/assets/javascripts/admin/templates/user_index.js.handlebars @@ -362,6 +362,35 @@ +{{#if single_sign_on_record}} +
+

{{i18n admin.user.sso.title}}

+ + {{#with single_sign_on_record}} +
+
{{i18n admin.user.sso.external_id}}
+
{{external_id}}
+
+
+
{{i18n admin.user.sso.external_username}}
+
{{external_username}}
+
+
+
{{i18n admin.user.sso.external_name}}
+
{{external_name}}
+
+
+
{{i18n admin.user.sso.external_email}}
+
{{external_email}}
+
+
+
{{i18n admin.user.sso.external_avatar_url}}
+
{{external_avatar_url}}
+
+ {{/with}} +
+{{/if}} +