Skip to content

Commit 011fee8

Browse files
committed
Update External authentication source.
1 parent c07ecd4 commit 011fee8

File tree

7 files changed

+323
-469
lines changed

7 files changed

+323
-469
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Introduction
22

3+
[![Build Status](https://travis-ci.com/drupalauth/simplesamlphp-module-drupalauth.svg?branch=master)](https://travis-ci.com/drupalauth/simplesamlphp-module-drupalauth)
4+
35
Drupal + SimpleSAMLphp + drupalauth = Complete SAML Identity Provider (IdP)
46

57
Users interact with Drupal to create accounts, manage accounts, and authenticate. SAML SPs interact with [SimpleSAMLphp](https://simplesamlphp.org/). Drupalauth ties Drupal to SimpleSAMLphp.
@@ -79,8 +81,6 @@ Leave 'attributes' empty or unset to get all available field values. Attribute n
7981

8082
#### Authenticate against Drupal but use the Drupal login page
8183

82-
**Not supported yet!!!**
83-
8484
The advantage of this approach is that the SimpleSAMLphp IdP session is tied to a Drupal session. This allows the user who is already logged into the Drupal site to then navigate to a SAML SP that uses the IdP without the need to authenticate again.
8585

8686
**Details**
@@ -103,14 +103,14 @@ Configure the authentication source by putting following code into `simplesamlph
103103
'drupal_login_url' => 'https://www.example.com/drupal/user',
104104

105105
// Which attributes should be retrieved from the Drupal site.
106-
'attributes' => array(
107-
array('drupaluservar' => 'uid', 'callit' => 'uid'),
108-
array('drupaluservar' => 'name', 'callit' => 'cn'),
109-
array('drupaluservar' => 'mail', 'callit' => 'mail'),
110-
array('drupaluservar' => 'field_first_name', 'callit' => 'givenName'),
111-
array('drupaluservar' => 'field_last_name', 'callit' => 'sn'),
112-
array('drupaluservar' => 'field_organization','callit' => 'ou'),
113-
array('drupaluservar' => 'roles','callit' => 'roles'),
114-
),
106+
'attributes' => array(
107+
array('field_name' => 'uid', 'attribute_name' => 'uid'),
108+
array('field_name' => 'roles', 'attribute_name' => 'roles'),
109+
array('field_name' => 'name', 'attribute_name' => 'cn'),
110+
array('field_name' => 'mail', 'attribute_name' => 'mail'),
111+
array('field_name' => 'field_first_name', 'attribute_name' => 'givenName'),
112+
array('field_name' => 'field_last_name', 'attribute_name' => 'sn'),
113+
array('field_name' => 'field_organization', 'attribute_name' => 'ou', 'field_property' => 'target_id'),
114+
),
115115
),
116116
```

0 commit comments

Comments
 (0)