`WebFolder/index.html` created on the first webServer start
Ganbin opened this issue · comments
When I use the component, a WebServer
folder with the default index.html
file are created.
This prevent my redirect to works because the redirect will return this index.html
page instead of going through the On Web Connection
database method.
My redirect URI is http://127.0.0.1:8081/
I have to delete manually the WebFolder
to make it works.
Hi, it’s a 4D behavior, not directly related to this component code
For me it’s a bad idea to not add a path in the url
Any code to manage the authentification must be run after checking that url path from the request match
For instance http://127.0.0.1:8081/oauth/callback (or /authorize)
(The only things that this component could do is to warn about that)
Thanks for the answer.
I think I will also use a different url path like in your suggestion.
However I have found a way to not generate this default index.html
page by setting the name to an empty string in the settings of the web server. With this I was able to work with my current redirect_uri http://127.0.0.1:8081/
. It may be a good idea to not generate this file during the first run as it may broke the signature.
![2023-06-09_16-48-34](https://private-user-images.githubusercontent.com/1487962/244742612-2b22fbfc-a243-4a74-a0cc-6feef9a2a0e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0NDY1MzIsIm5iZiI6MTcyMzQ0NjIzMiwicGF0aCI6Ii8xNDg3OTYyLzI0NDc0MjYxMi0yYjIyZmJmYy1hMjQzLTRhNzQtYTBjYy02ZmVlZjlhMmEwZTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTJUMDcwMzUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGFlNGMyYjI0ZWYzZGEzZGMwY2Y3NDM2MjZiZTliZDNkMjQzMzgzNTQ5YjdjY2Q2OGQ3ODc2MDNiYTVkY2MzOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.uNyPEHq4YMv-xL4dNmUpcIL9gw3sjxbrn8DIcIzU_B8)
Although I agree with Eric, I fixed the issue because yes, it is possible to define an empty home page and still call OWA/OWC.