0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/website/translated_docs/sr/auth.md
VerdaccioBot 9db7fdc6d3 New Crowdin translations (#1111)
* New translations auth.md (Serbian (Latin))
docs(website): new translations

* New translations ansible.md (Serbian (Latin))
docs(website): new translations

* New translations auth.md (Serbian (Latin))
docs(website): new translations

* New translations build.md (Serbian (Latin))
docs(website): new translations

* New translations config.md (Serbian (Latin))
docs(website): new translations

* New translations contributing.md (Serbian (Latin))
docs(website): new translations

* New translations dev-plugins.md (Serbian (Latin))
docs(website): new translations

* New translations docker.md (Serbian (Latin))
docs(website): new translations

* New translations install.md (Serbian (Latin))
docs(website): new translations

* New translations kubernetes.md (Serbian (Latin))
docs(website): new translations

* New translations notifications.md (Serbian (Latin))
docs(website): new translations

* New translations plugins.md (Serbian (Latin))
docs(website): new translations

* New translations plugins.md (Serbian (Latin))
docs(website): new translations

* New translations protect-your-dependencies.md (Serbian (Latin))
docs(website): new translations

* New translations reverse-proxy.md (Serbian (Latin))
docs(website): new translations

* New translations server.md (Serbian (Latin))
docs(website): new translations

* New translations ssl.md (Serbian (Latin))
docs(website): new translations

* New translations test.md (Serbian (Latin))
docs(website): new translations

* New translations uplinks.md (Serbian (Latin))
docs(website): new translations

* New translations use-cases.md (Serbian (Latin))
docs(website): new translations

* New translations windows.md (Serbian (Latin))
docs(website): new translations

* New translations what-is-verdaccio.md (Serbian (Latin))
docs(website): new translations

* New translations logo.md (Serbian (Latin))
docs(website): new translations

* New translations en.json (Serbian (Latin))
docs(website): new translations

* New translations ansible.md (Serbian (Cyrillic))
docs(website): new translations

* New translations auth.md (Serbian (Cyrillic))
docs(website): new translations

* New translations auth.md (Serbian (Cyrillic))
docs(website): new translations

* New translations build.md (Serbian (Cyrillic))
docs(website): new translations

* New translations web.md (French)
docs(website): new translations

* New translations web.md (French)
docs(website): new translations

* New translations what-is-verdaccio.md (French)
docs(website): new translations

* New translations what-is-verdaccio.md (French)
docs(website): new translations

* New translations windows.md (French)
docs(website): new translations

* New translations what-is-verdaccio.md (French)
docs(website): new translations

* New translations windows.md (French)
docs(website): new translations

* New translations windows.md (French)
docs(website): new translations

* New translations windows.md (French)
docs(website): new translations

* New translations windows.md (French)
docs(website): new translations

* New translations en.json (French)
docs(website): new translations

* New translations en.json (French)
docs(website): new translations

* New translations en.json (French)
docs(website): new translations

* New translations en.json (French)
docs(website): new translations

* New translations en.json (French)
docs(website): new translations

* New translations web.md (French)
docs(website): new translations

* New translations web.md (French)
docs(website): new translations

* New translations what-is-verdaccio.md (French)
docs(website): new translations

* New translations windows.md (French)
docs(website): new translations

* New translations what-is-verdaccio.md (French)
docs(website): new translations

* New translations windows.md (French)
docs(website): new translations

* New translations en.json (French)
docs(website): new translations

* New translations en.json (French)
docs(website): new translations

* New translations web.md (Italian)
docs(website): new translations

* New translations plugins.md (Italian)
docs(website): new translations

* New translations plugins.md (Italian)
docs(website): new translations

* New translations packages.md (Italian)
docs(website): new translations

* New translations auth.md (Polish)
docs(website): new translations

* New translations auth.md (Polish)
docs(website): new translations

* New translations cli.md (Polish)
docs(website): new translations

* New translations cli.md (Polish)
docs(website): new translations

* New translations config.md (Polish)
docs(website): new translations

* New translations config.md (Polish)
docs(website): new translations

* New translations contributing.md (Polish)
docs(website): new translations

* New translations dev-plugins.md (Polish)
docs(website): new translations

* New translations dev-plugins.md (Polish)
docs(website): new translations
2018-11-15 09:07:47 +01:00

2.9 KiB
Raw Blame History

id title
authentification Authentification

Аутентификација је везана за auth plugin који користите. Ограничења пакета су дефинисана преко Package Access.

Аутентификацију клијента врши сам npm клијент. Након пријаве на апликацију:

npm adduser --registry http://localhost:4873

Токен се генерише у фајлу за конфигурацију npm који се налази у home фолдеру корисника. Како бисте сазнали више о .npmrc прочитајте official documentation.

cat .npmrc
registry=http://localhost:5555/
//localhost:5555/:_authToken="secretVerdaccioToken"
//registry.npmjs.org/:_authToken=secretNpmjsToken

Анонимно публиковање

verdaccio Вам омогућава да пружите могућност анонимног публиковања. Како бисте успели у томе, потребно је да подесите packages access.

Пример:

  'my-company-*':
    access: $anonymous
    publish: $anonymous
    proxy: npmjs

Као што је описано, on issue #212 све док npm@5.3.0 и све верзије не буду усаглашене неће Вам бити омогућено да публикујете без токена. Ипак, yarn нема таква ограничења.

Подразумевана htpasswd

Како би се поједноставио setup, verdaccio use a plugin базиран на htpasswd. Од верзије v3.0.x екстерни plugin се користи као подразумеван. Верзија v2.x и даље садржи уграђену верзију овог plugin-а.

auth:
  htpasswd:
    file: ./htpasswd
    # Maximum amount of users allowed to register, defaults to "+inf".
    # You can set this to -1 to disable registration.
    #max_users: 1000
Својство Тип Неопходно Пример Подршка Опис
file string Да ./htpasswd all фајл који садржи шифроване credentials
max_users number Не 1000 all подешава максимални број корисника

Ако се одлучите на то да не дозволите корисницима да се пријаве, можете подесити max_users: -1.