Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogIn Error local development #382

Open
Chauban opened this issue May 16, 2024 · 3 comments
Open

LogIn Error local development #382

Chauban opened this issue May 16, 2024 · 3 comments

Comments

@Chauban
Copy link

Chauban commented May 16, 2024

Describe the problem

I have registered the auth0 and copy several key value in to the .local-config.json. After I open localhost:3000, the google account also has linked but it always result in Error. Like the image below

Are you using NetBird Cloud?

Please specify whether you use NetBird Cloud or self-host NetBird's control plane.

NetBird version

netbird version

NetBird status -d output:

If applicable, add the `netbird status -d' command output.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.
auth0-config002
Uploading error.png…

@heisbrot
Copy link
Contributor

Hey @Chauban,

there are a few things I see from your config. The authScopesSupported, authAudience, apiOrigin and grpcApiOrigin is missing. You can also remove everything from redirectURI to googleAnalyticsID as these variables are not necessary.

A local config with Auth0 might look like this:

{
  "auth0Auth": "true",
  "authAuthority": "https://youraccount.eu.auth0.com",
  "authClientId": "kBXXAOqIXXXXXXVCaXXXCJvTzkXXIXVt",
  "authScopesSupported": "openid profile email api offline_access email_verified",
  "authAudience": "http://localhost:3000/", 
  "apiOrigin": "http://localhost",
  "grpcApiOrigin": "http://localhost:80",
} 

Hope this helps!

Best,
Eduard

@Chauban
Copy link
Author

Chauban commented May 21, 2024

Hey @Chauban,

there are a few things I see from your config. The authScopesSupported, authAudience, apiOrigin and grpcApiOrigin is missing. You can also remove everything from redirectURI to googleAnalyticsID as these variables are not necessary.

A local config with Auth0 might look like this:

{
  "auth0Auth": "true",
  "authAuthority": "https://youraccount.eu.auth0.com",
  "authClientId": "kBXXAOqIXXXXXXVCaXXXCJvTzkXXIXVt",
  "authScopesSupported": "openid profile email api offline_access email_verified",
  "authAudience": "http://localhost:3000/", 
  "apiOrigin": "http://localhost",
  "grpcApiOrigin": "http://localhost:80",
} 

Hope this helps!

Best, Eduard

Thanks for your response. Is it not necessary for the authClientSecret? I also change authAudience": "https://dev-domain.us.auth0.com/api/v2/", now I have the new problem in the image. Is it necassay to run backend netbitd in the same time?
page-console-002

@heisbrot
Copy link
Contributor

Hey @Chauban ,

If using Auth0 the clientSecret can be removed from the config.

You can just copy the config from above and replace authAuthority and authClientId with your values.
In your case the authAudience should be http://localhost:3000/

For local development of the dashboard, the NetBird management server needs to be running.
apiOrigin and grpcApiOrigin are your management server API endpoints, which are required to access the NetBird API.

Best,
Eduard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants