What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
```{ "data": { "type": "access-tokens", "attributes": { "username": "
{ "data": { "type": "access-tokens", "attributes": { "username": "<mailto:admin@spryker.com|admin@spryker.com>", "password": "change123" } } }
Comments
-
try with
<mailto:sonia@spryker.com|sonia@spryker.com>
0 -
Still failed unfortunately
0 -
what is the URL?
0 -
So through postman, I'm just doing
{{ENDPOINT_URL}}/access-tokens
0 -
It seems to hit the endpoint
0 -
What is the
{{ENDPOINT_URL}}
?0 -
<http://glue.pricecoshop.local/>
0 -
Its just something we changed from http://glue.de.spryker.local/ in the config
0 -
so you are not missing
de
?? or the equivalent in your config0 -
I'll try this on a fresh B2C real quick to see if thats the problem
0 -
Mohammed, it seems I can authenticate Sonia on the B2C and not our own
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
Do u use docker/sdk? If yves, it can be possible that the oauth secret generated via docker/sdk matches not more with its one saved in db..
0 -
I can check via password_check agains the hash, I'll do that now
0 -
Yeah we use the docker/sdk
0 -
I think you missing with
store
subdomain within your configured URL
as you will see in the B2C withsonia
successfully authenticated the URL containedde
0 -
glue_eu: application: glue endpoints: glue.pricecoshop.local: store: DE
0 -
This is the deploy.dev.yml endpoint for this
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
it is the secret! i send u a workround to get this working again.. or just can just run
docker/sdk up --build --data
and thespy_oauth_client::secret
is again saved with actual Env value generated from docker/sdk0 -
I'll try the docker command real quick
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
ok
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
otherwise
β’ docker/sdk cli
β’ echo $SPRYKER_OAUTH_CLIENT_SECRET
β’ generate secret with password_hash bcrypt and save in spy_oauth_client -> secret0 -
@UL65CH0MC winner winner!
0 -
I ran that command
0 -
And now I can auth
0 -
I see that I can only auth users with email addresses that are validated. Can I change a value somewhere, I'm using <mailto:example@example.com|example@example.com> so the email technically goes nowhere
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
good! the secret is only saved on init-db command performed one time on docker/sdk up...
when u run another day just docker/sdk up the secret does not match more with its one in db...
what do u mean with:
Can I change a value somewhere, I'm using <mailto:example@example.com|example@example.com> so the email technically goes nowhere
0 -
in the docs it says
0 -
If you are authenticating as a newly created customer, make sure to verify your email address first. If an email address was not confirmed, the endpoint returns the
403 "Failed to authenticate user"
error.0 -
So I created a new customer using glue
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 927 Developer Corner
- 785 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random