RAPyDo HTTP-APIs
3.1
  • restapi
    • restapi.config
    • restapi.endpoints
    • restapi.env
    • restapi.exceptions
    • restapi.models
    • restapi.rest
    • restapi.services
      • restapi.services.authentication
        • restapi.services.authentication.get_login_ban_time
        • restapi.services.authentication.get_max_login_attempts
        • restapi.services.authentication.get_timedelta
        • restapi.services.authentication.import_secret
        • restapi.services.authentication.BaseAuthentication
        • restapi.services.authentication.DecodedPayload
        • restapi.services.authentication.NoAuthentication
        • restapi.services.authentication.Payload
        • restapi.services.authentication.Role
        • restapi.services.authentication.Token
        • restapi.services.authentication.AuthMissingTOTP
        • restapi.services.authentication.InvalidToken
    • restapi.types
    • restapi.utilities
RAPyDo HTTP-APIs
  • restapi
  • restapi.services
  • restapi.services.authentication
  • restapi.services.authentication.BaseAuthentication
  • restapi.services.authentication.BaseAuthentication.link_roles
  • Edit on GitHub

restapi.services.authentication.BaseAuthentication.link_roles

abstract BaseAuthentication.link_roles(user, roles)[source]

A method to assign roles to a user

Parameters:
  • user (Any)

  • roles (list[str])

Return type:

None

Previous Next

© Copyright RAPyDo. Revision a331a416.

Built with Sphinx using a theme provided by Read the Docs.