Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/entire/cli/auth/cell_data_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ func (f *CellClientFactory) ClientFor(ctx context.Context, target *CellTarget) (
return api.NewClientWithBaseURL(f.subject.loginJWT, cellBaseURL), nil
}

// HomeJurisdiction is the home_jurisdiction claim of the login this factory
// dials with — the cell a nil target routes to. "" when the claim is absent.
func (f *CellClientFactory) HomeJurisdiction() (string, error) {
return HomeJurisdictionFromLoginJWT(f.subject.loginJWT)
}

// cellBaseURLFor resolves the cell origin ClientFor dials for target, checked
// safe to send the login JWT to.
func (f *CellClientFactory) cellBaseURLFor(ctx context.Context, target *CellTarget) (string, error) {
Expand Down
Loading
Loading