-
Notifications
You must be signed in to change notification settings - Fork 307
feat: add documentation for Plugin Store Authentication #2209
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
Changes from 1 commit
88bcf9c
6d553b6
702d634
3d92bb3
ba1995b
ddcea8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
|
|
||
| --- | ||
| nav: | ||
| title: Plugin Store Authentication | ||
| position: 100 | ||
| --- | ||
|
|
||
| # Plugin Store Authentication | ||
| The build process might needs to authentication against plugins stores (Shopware official and any other one), this document explain how configure this authentication. | ||
|
Check warning on line 9 in products/paas/shopware/fundamentals/plugins-store-authentication.md
|
||
|
|
||
| We rely on `composer` to fecth plugin during build time configured with two environment variables: `SHOPWARE_PACKAGES_TOKEN` and `COMPOSER_AUTH`. | ||
|
sushmangupta marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## Shopware plugin store | ||
| Under normal circumstances, during the provisioning of your organisation we automatically create the secret `SHOPWARE_PACKAGES_TOKEN`. | ||
|
renaudhager marked this conversation as resolved.
Outdated
|
||
| This secret contains the token to authenticate against the official Shopware plugin store. | ||
|
|
||
| If this secret is not present you can recreate it: | ||
| ``` | ||
| sw-paas vault create --type buildenv --key SHOPWARE_PACKAGES_TOKEN | ||
| ``` | ||
|
sushmangupta marked this conversation as resolved.
Outdated
|
||
| Then just put the token provided by Shopware. | ||
|
|
||
| ## Third party plugin store | ||
| To authenticate against third party plugin store or plugin repository you need to create a secret named `COMPOSER_AUTH`. | ||
| The content need to be the json string required for the store/repository, run the following command: | ||
| ``` | ||
|
sushmangupta marked this conversation as resolved.
Outdated
|
||
| sw-paas vault create --type buildenv --key COMPOSER_AUTH | ||
| ``` | ||
|
sushmangupta marked this conversation as resolved.
Outdated
|
||
|
|
||
| The content of the secret needs to be a json string compatible with composer, for instance: | ||
| - basic auth string: | ||
| ```json | ||
| { | ||
| "http-basic": { | ||
| "git.mycompany.com": { | ||
| "password": "mypassword", | ||
| "username": "myuser" | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| - a bearer token: | ||
| ```json | ||
| { | ||
| "bearer": { | ||
| "git.mycompany.com": "mytoken" | ||
| } | ||
| } | ||
| ``` | ||
Uh oh!
There was an error while loading. Please reload this page.