简体   繁体   English

openid connect for drupal教程

[英]openid connect for drupal tutorial

Here is the senario. 这是senario。 I am trying to create a drupal 7 site that will serve as my openid connect server for another site that is being created in python. 我正在尝试创建一个drupal 7站点,该站点将用作在python中创建的另一个站点的openid连接服务器。 We want to have single sign on for the python site so that user will be synchronized between both the drupal site and the python site. 我们希望对python站点进行单点登录,以便用户将在drupal站点和python站点之间同步。

Question: 题:

Does anyone know of a step by step tutorial (or can you tell me how) to setup a drupal site to do this? 有谁知道逐步教程(或者您能告诉我)如何设置Drupal网站来做到这一点?

I don't know anything about drupal and I am having a very difficult time trying to get the openid connect module properly configured to allow sso. 我对drupal一无所知,并且在尝试正确配置openid connect模块以允许sso时遇到了非常困难的时间。 I think I have successfully installed the openid connect, openid connect sso, and oauth 2 modules as well as the oauth2_server_php library. 我想我已经成功安装了openid connect,openid connect sso和oauth 2模块以及oauth2_server_php库。

Where I am stuck: 我被困在哪里:

  1. when I go into the oauth2 settings, the "Use openid connect" check field is not present. 当我进入oauth2设置时,“使用openid连接”检查字段不存在。 According to one tutorial I have seen, it's supposed to be there. 根据我所见的一个教程,它应该在那里。
  2. When you configure openid connect, the 3 url endpoints (Authorization endpoint, Token endpoint and UserInfo endpoint) are a mystery to me and I don't know what to put in them. 当您配置openid connect时,这3个url端点(授权端点,令牌端点和UserInfo端点)对我来说是个谜,我不知道要在其中放置什么。 Right now my drupal server is running on my local host webserver. 现在,我的drupal服务器正在本地主机Web服务器上运行。 " http://localhost/drupal " http:// localhost / drupal

So you are basically trying to implement the OpenID connect protocol and then use that from a python based website. 因此,您基本上是在尝试实现OpenID连接协议,然后从基于python的网站使用该协议。 I guess you already have googled that and trying to implement your own. 我想您已经用谷歌搜索并尝试实现自己的。

And the second portion is how will your python website use this newly created openid connect implementation. 第二部分是您的python网站将如何使用这个新创建的openid connect实现。

We already have an openid connect implementation and also a step by step guide for sites wanting to use it. 我们已经有一个openid connect实现,并且还为想要使用它的站点提供了逐步指南。

If you want to consider an alternate, We have a step by step guide with sample code in Java as well as PHP on how to use miniOrange as your OpenID connect provider, here . 如果你要考虑一个替代,我们已经在Java代码示例一步的指导,就如何使用miniOrange为您的OpenID提供商连接,一个步骤以及PHP 在这里

SO this guide will take care of your "another site in python". 因此,本指南将照顾您的“另一个Python站点”。

Python samples are being added as we speak so stay tuned or ping me if you are interested. 我们在讲话时会添加Python示例,因此请保持关注或ping我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM