Skip to content

fix(jh): set correct auth when server name is juliahub#15

Merged
thelonewolf1603 merged 3 commits intomainfrom
nd/auth-juliahub-fix
Feb 12, 2026
Merged

fix(jh): set correct auth when server name is juliahub#15
thelonewolf1603 merged 3 commits intomainfrom
nd/auth-juliahub-fix

Conversation

@thelonewolf1603
Copy link
Contributor

@thelonewolf1603 thelonewolf1603 commented Jan 23, 2026

fixes #4

auth.go Outdated
func deviceFlow(server string) (*TokenResponse, error) {
var authServer string
if server == "juliahub.com" {
if server == "juliahub.com" || server == "juliahub.juliahub.com" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this is a valid domain?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so if you add a server name e.g. custom , it will be converted to custom.juliahub.com. so if someone types only juliahub that will be converted to juliahub.juliahub.com

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in call, better to move this check part of normalizeServername just to be clean and clear

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in normalizeServer itself, seems much clearer now

@thelonewolf1603 thelonewolf1603 merged commit fadd2b0 into main Feb 12, 2026
1 check passed
@thelonewolf1603 thelonewolf1603 deleted the nd/auth-juliahub-fix branch February 12, 2026 08:06
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.

jh auth login -s juliahub should login to juliahub.com (not juliahub.juliahub.com)

2 participants