Skip to content

Omniauth redirect should send access-token not auth_token #1656

Open
@bettysteger

Description

@bettysteger

My client checks on the URL query param access-token and not auth_token, when confirming email or resetting a password, it is access-token.

So the code in OmniauthCallbacksController, should be:

    def create_auth_params
      @auth_params = @resource.build_auth_headers(@token.token, @token.client)
      @auth_params[:oauth_registration] = true if @oauth_registration
      @auth_params
    end

instead of

    def create_auth_params
      @auth_params = {
        auth_token: @token.token,
        client_id:  @token.client,
        uid:        @resource.uid,
        expiry:     @token.expiry,
        config:     @config
      }
      @auth_params.merge!(oauth_registration: true) if @oauth_registration
      @auth_params
    end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions