microsoft / code-push-server

Standalone CodePush server from App Center
MIT License
605 stars 157 forks source link

How to skip cli authentication if run locally? #13

Closed gentlee closed 1 month ago

gentlee commented 1 month ago

There is a DEBUG_DISABLE_AUTH env but looks like it doesn't make it work.

gentlee commented 1 month ago

There is a line in ENVIRONMENT.md about it:

DEBUG_DISABLE_AUTH: Disable the OAuth autentication route, allowing you to make requests as anybody without authorizing. Do not set this without going through the proper channels (see section Disabling Auth)

But there is no Disabling Auth section in the repo.

lucen-ms commented 1 month ago

We have updated readme to clarify how skipping authentication works.

gentlee commented 1 month ago

@lucen-ms so when running locally, is it possible to skip OAuth step and create existing user under which use the app, together with cli?

lucen-ms commented 1 month ago

It's not possible - you need to add user via OAuth step first.