Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created Middleware to Check a Users' Claim #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hanahhleee
Copy link
Contributor

Overview

Closes #17 : Created middleware routes to check a user's claim using Firebase Admin with custom claims.

Changes Made

Created middleware for the four options for a users' claim which include mobile-entry claim, web-entry claim, evaluator claim, and admin claim where the admin claim has access to both the mobile-entry and evaluator claims.

Test Coverage

  1. checkout branch check-claim-middleware
  2. check response message (Unauthorized vs Forbidden)

NOTE: Testing for middleware is limited at this time, more comprehensive testing needed after the CAPTCHA modal/authentication is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Middleware to Check a Users' Claim
1 participant