From 48a09cae36c59493b84b6675423fb89b75a9e37c Mon Sep 17 00:00:00 2001
From: Ide Braakman <ide@ezcompany.nl>
Date: Wed, 7 Mar 2018 16:21:35 +0100
Subject: [PATCH] Issue #2950849 by idebr: Implement extra field for SAML
 authentication settings

---
 simplesamlphp_auth.module | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/simplesamlphp_auth.module b/simplesamlphp_auth.module
index 85b1b1a..b0b4b3f 100644
--- a/simplesamlphp_auth.module
+++ b/simplesamlphp_auth.module
@@ -70,6 +70,20 @@ function simplesamlphp_auth_user_logout($account) {
 }
 
 /**
+ * Implements hook_entity_extra_field_info().
+ */
+function simplesamlphp_auth_entity_extra_field_info() {
+  $fields = [];
+  $fields['user']['user']['form']['simplesamlphp_auth_user_enable'] = [
+    'label' => t('SAML authentication settings'),
+    'description' => '',
+    'weight' => 0,
+    'visible' => TRUE,
+  ];
+  return $fields;
+}
+
+/**
  * Implements hook_form_FORM_ID_alter().
  *
  * Alters the user register form to include a checkbox signifying the user
-- 
2.11.0 (Apple Git-81)

