[x] Regression (a behavior that stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Documentation issue or request
Current behavior
I a have some web app which consume API from squidex. To make it faster and avoid round trip thru cloudflare (in our case) i use docker name as url endpoint for squidex client. This worked well until the last upgrade to 6.6.0. Now i got this error:
System.Security.SecurityException: Failed to retrieve access token for client 'xxx', got HTTP InternalServerError - Method: POST, RequestUri: 'http://squidex_squidex/identity-server/connect/token', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Request-Id: |036436b9d237d6a57b323d58eb9148eb.d226f05ab0d33b5f.
traceparent: 00-036436b9d237d6a57b323d58eb9148eb-d226f05ab0d33b5f-00
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 136
} for url http://squidex_squidex/identity-server/connect/token
Expected behavior
Is this expected change?
Environment
[x] Self hosted with docker
[ ] Self hosted with IIS
[ ] Self hosted with other version
[ ] Cloud version
Version: 6.6.0
Other:
I use nswag to generate api inspired with official sdk with similar IAuthenticator as official sdk.
It happens only when i connect to squidex_squidex (which is container name).
If i connect to bash inside my app container (not the one which runs squidex but, the one which runs application consuming squidex API).
And when i call: curl -X POST -d 'grant_type=client_credentials&client_id=xxx&client_secret=xxx&scope=squidex-api' http://squidex_squidex/identity-server/connect/token
Perfect basically it means that there have to be use endpoint with same domain name as set via URLS__BASEURL if I understand conservation of the issue correctly.