4d / 4D-NetKit

4D NetKit is a built-in 4D component that allows you to interact with third-party web services and their APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`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

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.