# New user help, please

**URL:** <https://community.auth0.com/t/new-user-help-please/99687>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [February 3, 2023, 9:13pm UTC](https://community.auth0.com/t/new-user-help-please/99687 "2023-02-03T21:13:10Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 3, 2023, 9:13pm UTC](https://community.auth0.com/t/new-user-help-please/99687/1 "2023-02-03T21:13:11Z")

</div>

Hi and thanks in advance for any help. I am a new user to Auth0 and I am trying to figure out if the free plan can do what i need it to. I cant seem to find the right info in my searches.

i run a website for a game. i am trying to have my login redirect to auth0. i think i got this part working. then send the user to a page on my site, with their auth info, so i can use that to req one more piece of data the site needs, their player id for the game.

i think i can setup a flow and / or a redirect rule but i cant seem to find exactly what i need.

Any ideas on the steps to do this?

second question, i changed my application’s logo in auth0 but its not reflected on my universal login page. it does show on the Application Properties.

Thanks again

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 3, 2023, 10:55pm UTC](https://community.auth0.com/t/new-user-help-please/99687/3 "2023-02-03T22:55:13Z")

</div>

Hi @loucapo,

Welcome to the Auth0 Community!

> [@loucapo](#):
>
> i am trying to have my login redirect to auth0. i think i got this part working. then send the user to a page on my site, with their auth info, so i can use that to req one more piece of data the site needs, their player id for the game.

To better assist you, I have a few clarifying questions.

First, could you please clarify if you want to send the user to your site after they have logged in?

And could you please clarify if there is an API that can query the user’s player ID for the game?

> [@loucapo](#):
>
> second question, i changed my application’s logo in auth0 but its not reflected on my universal login page. it does show on the Application Properties.

To change the Logo on the New Universal Login page, please navigate to the [Auth0 Dashboard \> Branding \> Universal Login \> Customized Options](https://manage.auth0.com/#/universal-login/customizations/widget) and click on the **Widget** option and enter your **Logo URL**. See below:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/1/416ab1a324756b94453ef7deaae30dbe739a3e4f.jpeg)

Let me also add what our documentation constitutes as an Application Logo:

> - **Application Logo** : The URL of a logo (recommended size: 150x150 pixels) to display for the application. Appears in several areas, including the list of applications in the Dashboard and customized consent forms. If none is set the default badge for this type of application will be shown.

(Ref: [Application Settings - Application Logo](https://auth0.com/docs/get-started/applications/application-settings#:~:text=Application%20Logo%3A%20The%20URL%20of%20a%20logo%20(recommended%20size%3A%20150x150%20pixels)%20to%20display%20for%20the%20application.%20Appears%20in%20several%20areas%2C%20including%20the%20list%20of%20applications%20in%20the%20Dashboard%20and%20customized%20consent%20forms.%20If%20none%20is%20set%20the%20default%20badge%20for%20this%20type%20of%20application%20will%20be%20shown.)

I hope that helps clarifies!

I look forward to your reply.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 3, 2023, 11:04pm UTC](https://community.auth0.com/t/new-user-help-please/99687/4 "2023-02-03T23:04:49Z")

</div>

> First, could you please clarify if you want to send the user to your site after they have logged in?

i think i need to, for them to enter their player id manually.

> And could you please clarify if there is an API that can query the user’s player ID for the game?

there is no API. a user must enter it manually.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 6, 2023, 7:42pm UTC](https://community.auth0.com/t/new-user-help-please/99687/5 "2023-02-06T19:42:16Z")

</div>

Hi @loucapo,

Thank you for your response and clarification.

> [@loucapo](#):
>
> i think i need to, for them to enter their player id manually.

For this case, we can specify the `redirect_uri` in your login request, so that once the authentication completes successfully, the user will redirect to that page.

The flow will be something like the following:

- User goes to Login page \> logs in successfully \> redirects to your site to enter their player ID

To do so, you will need to [implement the Authorization Code](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow#:~:text=.-,redirect_uri,removes%20everything%20after%20the%20hash%20and%20does%20not%20honor%20any%20fragments.,-scop) flow with any of [our SDKs](https://auth0.com/docs/libraries), and in the request, set your site’s URL as the `redirect_uri`. Let me also clarify that the `redirect_uri` value is your Callback URL which is the destination where the user is redirected after a successful login.

See our [Redirect Users](https://auth0.com/docs/authenticate/login/redirect-users-after-login#redirect-users-to-callback-urls-on-the-allowlist) documentation for more information.

Lastly, I recommend checking out our [Auth0 Quickstarts](https://auth0.com/docs/quickstart/webapp) for examples of configuring the Application’s Callback URLs.

Please let me know if you have any further questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 7, 2023, 6:38pm UTC](https://community.auth0.com/t/new-user-help-please/99687/6 "2023-02-07T18:38:01Z")

</div>

being so new to this, the terminology in those is a bit over my head.

how come you cant just use a flow to route you to a diff page? its sort of working right now but it seems to not keep my auth status. i see it call my server’s url, i can see the user’s info. i use their email to see if they have a record in my db. i redirect them to the page to enter id (this part fails as it ends up at the homepage and the user stuff is blank).

are you able to see my actual settings in auth0?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 7, 2023, 7:03pm UTC](https://community.auth0.com/t/new-user-help-please/99687/7 "2023-02-07T19:03:37Z")

</div>

Hi @loucapo,

Thank you for your reply.

> [@loucapo](#):
>
> how come you cant just use a flow to route you to a diff page?

Yes, we can use a Redirect Rule to send the user to another page, but you will have to resume the authentication flow for this to work properly.

If you prefer, you can do this by starting the redirect in a Rule to your web page for the user to enter their `player_id`, and then resuming authentication back at Auth0 to continue with the rest of the login flow and return the user back to the Callback URL.

[https://auth0.com/docs/customize/rules/redirect-users#start-redirect-and-resume-authentication](https://auth0.com/docs/customize/rules/redirect-users#start-redirect-and-resume-authentication)

> [@loucapo](#):
>
> are you able to see my actual settings in auth0?

Yes, most definitely. What would you like me to take a look at?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 7, 2023, 7:45pm UTC](https://community.auth0.com/t/new-user-help-please/99687/8 "2023-02-07T19:45:55Z")

</div>

so i switched everything over to https, i setup https locally. i can connect to my page locally. when i hit login, i get the following:

BadRequestError: access\_denied (self signed certificate in certificate chain)  
at ResponseContext.callback (node\_modules/express-openid-connect/lib/context.js:347:15)  
at processTicksAndRejections (internal/process/task\_queues.js:97:5)

i tried to add this to my app.js, temporarily:  
process.env.NODE\_TLS\_REJECT\_UNAUTHORIZED=0;

---

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 8, 2023, 8:06pm UTC](https://community.auth0.com/t/new-user-help-please/99687/9 "2023-02-08T20:06:07Z")

</div>

any ideas? i’m getting desperate.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 8, 2023, 8:23pm UTC](https://community.auth0.com/t/new-user-help-please/99687/10 "2023-02-08T20:23:47Z")

</div>

Hi @loucapo,

Thank you for your responses.

It took me a while to find the issue, but I finally found it!

The error you are seeing is coming from your `postLogin` Action script. In your Logs, I found the following error log when I checked the **Action details** section:

```auto
{
  "binding_id": "58b084b2-87a4-4ea9-ac46-f31f7cebaded",
  "version_id": "94cc2905-63ee-4dbf-bd8b-814c4780a96f",
  "action_name": "postLogin",
  "response": {
    "error": {
      "code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
      "message": "unable to verify the first certificate",
      "name": "Error",
      "stack": "Error: unable to verify the first certificate\n at Function.AxiosError.from (/data/layers/layers-vMBp/vMBpsnbe9HkFTTKtnriBcWMPY-vdrSq8MfXEhmk8K4E/node_modules/axios/dist/node/axios.cjs:825:14)\n at RedirectableRequest.handleRequestError (/data/layers/layers-vMBp/vMBpsnbe9HkFTTKtnriBcWMPY-vdrSq8MfXEhmk8K4E/node_modules/axios/dist/node/axios.cjs:2961:25)\n at RedirectableRequest.emit (node:events:527:28)\n at RedirectableRequest.emit (node:domain:475:12)\n at ClientRequest.eventHandlers.<computed> (/data/layers/layers-vMBp/vMBpsnbe9HkFTTKtnriBcWMPY-vdrSq8MfXEhmk8K4E/node_modules/follow-redirects/index.js:14:24)\n at ClientRequest.emit (node:events:527:28)\n at ClientRequest.emit (node:domain:475:12)\n at TLSSocket.socketErrorListener (node:_http_client:454:9)\n at TLSSocket.emit (node:events:527:28)\n at TLSSocket.emit (node:domain:475:12)"
    },
    "stats": {
      "total_request_duration_ms": 488,
      "total_runtime_execution_duration_ms": 485,
      "runtime_processing_duration_ms": 5,
      "action_duration_ms": 422,
      "runtime_external_call_duration_ms": 58,
      "boot_duration_ms": 63,
      "network_duration_ms": 3
    }
  },
  "error": {
    "id": "invalid_argument",
    "msg": "Invalid Argument"
  },
  "started_at": "2023-02-08T15:20:52.039552555Z",
  "ended_at": "2023-02-08T15:20:52.528227367Z"
}

```

It appears that you are passing an invalid argument. After reviewing the [Request Config |&nbsp;Axios Docs](https://axios-http.com/docs/req_config#:~:text=//%20%60params%60%20are%20the%20URL%20parameters%20to%20be%20sent%20with%20the%20request%0A%20%20//%20Must%20be%20a%20plain%20object%20or%20a%20URLSearchParams%20object%0A%20%20//%20NOTE%3A%20params%20that%20are%20null%20or%20undefined%20are%20not%20rendered%20in%20the%20URL.%0A%20%20params%3A%20%7B%0A%20%20%20%20ID%3A%2012345%0A%20%20%7D%2C), I found that you should be passing the user\_id like the following:

```auto
const axios = require("axios");
exports.onExecutePostLogin = async (event, api) => {
    await axios.get("https://YOUR_URL", { params: { id: event.user.user_id }});
};

```

Then to test your Action script, I recommend using the built-in debugger depicted by the Play button icon:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/d/a/da47d28b5cc2a9fc28cf72f408e191a4d0fd6d4b.jpeg)

Please let me know how this goes.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 8, 2023, 9:21pm UTC](https://community.auth0.com/t/new-user-help-please/99687/11 "2023-02-08T21:21:49Z")

</div>

you can pass the full user object? i am trying to use more than just the user id.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 8, 2023, 9:29pm UTC](https://community.auth0.com/t/new-user-help-please/99687/12 "2023-02-08T21:29:06Z")

</div>

Hi @loucapo,

Yes, sure, you can pass the whole object if needed.

---

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 8, 2023, 9:35pm UTC](https://community.auth0.com/t/new-user-help-please/99687/13 "2023-02-08T21:35:41Z")

</div>

then i guess i dont understand what i am passing incorrectly.

---

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 9, 2023, 4:12pm UTC](https://community.auth0.com/t/new-user-help-please/99687/14 "2023-02-09T16:12:36Z")

</div>

do you know anything about running https locally so i can get this full flow to work? i think that is where the error i am getting is coming from.

---

<div class="post-metadata">

**Author:** ![loucapo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loucapo/32/44320_2.png) [@loucapo](https://community.auth0.com/u/loucapo)\
**Post date:** [February 14, 2023, 5:44pm UTC](https://community.auth0.com/t/new-user-help-please/99687/15 "2023-02-14T17:44:07Z")

</div>

i revamped my settings and stuff. its all working as i needed with localhost. when i try to use a named domain locally, i get the following error:

BadRequestError: checks.state argument is missing

is that because i need to use https? and then i will have the self-signed cert issue again?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 17, 2023, 2:09am UTC](https://community.auth0.com/t/new-user-help-please/99687/16 "2023-02-17T02:09:54Z")

</div>

Hi @loucapo,

Thank you for your responses.

In my tests, I was able to reproduce the `BadRequestError: checks.state argument is missing` error only when I went directly to the `/authorize` endpoint with my own custom `state` parameter. It seems to work fine when the state is automatically generated by my app when I click on the login button.

After investigating, I found that this error happens because of the reasons described [here](https://github.com/auth0/express-openid-connect/issues/145#issuecomment-707024770) and I recommend following the workaround provided on the page.

Please let me know how it goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 3, 2023, 2:10am UTC](https://community.auth0.com/t/new-user-help-please/99687/17 "2023-03-03T02:10:11Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
