开发者

How can I access a user role in Drupal from a separate application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question

Is there a plugin/standard HTTP API for accessing user roles/permissions in a Drupal 6 instance from other applications, e.g., on different hosts?

Our organization uses Shibboleth t开发者_如何学编程o allow easy authentication across all our hosts, but I'd like to use our central Drupal 6 installation to manage user roles rather than storing roles data in each separate application we build, e.g., in Zend Framework.

Of course we could run direct queries on the Drupal DB from these apps, but I'd prefer to not.


You could look at the Drupal Services API provided by the Services module. This will allow you to log in as a specific user then you can via XML-RPC call specific functions to retrieve the pertinent information. If you wanted more functionality the services module is very easy to extend to your needs also.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜