Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Create Provider with specific controller #638

Closed
nathansamson opened this Issue Sep 18, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Currently providers seems to be quite limited in the rendering of the request phase (and rendering of other phases).

I want to write a provider that asks for a userID and password. Then it has to check with an internal service if this combination is valid (so omniauth-identity won't do, neither is the form on an external service like OpenID or OAuth API's).
Currently their is only OmniAuth::Form which looks completely out of place in my application.

Even putting the form in my application itself and not using the request_phase won't really work because when the authentication fails I'll need to have a dedicated error page where the form is repeated with an error message;

Contributor

mbleigh commented Nov 28, 2012

This is more of a mailing list question. You could just literally call through to a Rails controller in your request phase:

def request_phase
  MyController.action(:new).call(env)
end

@mbleigh mbleigh closed this Nov 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment