jazzblue
jazzblue

Reputation: 2437

Logging into Plone site with credentials passed through HTTP

I am using Plone 4.3.3 and am fairly new to Plone development. Here is what I am trying to achieve:

I have another site which is going to redirect to my Plone site. In the http url line the redirects to the Plone site I would like to pass a username whereas Plone site should automatically log the user with that username in without asking any credentials like password. I do not care about safety or encryption at this point. How would you achieve that? (I guess I need somehow to modify that existing login view, but how do I do that?) Thanks.

Upvotes: 0

Views: 101

Answers (1)

I had the same problem and at the end I've developed my own PAS plugin. I've followed next steps:

  1. Create a PAS plugin
  2. Implement the extractCredentials method following this example
  3. Implement the authenticateCredentials method following this example
  4. Add the plugin to the develop section in the build.conf.
  5. Start the Plone and open the Zope console. Go to the acl_users folder and add your plugin to the PAS system

There are some examples here that you can use like templates.

Upvotes: 2

Related Questions