Commit Graph
13 Commits
Author SHA1 Message Date
Yuhong Sun 351475de28 Consolidate versions for easier extension (#495) 2023-10-01 23:49:38 -07:00
Weves cea3e1f3d5 Add support for multiple allowed email domains + make slack bot logs go to stdout 2023-08-30 13:47:46 -07:00
jabdoa2 63780113d3 Add support for openid connect (#206)
This allow using Danswer in typical (non-google) enterprise environments.

* Access Tokens can be very large. A token without claims is already 1100 bytes for me (larger than allowed in danswer by default). With roles I got a 12kB token. For that reason I changed the field to TEXT in the database.
* Danswer used to swallow most errors when OIDC would fail. Nodejs forwards a request to the backend and swallows all errors. Even within the backend we catched all ValueErrors and only returned the last exception with the request. Added full stack trace logging to allow debugging issues with userinfo and other endpoints.
* Allow changing name of the login provider on the login button.
* Changed variables and URLs to generic OAUTH_XX (without google in the name) but kept compatibility with the existing google integration
* Tested again Keycloak with OpenID Connect

Next steps:
* Claim to role mappings
* Auto login/SSO (Login button is just an extra click)
2023-07-29 14:04:32 -07:00
Yuhong Sun 4b699fdab3 Better Logging (#184) 2023-07-16 01:41:48 -07:00
Yuhong Sun d53ec8a905 DAN-169 Users whitelist (#153) 2023-07-11 21:23:35 -07:00
Yuhong SunandWeves 6891e4f198 Standardize connectors + permissioning + new frontend for admin pages + small fixes / improvements (#75)
Introducing permissioning, standardize onboarding for connectors, re-make the data model for connectors / credentials / index-attempts, making all environment variables optional, a bunch of small fixes + improvements.

Co-authored-by: Weves <chrisweaver101@gmail.com>
2023-05-30 19:59:57 -07:00
Yuhong Sun fb9c3e530b DAN-58 Email validation (#39) 2023-05-13 14:05:21 -07:00
Yuhong Sun 6d1b750077 DAN-59 Fix all the mypy issues (#38) 2023-05-12 20:37:52 -07:00
Yuhong Sun 5af35cf07c DAN-57 Make qa / admin endpoints permissioned optionally (#37) 2023-05-12 20:34:30 -07:00
Yuhong Sun 312366eae1 DAN-45 Fix OAuth User Creation Flow (#22) 2023-05-09 20:45:43 -07:00
Yuhong Sun 9babe7fb95 DAN-40 Admin User Support (#18) 2023-05-07 16:30:49 -07:00
Yuhong Sun e20179048d DAN-5 OAuth Backend (#17)
Also added in an exception handler for logging
2023-05-06 23:47:21 -07:00
Yuhong Sun 63f93594a3 DAN-3 Authentication and User Registration (#12)
also added mypy.ini
2023-05-05 17:25:24 -07:00