The initial package which became accounts-drupal. Please use accounts-drupal instead. https://github.com/FGM/accounts-drupal
|
|
преди 10 години | |
|---|---|---|
| client | преди 10 години | |
| lib | преди 10 години | |
| server | преди 10 години | |
| .jshintrc | преди 10 години | |
| README.md | преди 10 години | |
| drupal-sso-tests.js | преди 10 години | |
| package.js | преди 10 години | |
| sso.js | преди 10 години |
The Drupal SSO package provides transparent authentication integration with a Drupal instance.
meteor add fgm:drupal-ssoConfigure a drupal-sso section in your settings.json, like:
{
'drupal-sso': {
"site": "http://example.com",
"appToken": "the application token you got from the Meteor module"
}
}
In the app startup, initialize a SSO instance: SSO = new DrupalSSO();
Once this is done, your application can use the SSO methods, passive and reactive data sources:
userId(), userName(), userRoles()state.sessionName, state.anonymousName, state.onlineYou may delay until initialization by the Drupal server has completed by waiting on SSO.state.online until it is no longer undefined.
Unlike Meteor, Drupal relies by default on cookie-based authentication. This package makes use of the Drupal session cookie to authenticate the user with the Drupal instance having created the cookie.
It enables adding Meteor pages to a Drupal site without having to care for authentication, which is carried over from Drupal for each logged-in user.