Skip to content

Instantly share code, notes, and snippets.

@lforite
Created October 22, 2021 07:51
Show Gist options
  • Save lforite/de1a1516744442d86cd8df1e8885c8e7 to your computer and use it in GitHub Desktop.
Save lforite/de1a1516744442d86cd8df1e8885c8e7 to your computer and use it in GitHub Desktop.
Scala web series Pt. 1 combined authorization predicates
(
HasClient(request.clientId) &&
HasProjects(request.projects) &&
(
HasPermission("data.write") ||
HasPermission("data.all")
)
).evaluate(token)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment