Skip to content

Use GET with :developer strategy. - #1106

Merged
BobbyMcWho merged 3 commits into
omniauth:masterfrom
cycomachead:form-methods
May 7, 2023
Merged

BobbyMcWho merged 3 commits into
omniauth:masterfrom
cycomachead:form-methods

Conversation

@cycomachead

@cycomachead cycomachead commented Mar 3, 2023 •

Copy link
Copy Markdown
Contributor

This changes the default method of the :developer strategy to GET. It does
this by allowing OmniAuth::Form to accept a :method option, which is
optional and defaults to 'post', the current behavior. Because the default
behavior remains unchanged, I don't expect this to introduct any breaking
changes.

This allows the developer strategy to work with the directions provided in
the README. Further, it seems that the default action of most stratigies is
to use GET for their callbacks.

Fixes #1087 Fixes #1061 Fixes #957

The changes the default method of the :developer strategy to GET.
It does this by allowing OmniAuth::Form to accept a `:method` option,
which is optional and defaults to 'post', the current behavior.
Because the default behavior remains unchanged, I don't expect this to
introduct any breaking changes.

This allows the developer strategy to work with the directions provided
in the README. Further, it seems that the default action of most
stratigies is to use GET for their callbacks.

Fixes omniauth#1087
Fixes omniauth#1061
Fixes omniauth#957
@BobbyMcWho

Copy link
Copy Markdown
Member

I'll get around to diagnosing the POST issue, but GET is not recommended for omniauth strategies as it is vulnerable to CVE-2015-9284

@BobbyMcWho BobbyMcWho closed this Mar 3, 2023
@cycomachead

cycomachead commented Mar 3, 2023 via email

Copy link
Copy Markdown
Contributor Author

@BobbyMcWho BobbyMcWho reopened this Mar 3, 2023
@BobbyMcWho

Copy link
Copy Markdown
Member

Sorry, you're correct, I only glanced at this PR and assumed it was altering the POST allowed actions

@cycomachead

cycomachead commented Mar 3, 2023 via email

Copy link
Copy Markdown
Contributor Author

@BobbyMcWho
BobbyMcWho merged commit 10f7a50 into omniauth:master May 7, 2023
@cycomachead
cycomachead deleted the form-methods branch May 7, 2023 15:30
@spryffee

Copy link
Copy Markdown

When there will be next stable release that includes this change?

@salzig

salzig commented Dec 19, 2023

Copy link
Copy Markdown

I would appreciate a 2.1.2 which contains this change.

@BobbyMcWho

Copy link
Copy Markdown
Member

I would appreciate a 2.1.2 which contains this change.

Released

@cycomachead

Copy link
Copy Markdown
Contributor Author

Thanks very much! :)

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

Labels

None yet

Projects

None yet

5 participants