{"library":"scitokens","title":"SciTokens","description":"Reference implementation of the SciToken authentication and authorization library, providing token creation, validation, and enforcement for distributed scientific computing. Current version 1.9.7, requires Python >=3.5. Releases are irregular, driven by community needs.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install scitokens"],"cli":{"name":"scitokens-admin","version":"sh: 1: scitokens-admin: not found"}},"imports":["from scitokens import SciToken","from scitokens import Enforcer"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import scitokens\nimport os\n\ntoken = scitokens.SciToken(\n    issuer=os.environ.get('SCITOKENS_ISSUER', 'https://example.com/'),\n    key_id='rsa_key',\n)\ntoken.update_claims({'sub': 'user123', 'scope': 'read:/data'})\nserialized = token.serialize(serialization_type='unprotected')\nprint(serialized)","lang":"python","description":"Create and serialize an unprotected SciToken using an issuer and key ID.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}