Skip to content

Invalid redirect parameter | HTTP 400 when starting Google sign_in #321

@omerxx

Description

@omerxx

Describe the bug
Upon calling the SSO service through the proxy, I'm redirected to the authenticator where I see this:
image

Tried changing the upstream, the scheme settings, the google credentials, the allowed URI, literally everything I could think of. Would really appreciate any response

To Reproduce
RUNNING ON AWS ECS:

My Proxy container:

FROM buzzfeed/sso
ARG client_id \
    client_secret \
    session_cookie_secret
ENV UPSTREAM_DEFAULT_EMAIL_DOMAINS="domain.co" \
    UPSTREAM_CONFIGFILE="/sso/upstream_configs.yml" \
    UPSTREAM_CLUSTER="tools-global" \
    PROVIDER_URL_EXTERNAL="https://sso-auth.domain.co" \
    CLIENT_ID=$client_id \
    CLIENT_SECRET=$client_secret \
    SESSION_COOKIE_SECRET=$session_cookie_secret \
    UPSTREAM_SCHEME=https \
    LOGGING_LEVEL=debug
COPY ./upstream_config.yml /sso/upstream_configs.yml
ENTRYPOINT ["/bin/sso-proxy"]

Authenticator:

FROM buzzfeed/sso
ARG client_id \
    client_secret \
    session_cookie_secret \
    session_key
ENV AUTHORIZE_EMAIL_DOMAINS=domain.co \
    AUTHORIZE_PROXY_DOMAINS=* \
    SERVER_HOST=sso-auth.domain.co \
    CLIENT_PROXY_ID=$client_id \
    CLIENT_PROXY_SECRET=$client_secret \
    SESSION_COOKIE_SECURE=false \
    SESSION_COOKIE_SECRET=$session_cookie_secret \
    SESSION_KEY=$session_key \
    PROVIDER_DOMAIN_CLIENT_ID=$client_id \
    PROVIDER_DOMAIN_CLIENT_SECRET=$client_secret \
    PROVIDER_DOMAIN_TYPE=google \
    PROVIDER_DOMAIN_SLUG=google
ENTRYPOINT ["/bin/sso-auth"]

Upstreams:

- service: snappass
  default:
    from: snappass.domain.co/
    to: https://secrets.domain.co/
- service: redis
  default:
    from: redis.domain.co
    to: redis.ecs.domain.local:6379/

Expected behavior
Being redirected to Google login screen like in the quickstart

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome / Safari / Brave

Additional context
I'm running on ECS Fargate and no matter what I've changed this fails to work.
I was able to reproduce locally with the quickstart when changing http scheme to https, I can only assume it is relevant but I just don't know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions