Skip to content

Commit

Permalink
Update Auth Filter Test
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeWilmoth committed Oct 23, 2024
1 parent 86c300d commit 3627720
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions app/filters/AuthFilter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ import scala.io.Source

class AuthFilter @Inject()(implicit val mat: Materializer, ec: ExecutionContext) extends Filter {

// private val routeToRequiredScopes: Map[String, Set[String]] = Map(
// "/management/getInventoryPhotos" -> Set("manage:inventory"),
// "/management/getAllVin" -> Set("manage:inventory"),
// "/management/getAllInventory" -> Set("manage:inventory"),
// "/management/getInventoryItem" -> Set("manage:inventory"),
// "/management/addInventory" -> Set("manage:inventory"),
// "/management/updateInventory" -> Set("manage:inventory"),
// "/management/deleteInventory" -> Set("manage:inventory"),
// )

private val routeToRequiredScopes: Map[String, Set[String]] = Map(
"/management/getInventoryPhotos" -> Set("manage:inventory"),
"/management/getAllVin" -> Set("manage:inventory"),
"/management/getAllInventory" -> Set("manage:inventory"),
"/management/getInventoryItem" -> Set("manage:inventory"),
"/management/addInventory" -> Set("manage:inventory"),
"/management/updateInventory" -> Set("manage:inventory"),
"/management/deleteInventory" -> Set("manage:inventory"),
"/api/test" -> Set("manage:inventory"),
)

// Function to fetch JWKS from Auth0
Expand Down

0 comments on commit 3627720

Please sign in to comment.