Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

Comment thread
renaudhager marked this conversation as resolved.
Outdated
---
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

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] products/paas/shopware/fundamentals/plugins-store-authentication.md#L9

The modal verb ‘might’ requires the verb’s base form. (MD_BASEFORM[3]) Suggestions: `need` Rule: https://community.languagetool.org/rule/show/MD_BASEFORM?lang=en-US&subId=3 Category: GRAMMAR
Raw output
products/paas/shopware/fundamentals/plugins-store-authentication.md:9:24: The modal verb ‘might’ requires the verb’s base form. (MD_BASEFORM[3])
 Suggestions: `need`
 Rule: https://community.languagetool.org/rule/show/MD_BASEFORM?lang=en-US&subId=3
 Category: GRAMMAR

Check warning on line 9 in products/paas/shopware/fundamentals/plugins-store-authentication.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] products/paas/shopware/fundamentals/plugins-store-authentication.md#L9

Nouns are not usually modified by plural nouns. Is it possible that you meant to use the singular or possessive form here? (PLURAL_MODIFIER[1]) Suggestions: `plugin`, `plugins'` Rule: https://community.languagetool.org/rule/show/PLURAL_MODIFIER?lang=en-US&subId=1 Category: GRAMMAR
Raw output
products/paas/shopware/fundamentals/plugins-store-authentication.md:9:56: Nouns are not usually modified by plural nouns. Is it possible that you meant to use the singular or possessive form here? (PLURAL_MODIFIER[1])
 Suggestions: `plugin`, `plugins'`
 Rule: https://community.languagetool.org/rule/show/PLURAL_MODIFIER?lang=en-US&subId=1
 Category: GRAMMAR

Check warning on line 9 in products/paas/shopware/fundamentals/plugins-store-authentication.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] products/paas/shopware/fundamentals/plugins-store-authentication.md#L9

“Document” is a singular noun. It appears that the verb form is incorrect. (PCT_SINGULAR_NOUN_PLURAL_VERB_AGREEMENT[1]) Suggestions: `explains` Rule: https://community.languagetool.org/rule/show/PCT_SINGULAR_NOUN_PLURAL_VERB_AGREEMENT?lang=en-US&subId=1 Category: GRAMMAR
Raw output
products/paas/shopware/fundamentals/plugins-store-authentication.md:9:124: “Document” is a singular noun. It appears that the verb form is incorrect. (PCT_SINGULAR_NOUN_PLURAL_VERB_AGREEMENT[1])
 Suggestions: `explains`
 Rule: https://community.languagetool.org/rule/show/PCT_SINGULAR_NOUN_PLURAL_VERB_AGREEMENT?lang=en-US&subId=1
 Category: GRAMMAR

We rely on `composer` to fecth plugin during build time configured with two environment variables: `SHOPWARE_PACKAGES_TOKEN` and `COMPOSER_AUTH`.
Comment thread
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`.
Comment thread
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
```
Comment thread
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:
```
Comment thread
sushmangupta marked this conversation as resolved.
Outdated
sw-paas vault create --type buildenv --key COMPOSER_AUTH
```
Comment thread
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"
}
}
```
Loading