dailp

Module auth

source
Expand description

This module contains types related to authentication

Eg. our UserInfo (what we know about the user making the request) and its various deserialization routines. Also GraphQL Guards for restricting access based on the user making the request.

Structs§

  • A helper type for deserializing UserInfo from AWS ApiGateway
  • serde deserialization struct for UserInfo.
  • Requires that the user is authenticated.
  • Requires that the user is authenticated and a member of the given user group.
  • A helper type for deserializing UserInfo from a Cognito JWT
  • serde deserialization struct for UserInfo.
  • Blocks access if the user is in the specified group.
  • Auth metadata on the user making the current request.

Enums§

  • A user belongs to any number of user groups, which give them various permissions.