Closed muratkarakas closed 6 years ago
Does you electrode-ota-server-routes-auth have "auth": "github-oauth",
? You should replace it with "auth":"basic"
. Please see updated documentation at the bottom of https://github.com/electrode-io/electrode-ota-server/tree/master/electrode-ota-server-auth-basic for example.
I've added the configuration you mentioned but still gives the same error. I've upload my project https://github.com/muratkarakas/ota-server-basic-auth-example . Can you check it?
I've updated the sample application added github config. It seems somehow github config is mandatory. After running server I can see two auth option (github works) but clicking basic auth has no effect it just gives error in white page "No Credentials Given". Is there missing configuration or my use case is wrong?
Thanks
Sorry, there was a bug. Please update to 4.4.3. Also, you can remove github from providers list, and disable github-oauth.
"strategy": {
"github-oauth": {
"enable": false
},
Add a realm under basic > options.
"options": {
"realm": "My realm"
In your validateFunc, in catch, call callback('some error', false, null)
or else the browser will just spin forever.
Hope that helps.
It worked. Thanks a lot
I'am trying to disable github login add basic auth with the following configuration (based on https://github.com/electrode-io/electrode-ota-server/tree/master/electrode-ota-server-auth-basic)
it gives the following error:
if I remove "github-oauth" part from configuration this time it gives this error:
What is the proper way of configuring and using basic auth with ota-server. Can you provide working full example.
Thanks