{"id":24666,"library":"stups-zign","title":"stups-zign","description":"OAuth2 token management CLI for obtaining and storing OAuth2 access tokens from OpenID Connect providers. Version 1.2.2 supports Python >=3.10. Developed by Zalando, no longer actively maintained.","status":"maintenance","version":"1.2.2","language":"python","source_language":"en","source_url":"https://github.com/zalando-build/zign","tags":["oauth2","token-management","cli","sts","zign"],"install":[{"cmd":"pip install stups-zign","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Used for token expiry parsing","package":"python-dateutil","optional":false},{"reason":"HTTP client for OAuth2 requests","package":"requests","optional":false},{"reason":"CLI framework","package":"click","optional":false}],"imports":[{"wrong":"from zign.api import ZignTokenManager","symbol":"ZignTokenManager","correct":"from zign import ZignTokenManager"}],"quickstart":{"code":"from zign.api import ZignTokenManager\nimport os\n\n# Use environment variables for credentials (common pattern)\nclient_id = os.environ.get('ZIGN_CLIENT_ID', '')\nclient_secret = os.environ.get('ZIGN_CLIENT_SECRET', '')\nurl = os.environ.get('ZIGN_TOKEN_URL', 'https://example.com/oauth2/token')\n\nmanager = ZignTokenManager()\ntoken = manager.get_token(url=url, client_id=client_id, client_secret=client_secret)\nprint(token.get('access_token', 'No token retrieved'))","lang":"python","description":"Initialize token manager and obtain an OAuth2 token using environment variables."},"warnings":[{"fix":"Migrate to alternative token management solutions.","message":"stups-zign is in maintenance mode. The Zalando STUPS ecosystem is being phased out. Consider migrating to keyring-based token storage or using OAuth2 libraries directly.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Set the ZIGN_TOKEN_DIR environment variable to a custom path if needed.","message":"Token storage path defaults to ~/.zign/tokens.json. Ensure read/write permissions in that directory.","severity":"gotcha","affected_versions":"all"},{"fix":"Use .get('access_token') and handle missing token gracefully.","message":"The get_token method raises a KeyError if the required fields are missing in the response. Always check for access_token in the returned dict.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.2.2':20 '3.10':23 'access':13 'activ':29 'cli':7,35 'connect':17 'develop':24 'longer':28 'maintain':30 'manag':6,34 'oauth2':4,12,31 'obtain':9 'openid':16 'provid':18 'python':22 'store':11 'sts':36 'stup':2 'stups-zign':1 'support':21 'token':5,14,33 'token-manag':32 'version':19 'zalando':26 'zign':3,37","created_at":"2026-05-01T08:14:17.840090+00:00","updated_at":"2026-05-01T08:14:17.840090+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'ZignTokenManager' from 'zign' (/tmp/tmp_npe62yl/venv/lib/python3.12/site-packages/zign/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.2.2","cli_name":"zign","cli_version":"zign 1.2.2","type":"library","homepage":null,"github":"https://github.com/zalando-build/zign","docs":null,"changelog":null,"pypi":"https://pypi.org/project/stups-zign/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth-security","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}