Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add method to auth with a token directly #58

Merged
merged 6 commits into from
Jun 25, 2024
Merged

Conversation

mortenpi
Copy link
Member

@mortenpi mortenpi commented Jun 13, 2024

Adds a second method to JuliaHub.authenticate that can be used to authenticate JuliaHub.jl directly with a token (rather than interactive auth or reading the auth.toml). Useful for e.g. CI, where you might have the token in an env. variable.

julia> JuliaHub.authenticate("juliahub.com", "eyJhbGciO...IJw")
JuliaHub.Authentication("https://juliahub.com", "mortenpi", *****)

cc @pmodv

@mortenpi mortenpi requested a review from pfitzseb June 13, 2024 02:12
@pfitzseb pfitzseb enabled auto-merge (squash) June 24, 2024 08:19
@pfitzseb pfitzseb merged commit 115f14e into main Jun 25, 2024
13 checks passed
@pfitzseb pfitzseb deleted the mp/auth-token branch June 25, 2024 10:45
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.

2 participants