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

Storyblok CLI does not support _netrc filename in Windows for SSO login #1

Open
1 of 6 tasks
shahajishinde opened this issue Jul 11, 2022 · 0 comments
Open
1 of 6 tasks
Labels
bug Something isn't working

Comments

@shahajishinde
Copy link

The issue occurs while working with: (check one with "x")

  • app.storyblok.com (CMS - Interface)
  • api.storyblok.com (CMS - Content Delivery API)
  • mapi.storyblok.com (CMS - Management API)
  • capi.storyblok.com (Commerce - API)
  • Commerce - Interface
  • Other: Storyblok CLI

Current behavior:
I was referring the official guide on How to use Storyblok CLI with SSO account where it suggests to name the .netrc file as _netrc for Windows systems. But it doesn't seem to work as the login prompt is still shown when the file is named _netrc.

Expected behavior:
Either the SSO login should happen automatically without the prompt while the file is named - _netrc (as suggested in the guide), or the guide should mention to create a .netrc file for Windows systems as well.

Steps to reproduce:
Follow the guide and try running the command - storyblok pull-components --space=<space_id>

Related code:
As per the code here (snippet below), it is hard-coded to look for .netrc, and hence the _netrc file is ignored for Windows Users.

const getFile = () => {
  const home = process.env[(/^win/.test(process.platform)) ? 'USERPROFILE' : 'HOME']
  return path.join(home, '.netrc')
}

insert any relevant code here
NA

Other information:
NA

@shahajishinde shahajishinde added the bug Something isn't working label Jul 11, 2022
@shahajishinde shahajishinde changed the title Storyblok cli does not support _netrc filename in Windows for SSO login Storyblok CLI does not support _netrc filename in Windows for SSO login Jul 11, 2022
@lisilinhart lisilinhart transferred this issue from storyblok/storyblok Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant