Giter Club home page Giter Club logo

auth0-express-webapp-sample's People

Contributors

adamjmcgrath avatar davidpatrick avatar dependabot[bot] avatar evansims avatar johnlim avatar joshcanhelp avatar lbalmaceda avatar pdillon avatar snyk-bot avatar wadenick avatar widcket avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auth0-express-webapp-sample's Issues

Logging in gives an error: access_denied (Error: getaddrinfo ENOTFOUND undefined)

When I start this sample app and login, I get this error: "access_denied (Error: getaddrinfo ENOTFOUND undefined)". This is visible in the browser as well as in the logs from the Quickstart page on my dashboard (pasted below).

I've specified the "Allowed Callback URLs" and the "Allowed Logout URLs" as described in the instructions. I also tried running a https reverse proxy.

What am I missing here?

{
  "date": "2022-09-23T00:03:10.344Z",
  "type": "f",
  "description": "Error: getaddrinfo ENOTFOUND undefined",
  "connection_id": "",
  "client_id": "xx",
  "client_name": "xx",
  "ip": "x.x.x.x",
  "user_agent": "Chrome 105.0.0 / Mac OS X 10.15.7",
  "details": {
    "body": {},
    "qs": {
      "client_id": "xx",
      "scope": "openid profile email",
      "response_type": "id_token",
      "redirect_uri": "http://localhost:3000/callback",
      "response_mode": "form_post",
      "nonce": "u3aMUzGNXhcP5XAfo1XvNNmAsMAUNrI1PQqqKkbTizI",
      "state": "eyJyZXR1cm5UbyI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCJ9"
    },
    "error": {
      "message": "Error: getaddrinfo ENOTFOUND undefined",
      "oauthError": "access_denied",
      "type": "oauth-authorization"
    },
    "session_id": "LNghNMbuuphTy9I9HLqq0N6bX8LSjvK3",
    "stats": {
      "loginsCount": 13
    }
  },
  "hostname": "xxx.us.auth0.com",
  "user_id": "auth0|xxx",
  "user_name": "[email protected]",
  "audience": "https://xxx.us.auth0.com/userinfo",
  "scope": [
    "openid",
    "profile",
    "email"
  ],
  "log_id": "90020220923000314746157585488925899669990466254387806258",
  "_id": "90020220923000314746157585488925899669990466254387806258",
  "isMobile": false,
  "id": "90020220923000314746157585488925899669990466254387806258"
}

Add support for organization member invitations

Checklist

  • I have looked into the Readme (Starter seed/Login) and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

When users are invited to join an organization they receive an invitation link by email. This link redirects them to the configured default login route with invitation-specific parameters appended (see below). The problem is that these parameters do not get sent along on the redirect url.

See this issue for how it's resolved using the express-openid-connect module, but this quickstart should have support for this ootb.
auth0/express-openid-connect#365

Describe the ideal solution

The following parameters should be optionally included in the url when the user is redirected to authenticate:
invitation
organization
organization_name

Alternatives and current workarounds

No response

Additional context

No response

Sample app breaks when running on IPv6

Hi,

Running the sample app in /01-Login on the following set-up results in the error below when I click login in the webapp:
node version: v18.5.0
OS: macOS Monterey V12.4

const err = new AggregateError(errors);
AggregateError: Issuer.discover() failed.
    RequestError: Timeout awaiting 'request' for 5000ms
    RequestError: Timeout awaiting 'request' for 5000ms
    at Function.discover (/Users/xxx/git/auth0-express-webapp-sample/01-Login/node_modules/openid-client/lib/issuer.js:265:17)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async pReflect (/Users/xxx/git/auth0-express-webapp-sample/01-Login/node_modules/p-reflect/index.js:5:17)
    at async Promise.all (index 0)
    at async /Users/xxx/git/auth0-express-webapp-sample/01-Login/node_modules/p-memoize/index.js:33:22
    at async get (/Users/xxx/git/auth0-express-webapp-sample/01-Login/node_modules/express-openid-connect/lib/client.js:43:18)
    at async pReflect (/Users/xxx/git/auth0-express-webapp-sample/01-Login/node_modules/p-reflect/index.js:5:17)
    at async Promise.all (index 0)
    at async get (/Users/xxx/git/auth0-express-webapp-sample/01-Login/node_modules/p-memoize/index.js:33:22)
    at async ResponseContext.login (/Users/xxx/git/auth0-express-webapp-sample/01-Login/node_modules/express-openid-connect/lib/context.js:182:20)

Disabling IPv6 on my mac as per this article resolves this. Is there a fix for this else, at least a warning for new users?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.