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

WGS auth login error #1566

Closed
Aleksander-Dorkov opened this issue Feb 4, 2025 · 2 comments
Closed

WGS auth login error #1566

Aleksander-Dorkov opened this issue Feb 4, 2025 · 2 comments
Labels
intended behavior The issue was determined to be intended behavior.

Comments

@Aleksander-Dorkov
Copy link

Aleksander-Dorkov commented Feb 4, 2025

Component(s)

cli

Component version

0.72.1

wgc version

0.72.1

controlplane version

latest

router version

latest

What happened?

Description

I am simply running the stack locally with docker compose -f docker-compose.full.yml --profile default --profile router up -d
When i run npx wgc auth login i get redirected to https://accounts.wundergraph.com/auth/realms/cosmo/login-actions/required-action?execution=OAUTH_GRANT&client_id=cosmo-cli&tab_id=f_SBVQebGxc&client_data=e30 i click yes, then i my terminal i am getting an error

Steps to Reproduce

I just do npx wgc auth login after installing the latest version (0.72.1)

Expected Result

to be able to login

Actual Result

npx wgc auth login
Code: iPiAVDrmRT1IW4JcjMU1_8v8x5cz15roMWJ4Hcwc0UI

If your browser does not automatically open, use this URL and enter the Code to verify the login: https://accounts.wundergraph.com/auth/realms/cosmo/device?user_code=SCZJ-PGFO

Opening browser for login...


TypeError: Cannot read properties of undefined (reading 'map')
    at Command.<anonymous> (file:///Users/alex/.nvm/versions/node/v22.11.0/lib/node_modules/wgc/dist/commands/auth/commands/login.js:37:54)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Command.parseAsync (/Users/alex/.nvm/versions/node/v22.11.0/lib/node_modules/wgc/node_modules/commander/lib/command.js:936:5)
    at async file:///Users/alex/.nvm/versions/node/v22.11.0/lib/node_modules/wgc/dist/index.js:8:5
Image

Environment information

Environment

ProductName: macOS
ProductVersion: 15.3
BuildVersion: 24D60

Package Manager: pnpm, npm

Router configuration

Router execution config

Log output

Additional context

No response

@Aleksander-Dorkov Aleksander-Dorkov added the bug Something isn't working label Feb 4, 2025
Copy link

github-actions bot commented Feb 4, 2025

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible.
The roadmap is driven by our customers and we have to prioritize issues that are important to them.
You can influence the priority by becoming a customer. Please contact us here.

@Aenimus
Copy link
Member

Aenimus commented Feb 5, 2025

Hello @Aleksander-Dorkov ,

If you want to use wgc auth locally, you will need to export these variables:

export COSMO_API_URL=http://localhost:3001/
export KC_API_URL=http://localhost:8080/
export CDN_URL=http://localhost:11000/

You're running WunderGraph Cosmo locally, but you're still trying to authorize using WunderGraph Cosmo Cloud.

I hope this helps.

@Aenimus Aenimus closed this as completed Feb 5, 2025
@Aenimus Aenimus added intended behavior The issue was determined to be intended behavior. and removed bug Something isn't working labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intended behavior The issue was determined to be intended behavior.
Projects
None yet
Development

No branches or pull requests

2 participants