Skip to main content

Id-manager roles package

Project description

id-roles

Id-manager roles library
Simple library for managing access roles. Inspired bij OAUTH2 scopes.

Installation

   pip install id-roles

Role structure

Access roles can be described as keys with optional values using a single string.

    roles_str = "connect admin order[*] customer[read,update]"
  • Multiple roles are seperated by spaces and may contain an optional values string [value1,value2].
  • Values are separated by. ,
  • Role names may only contain alphanumeric characters and -, _ or :.
  • Role value may only contain alphanumeric characters and -, _ or ..
  • [*] is a special value string that indicated that all values are valid.
  • Role names and values are case sensitive

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

id-roles-0.0.6.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

id_roles-0.0.6-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page