huginn / huginn

Create agents that monitor and act on your behalf. Your agents are standing by!
MIT License
43.74k stars 3.79k forks source link

Using Devise for Huginn user Authentication #1297

Open ismail44 opened 8 years ago

ismail44 commented 8 years ago

I see that Devise (and Warden) are being used in the application; presumably for 3rd-party agent authentication. Is it possible to use Devise for logging users into the GUI?

Thanks.

cantino commented 8 years ago

Devise is the primary authentication system being used. It controls how you log in with username and password. Could you clarify what you're trying to do?

ismail44 commented 8 years ago

Yeah, I am seeing that... I actually worded what I was wanting to ask incorrectly. I mean to ask about using OmniAuth (with Devise) for authentication.

So, what I want to do is authenticate users with OpenAM. When a user comes into the app, they will already have a session token set by OpenAM, which i need to parse and either create the user (if they do not exist), or find the user (and update some things) and that's it. I see that OmniAuth is being used (presumably for agent authentication), I was wondering it was possible to leverage what's there for the agent authentication into what Devise is doing for the app user authentication.

Sorry about the initial flub-up.

On Mon, Feb 15, 2016 at 3:27 PM, Andrew Cantino notifications@github.com wrote:

Devise is the primary authentication system being used. It controls how you log in with username and password. Could you clarify what you're trying to do?

— Reply to this email directly or view it on GitHub https://github.com/cantino/huginn/issues/1297#issuecomment-184376478.

cantino commented 8 years ago

Gotcha. It shouldn't be too hard, but isn't wired yet. See #176 and #1081. We'd love for someone to contribute this change!