Skip to content

Add external auth contract integration#51

Open
ns-mkusper wants to merge 8 commits into
nebari-dev:mainfrom
ns-mkusper:feat/external-auth-contract-consumer
Open

Add external auth contract integration#51
ns-mkusper wants to merge 8 commits into
nebari-dev:mainfrom
ns-mkusper:feat/external-auth-contract-consumer

Conversation

@ns-mkusper

@ns-mkusper ns-mkusper commented May 4, 2026

Copy link
Copy Markdown

Adds the external auth consumer path to JupyterHub spawning.

When a user has linked GitHub through external-auth, new notebook servers receive GITHUB_TOKEN and GH_TOKEN. The spawn hook also configures Git at container startup so normal commands like git clone https://github.com/openteams-ai/mystic-checkmaite-plugin-custody.git work without users manually editing clone URLs or adding credential helpers.

The Git credential helper reads GITHUB_TOKEN at runtime and does not write the token value into git config. Existing lifecycle postStart hooks are preserved and appended to.

Validation:

python -m pytest tests/unit/test_external_auth.py -q

python -m pytest tests/unit -q

@ns-mkusper ns-mkusper force-pushed the feat/external-auth-contract-consumer branch from 2623cf9 to 6adba36 Compare May 4, 2026 17:02
@ns-mkusper ns-mkusper force-pushed the feat/external-auth-contract-consumer branch from ec3f250 to 56d5599 Compare June 18, 2026 18:52
@ns-mkusper ns-mkusper marked this pull request as ready for review June 18, 2026 18:54
@ns-mkusper ns-mkusper force-pushed the feat/external-auth-contract-consumer branch from 56d5599 to 56fc30c Compare June 18, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant