You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a varnam_remove_word function, but is not available to use in both CLI and Go handlers. It'll be great if there is this endpoint.
But, this would be problematic for a public instance of varnamd. Which brings me to the authenticated endpoints feature mentioned in #17 : #17 (comment)
A simple "Authentication" header with a token would be fine. The password can be optionally passed to varnamd as a flag (hashed, plaintext would be a disaster of course).
By adding an auth, the endpoints that would probably require it would be :
Awesome, password can be configured directly from the config file. Didn't notice that before, oops.
Then this issue is only about the '/remove' endpoint to call varnam_remove_word in libvarnam
subins2000
changed the title
Endpoint for removing a word, Optional Authentication Flag
Authenticated endpoint for removing a word : /remove
Sep 25, 2020
There's a
varnam_remove_word
function, but is not available to use in both CLI and Go handlers. It'll be great if there is this endpoint.But, this would be problematic for a public instance of varnamd. Which brings me to the authenticated endpoints feature mentioned in #17 : #17 (comment)
A simple "Authentication" header with a token would be fine. The password can be optionally passed to
varnamd
as a flag (hashed, plaintext would be a disaster of course).By adding an auth, the endpoints that would probably require it would be :
OR simply avoid the auth, and implement it under enableInternalApis.
Usecase :
In the offline desktop, I'm adding an option to remove the word, but there's no endpoint to send to.
@athul @joicemjoseph interested to implement this ?
The text was updated successfully, but these errors were encountered: