Skip to content

Commit

Permalink
Add Oauth org support
Browse files Browse the repository at this point in the history
- This restricts GH OAuth logins to be members of the InstructLab org
- Adds an error page with info for failed login attempts
- Adds logging for GH OAuth attempts
- Fixed a couple of lint + formatting fixes that snuck through
- Updated env.Example
- Moved a couple of interfaces into @/types

Signed-off-by: Brent Salisbury <[email protected]>
  • Loading branch information
nerdalert committed May 28, 2024
1 parent a6ab146 commit 5a6ee3d
Show file tree
Hide file tree
Showing 13 changed files with 465 additions and 71 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ yarn-error.log
yarn.lock
stats.json
.next/
auth.log
4 changes: 3 additions & 1 deletion ui/.env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
IL_UI_ADMIN_USERNAME=admin
IL_UI_ADMIN_PASSWORD=password
IL_UI_API_SERVER_USERNAME=kitteh
IL_UI_API_SERVER_PASSWORD=floofykittens
IL_UI_API_SERVER_URL=http://<IP>:8000
IL_UI_API_CHAT_URL=http:///<IP>:8000
OAUTH_GITHUB_ID=<OAUTH_APP_ID>
OAUTH_GITHUB_SECRET=<OAUTH_APP_SECRET>
NEXTAUTH_SECRET=<super_secret>
Expand All @@ -10,3 +11,4 @@ IL_GRANITE_API=<GRANITE_HOST>
IL_GRANITE_MODEL_NAME=<GRANITE_MODEL_NAME>
IL_MERLINITE_API=<MERLINITE_HOST>
IL_MERLINITE_MODEL_NAME=<MERLINITE_MODEL_NAME>
GITHUB_TOKEN=<TOKEN FOR OAUTH INSTRUCTLAB MEMBER LOOKUP>
Loading

0 comments on commit 5a6ee3d

Please sign in to comment.