Add GitHub login with organization and group restrictions #609
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements GitHub authentication and access control for the Vets Who Code Next.js application, ensuring that only members of the Vets Who Code organization and specifically those in the "students" group can access the application. Additionally, updates the login page styling with Tailwind CSS for a responsive and accessible UI.
pages/api/auth/[...nextauth].ts
, configuring GitHub as an authentication provider and adding callbacks to verify organization and group membership.pages/api/auth/organization-membership.js
andpages/api/auth/group-membership.js
to check for membership in the Vets Who Code organization and the "students" group using the GitHub API.components/forms/login-form.tsx
to integrate with NextAuth.js for GitHub login, including UI feedback for login success or failure.tailwind.config.js
by adding custom styles for the login page, improving the visual presentation and user experience.env.local
with GitHub OAuth application Client ID, Client Secret, and the Vets Who Code GitHub organization ID to support the authentication flow.README.md
to include GitHub OAuth setup instructions and details on configuring access restrictions based on organization and group membership.For more details, open the Copilot Workspace session.