-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to configure client settings or credential settings #9
Comments
This is not exactly correct. Server or Client, credentials are always added to the servient, which can have client and/or server sides.
This makes sense. Just for username and password, you need two fields and for token only one field. |
@egekorkan
Sorry, there was a mistake.
I was going to allow the flexibility to define it in JSON as well as |
I have created a sample to see how to use the authentication feature of Binding HTTP. https://github.com/hidetak/test-node-wot/tree/main/auth-http/src If you notice anything, I would be happy to point it out. |
PR #10 now supports Basic authentication only. In this case, I have prepared an input form specifically for Basic Auth, and have made the necessary settings in ServerConfig and Servient.addCredentials. I would appreciate it if you could let me know if there is any discrepancy in this policy. |
@hidetak this looks good :) @danielpeintner this would be useful in the readmes of HTTP binding no? |
@egekorkan what do you mean exactly? I think there is a secure example in HTTP, see https://github.com/eclipse-thingweb/node-wot/tree/master/packages/binding-http#server-example
|
Done via #10 @danielpeintner what I had meant was a client-server pair available above. |
Currently, the arguments of the *Server class (e.g., HttpServer class) constructor can be specified in the Binding config of the wot-server-config node, as shown in the screenshot below.
If I understand correctly, the user would also need to configure the following settings.
servient.addCredentials
method)I think the credential for 1 is set for each Thing, so I would like to add a form to specify the credential and Thing ID to the following configuration screen for each Thing.
I would appreciate it if you could point out if my understanding is incorrect.
The text was updated successfully, but these errors were encountered: