microsoft / azurechat

🤖 💼 Azure Chat Solution Accelerator powered by Azure Open AI Service
MIT License
1.24k stars 1.21k forks source link

Local dev basic auth #196

Closed leongj closed 1 year ago

leongj commented 1 year ago

Added a "Basic Auth" login option when performing local development. This is useful for developers who don't have access to create new Azure AD or Github identity providers (e.g. App Registrations).

The Basic Auth will only appear in dev (process.env.NODE_ENV === "development")

It doesn't do any validation of the password. It creates a new user based on the username and setting the email to username@localhost. The email is hashed to create a unique userId.

Documentation updated as well.

thivy commented 1 year ago

@leongj if you wanted to use AAD or GitHub login for local development, how would you use it?