Skip to content

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

2 participants