Unauthorized: Invalid Request

Currently trying to integrate the login in a new app, but im always receiving:

    "error": {
      "message": "Unauthorized",
      "oauthError": "invalid_request",
      "type": "request-error"
    },

Got no more information, even in the management logs. How do I find out whats wrong with my request?

I tracked the requests an noticed, that the social login works fine, but auth0 resumes with an error die my redirect uri:

Hi @carl.sauter,

Welcome to the Auth0 Community!

It seems that the error is indicating that there was an issue with the request, possibly related to the data passed in the parameters.

Could you please share your login request and please make sure to hide any sensitive data?

For example, the login request should look something like the following:

https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}

Thanks,
Rueben

1 Like

Thank you for your help, here is my request. Please notice that I get the after entered my credentials to login. So it happens after the successfull login while redirecting back to my application.

https://{myTenant}.eu.auth0.com/authorize?response_type=code&client_id={myClientId}&client_secret={myClientSecret}&redirect_uri=app%3A%2F%2Fcom.siemens.sia%2Foauth%2Fcb&scope=openid%2Cemail&state=zH50tAoXqNAfQZ4VSZ1RzIEsVj66GP8N&nonce=XYCvwmd7OkVGoWJLoZirQc07XqjlHgwf&connection=main-tenant-oidc)

Hi @carl.sauter,

Thanks for the reply.

I noticed that you’ve also created a support case for this issue and successfully resolved it by fixing the configuration settings for your custom social connection.

I’ll mark this topic as solved, but feel free to reach out again if you have any questions.

Thanks,
Rueben

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