I am trying to install squidex using docker-compose as per https://docs.squidex.io/01-getting-started/installation/install-docker however I get Invalid redirect_uri when i try to login. I also made an instance on pwd https://labs.play-with-docker.com/p/bnn5500t969000ecbnb0#bnn5500t_bnn5csot969000ecbp10 with the same result. I tried to use local and public domains and also http instead of https to no avail. Do I miss something?
It is very likely related to the URLS__BASEURL setting.
I tried multiple times local and pwd with, the same error Invalid redirect_uri. My local URLS__BASEURL=http://squidex.local/ which is pointed to a docker-machine ip. http://squidex.local/:5000 loads fine but I can’t go any further. Is there anything I can look at? Thanks
Can you share the first log entry where squidex prints all settings to the log stream?
Where can I find the log?
You have to use docker: docker logs <CONTAINER_ID>
I think the problem was with squidex.local unable to resolve inside squidex container. I changed baseurl": to docker-machine ip 192.168.99.103 which is accessible from the inside of the container but i still get the same error.
Please find the log below
"logLevel": "Information",
"message": "Application started",
"environment": {
"applicationname": "Squidex",
"aspnetcore_urls": "http://\u002B:80",
"aspnetcore_version": "3.0.0",
"assets:defaultpagesize": "200",
"assets:defaultpagesizegraphql": "20",
"assets:maxresults": "200",
"assets:maxsize": "5242880",
"assetstore:amazons3:accesskey": "\u003CMY_KEY\u003E",
"assetstore:amazons3:bucketfolder": "squidex-assets",
"assetstore:amazons3:bucketname": "squidex-assets",
"assetstore:amazons3:regionname": "eu-central-1",
"assetstore:amazons3:secretkey": "\u003CMY_SECRET\u003E",
"assetstore:azureblob:connectionstring": "UseDevelopmentStorage=true",
"assetstore:azureblob:containername": "squidex-assets",
"assetstore:exposesourceurl": "False",
"assetstore:folder:path": "Assets",
"assetstore:ftp:password": "",
"assetstore:ftp:path": "Assets",
"assetstore:ftp:serverhost": "",
"assetstore:ftp:serverport": "21",
"assetstore:ftp:username": "",
"assetstore:googlecloud:bucket": "squidex-assets",
"assetstore:mongodb:bucket": "fs",
"assetstore:mongodb:configuration": "mongodb://localhost",
"assetstore:mongodb:database": "SquidexAssets",
"assetstore:type": "Folder",
"contentroot": "/app",
"contents:defaultpagesize": "200",
"contents:defaultpagesizegraphql": "20",
"contents:maxresults": "200",
"contentscontroller:enablesurrogatekeys": "True",
"contentscontroller:maxitemsforsurrogatekeys": "200",
"dotnet_running_in_container": "true",
"dotnet_version": "3.0.0",
"email:notifications:existinguserbody": "Dear User,\r\n\r\n$ASSIGNER_NAME ($ASSIGNER_EMAIL) has invited you to join App $APP_NAME at Squidex Headless CMS.\r\n\r\nLogin or reload the Management UI to see the App.\r\n\r\nThank you very much,\r\nThe Squidex Team\r\n\r\n\u003C\u003CStart now!\u003E\u003E [$UI_URL]",
"email:notifications:existingusersubject": "[Squidex CMS] You have been invited to join App $APP_NAME",
"email:notifications:newuserbody": "Welcome to Squidex\r\nDear User,\r\n\r\n$ASSIGNER_NAME ($ASSIGNER_EMAIL) has invited you to join Project (also called an App) $APP_NAME at Squidex Headless CMS. Login with your Github, Google or Microsoft credentials to create a new user account and start editing content now.\r\n\r\nThank you very much,\r\nThe Squidex Team\r\n\r\n\u003C\u003CStart now!\u003E\u003E [$UI_URL]",
"email:notifications:newusersubject": "You have been invited to join Project $APP_NAME at Squidex CMS",
"email:smtp:enablessl": "True",
"email:smtp:password": "",
"email:smtp:port": "465",
"email:smtp:sender": "hello@squidex.io",
"email:smtp:server": "",
"email:smtp:username": "",
"etags:strong": "False",
"eventpublishers:alltorabbitmq:configuration": "amqp://guest:guest@localhost/",
"eventpublishers:alltorabbitmq:enabled": "False",
"eventpublishers:alltorabbitmq:eventsfilter": ".*",
"eventpublishers:alltorabbitmq:exchange": "squidex",
"eventpublishers:alltorabbitmq:type": "RabbitMq",
"eventstore:cosmosdb:configuration": "https://localhost:8081",
"eventstore:cosmosdb:database": "Squidex",
"eventstore:cosmosdb:masterkey": "C2y6yDjf5/R\u002Bob0N8A7Cgv30VRDJIWEHLM\u002B4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==",
"eventstore:geteventstore:configuration": "ConnectTo=tcp://admin:changeit@localhost:1113; HeartBeatTimeout=500; MaxReconnections=-1",
"eventstore:geteventstore:prefix": "squidex",
"eventstore:geteventstore:projectionhost": "localhost",
"eventstore:mongodb:configuration": "mongodb://squidex_mongo",
"eventstore:mongodb:database": "Squidex",
"eventstore:type": "MongoDb",
"exposedconfiguration:version": "squidex:version",
"healthz:gc:threshold": "4096",
"home": "/root",
"hostname": "68712be9e8c5",
"identity:adminclientid": "",
"identity:adminclientsecret": "",
"identity:adminemail": "igorekp@gmail.com",
"identity:adminpassword": "Abirvalg#2",
"identity:adminrecreate": "False",
"identity:allowpasswordauth": "True",
"identity:githubclient": "",
"identity:githubsecret": "",
"identity:googleclient": "",
"identity:googlesecret": "",
"identity:lockautomatically": "False",
"identity:microsoftclient": "",
"identity:microsoftsecret": "",
"identity:microsofttenant": "",
"identity:oidcauthority": "",
"identity:oidcclient": "",
"identity:oidcname": "OIDC",
"identity:oidcscopes:0": "email",
"identity:oidcsecret": "",
"identity:privacyurl": "https://squidex.io/privacy",
"identity:showpii": "False",
"kafka:bootstrapservers": "",
"languages:custom": "",
"letsencrypt_email": "squidex@incp.com",
"letsencrypt_host": "192.168.99.103",
"logging:colors": "True",
"logging:human": "True",
"mode:isreadonly": "False",
"news:appname": "squidex-website",
"news:clientid": "squidex-website:default",
"news:clientsecret": "QGgqxd7bDHBTEkpC6fj8sbdPWgZrPrPfr3xzb3LKoec=",
"orleans:clustering": "Development",
"orleans:gatewayport": "40000",
"orleans:siloport": "11111",
"path": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"plugins:0": "Squidex.Extensions.dll",
"rebuild:apps": "False",
"rebuild:assets": "False",
"rebuild:contents": "False",
"rebuild:indexes": "False",
"rebuild:rules": "False",
"rebuild:schemas": "False",
"robots:text": "User-agent: *\nAllow: /api/assets/*",
"rules:executiontimeoutinseconds": "3",
"running_in_container": "true",
"store:mongodb:configuration": "mongodb://squidex_mongo",
"store:mongodb:contentdatabase": "SquidexContent",
"store:mongodb:database": "Squidex",
"store:type": "MongoDb",
"translations:deeplauthkey": "",
"twitter:clientid": "QZhb3HQcGCvE6G8yNNP9ksNet",
"twitter:clientsecret": "Pdu9wdN72T33KJRFdFy1w4urBKDRzIyuKpc0OItQC2E616DuZD",
"ui:hidedatebuttons": "False",
"ui:hidenews": "False",
"ui:hideonboarding": "False",
"ui:map:googlemaps:key": "AIzaSyB_Z8l3nwUxZhMJykiDUJy6bSHXXlwcYMg",
"ui:map:type": "OSM",
"ui:onlyadminscancreateapps": "False",
"ui:redirecttologin": "False",
"ui:referencesdropdownitemcount": "100",
"ui:regexsuggestions:email": "^[a-zA-Z0-9.!#$%\u0026\u2019*\u002B\\/=?^_\u0060{|}~-]\u002B@[a-zA-Z0-9-]\u002B(?:.[a-zA-Z0-9-]\u002B)*$",
"ui:regexsuggestions:phone": "^\\(*\\\u002B*[1-9]{0,3}\\)*-*[1-9]{0,3}[-. /]*\\(*[2-9]\\d{2}\\)*[-. /]*\\d{3}[-. /]*\\d{4} *e*x*t*\\.* *\\d{0,4}$",
"ui:regexsuggestions:slug": "^[a-z0-9]\u002B(\\-[a-z0-9]\u002B)*$",
"ui:regexsuggestions:url": "^(?:http(s)?:\\/\\/)?[\\w.-]\u002B(?:\\.[\\w\\.-]\u002B)\u002B[\\w\\-\\._~:\\/?#%[\\]@!\\$\u0026\u0027\\(\\)\\*\\\u002B,;=.]\u002B$",
"ui:showinfo": "False",
"urls": "http://\u002B:80",
"urls:baseurl": "http://192.168.99.103/",
"urls:enforcehttps": "False",
"version": "3.0.0",
"virtual_host": "192.168.99.103"
},
"app": {
"name": "Squidex",
"version": "4.0.3.0",
"sessionId": "457ebf53-31b5-4032-9685-dad0afc4311b"
},
"timestamp": "2019-12-17T13:06:54Z"
}
Usually squidex-local works when you add an entry to your host’'s host-file.