{"action":"created","issue":{"url":"https://api.github.com/repos/n4bb12/verdaccio-github-oauth-ui/issues/5","repository_url":"https://api.github.com/repos/n4bb12/verdaccio-github-oauth-ui","labels_url":"https://api.github.com/repos/n4bb12/verdaccio-github-oauth-ui/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/n4bb12/verdaccio-github-oauth-ui/issues/5/comments","events_url":"https://api.github.com/repos/n4bb12/verdaccio-github-oauth-ui/issues/5/events","html_url":"https://github.com/n4bb12/verdaccio-github-oauth-ui/issues/5","id":355473380,"node_id":"MDU6SXNzdWUzNTU0NzMzODA=","number":5,"title":"NPM commands failing","user":{"login":"thomasdavis","id":416209,"node_id":"MDQ6VXNlcjQxNjIwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/416209?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasdavis","html_url":"https://github.com/thomasdavis","followers_url":"https://api.github.com/users/thomasdavis/followers","following_url":"https://api.github.com/users/thomasdavis/following{/other_user}","gists_url":"https://api.github.com/users/thomasdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasdavis/subscriptions","organizations_url":"https://api.github.com/users/thomasdavis/orgs","repos_url":"https://api.github.com/users/thomasdavis/repos","events_url":"https://api.github.com/users/thomasdavis/events{/privacy}","received_events_url":"https://api.github.com/users/thomasdavis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-30T08:14:04Z","updated_at":"2018-08-30T15:58:17Z","closed_at":null,"author_association":"NONE","body":"After setting up the plugin successfully, I manage to oauth in and see packages listed by basic auth users.\r\n\r\nI copy the commands shown and my `.npmrc` file looks like this \r\n\r\n```\r\n//npm.mycompani.io/:_authToken=\"i/sKvYrKJKXupSfYB5dtYTI6un65wGg4f/rBF8YanVrTw8NjUzT5GPTJNbDa0NJCnVmIWQIXMfSsV5og1+QrYw==\"\r\n//npm.mycompani.io/:always-auth=true\r\n```\r\n\r\nThough when I try to `publish` or `whoami` with the `--registry xxx` flag I get \r\n\r\n```\r\nYour auth token is no longer valid. Please log in again.\r\n``` \r\n\r\nThis is moments after creating it. From my understanding, Verdaccio should be persisting the npm token somewhere so that it can match it later. (like how .htpasswd plugin works)\r\n\r\nBut after looking around in my Verdaccio instance, I can see no mention of my token or my github username.\r\n\r\np.s. cool plugin =D"},"comment":{"url":"https://api.github.com/repos/n4bb12/verdaccio-github-oauth-ui/issues/comments/417371679","html_url":"https://github.com/n4bb12/verdaccio-github-oauth-ui/issues/5#issuecomment-417371679","issue_url":"https://api.github.com/repos/n4bb12/verdaccio-github-oauth-ui/issues/5","id":417371679,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzM3MTY3OQ==","user":{"login":"abrsil-WittGruppe","id":40799940,"node_id":"MDQ6VXNlcjQwNzk5OTQw","avatar_url":"https://avatars3.githubusercontent.com/u/40799940?v=4","gravatar_id":"","url":"https://api.github.com/users/abrsil-WittGruppe","html_url":"https://github.com/abrsil-WittGruppe","followers_url":"https://api.github.com/users/abrsil-WittGruppe/followers","following_url":"https://api.github.com/users/abrsil-WittGruppe/following{/other_user}","gists_url":"https://api.github.com/users/abrsil-WittGruppe/gists{/gist_id}","starred_url":"https://api.github.com/users/abrsil-WittGruppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrsil-WittGruppe/subscriptions","organizations_url":"https://api.github.com/users/abrsil-WittGruppe/orgs","repos_url":"https://api.github.com/users/abrsil-WittGruppe/repos","events_url":"https://api.github.com/users/abrsil-WittGruppe/events{/privacy}","received_events_url":"https://api.github.com/users/abrsil-WittGruppe/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T15:58:17Z","updated_at":"2018-08-30T15:58:17Z","author_association":"NONE","body":"Is this part set in your verdaccion config?\r\n```\r\nauth:\r\n  github-oauth-ui:\r\n    org: $GITHUB_OAUTH_ORG # required, people within this org will be able to auth\r\n```\r\n\r\nAre you using a private org?\r\nIf yes then my guess is that you might have not requested the `org:read` permission.\r\n\r\nWhen initially logging in and authorizing the GitHub app, there's a convenient little `[Request]` button that is can be easily overlooked. It is important that you klick it.\r\n\r\nAn org admin will then need to grant this permission.\r\n\r\nWhen logging in, the plugin uses your token to fetch the orgs you are in. Without this permission, the org will not be listed, and it will seem as if you are not part of the org."}}
{"actor":{"display_login":"abrsil-WittGruppe"}}