Closed dfsoeten closed 3 years ago
Hey,
that's normal as it's not a real bearer token. It's generated with OpenSSL.
That error is thrown when the token is empty or invalid. https://github.com/FriendsOfShopware/packages/blob/e2bd9c4c4bf7cb21c121bdbb4496230726f6f44f/src/Components/RequestContextResolver.php#L23
Did you created the auth.json?
Hey, thanks for your swift reply.
I did the following:
auth.json
in the same directory as my composer.json
:
{
"bearer": {
"packages.friendsofshopware.com": "<token here>"
}
}
auth.json
composer require store.shopware.com/molliepayments
inside my container
I've verified that auth.json
exists inside my containerResult:
$ tree -L 1 -P 'composer.*|auth.json'
.
├── artifacts
├── auth.json
├── bin
├── composer.json
├── composer.lock
├── config
├── custom
├── files
├── public
├── src
├── var
└── vendor
The repository
section inside my composer.json
looks like this:
"repositories": [
{
"type": "path",
"url": "custom/static-plugins/*",
"options": {
"symlink": true
}
},
{
"type": "composer",
"url": "https://packages.friendsofshopware.com/"
}
]
Which Composer version are you using?
$ composer --version
Composer version 1.8.6 2019-06-11 15:03:05
Thats pretty old. Can you update to an newer one?
That solved my issue, thanks!
Whenever I reload the account page, the bearer token keeps rotating. This results in the following error:
What is going on here?