Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

Redirect Loop Error #87

@lightmagic1

Description

@lightmagic1

Issue

I'm have the following error after used the "Login with google" in Auth0.

Error

Configs

Lambda

{
    "AUTH_REQUEST": {
        "client_id": "<myId>",
        "response_type": "code",
        "scope": "openid email",
        "redirect_uri": "https://<myCF>.cloudfront.net"
    },
    "TOKEN_REQUEST": {
        "client_id": "<myId>",
        "client_secret": "<myRandomGeneratedSecret>",
        "redirect_uri": "https://<myCF>.cloudfront.net",
        "grant_type": "authorization_code"
    },
    "DISTRIBUTION": "serverlessAuth",
    "AUTHN": "AUTH0",
    "PRIVATE_KEY": "<KEY>",
    "PUBLIC_KEY": "<KEY>",
    "DISCOVERY_DOCUMENT": "https://<myAuth0>.auth0.com/.well-known/openid-configuration",
    "SESSION_DURATION": 259200,
    "BASE_URL": "https://<myAuth0>.us.auth0.com",
    "CALLBACK_PATH": "/_callback",
    "AUTHZ": "AUTH0"
}

CloudFront Config

cf

Auth0 Config

Only social connection with google Enabled:

cnf

Seems to be working fine, testing inside auth0 connection test:

gcnf

My Auth0 Config:

cnf

Additional Info:

My Cloudfront redirects to a S3 bucket with static files (docusaurus generated).

FF Tools:

My requests keeps in a infinity loop 'till error:

error

Can someone help me? What i'm doing wrong?

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