Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I do only post request allowed when auth?? #153

Closed
sjoonk opened this issue Jan 19, 2011 · 3 comments
Closed

how can I do only post request allowed when auth?? #153

sjoonk opened this issue Jan 19, 2011 · 3 comments

Comments

@sjoonk
Copy link

sjoonk commented Jan 19, 2011

When authenticating, omniauth use some conventional URL /auth/twitter.
Is there any way only POST (not GET) request to /auth/twitter allowed??

@mbleigh
Copy link
Contributor

mbleigh commented Jan 30, 2011

Could you give me some insight as to why you would want it to be this way? I'm open to maybe implementing it, but I'm not sure I see the value.

@mbleigh
Copy link
Contributor

mbleigh commented Feb 4, 2011

Closed by 1343dd7 - Can restrict request methods to the request path (if you wish).

@mbleigh
Copy link
Contributor

mbleigh commented Feb 4, 2011

This can now be done like so (in master):

OmniAuth.config.allowed_request_methods = [:post]

sergioazevedo pushed a commit to intelie/omniauth that referenced this issue Jun 8, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants