Skip to content

Wrong initialization of CallbackError in callback_phase? #69

Open
@skogsmaskin

Description

@skogsmaskin

https://github.com/intridea/omniauth-oauth2/blob/master/lib/omniauth/strategies/oauth2.rb#L71

I think request.params['error_description'] || request.params['error_reason'] should be the other way around (error_reason is more likely to contain a canonical symbol). Or possibly store both on CallbackError.

As with Facebook there is no way of using CallbackError in order to check if the user canceled the auth ("user_canceled" is stored in error_reason while error_description is something generic like "Permission Error".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions