Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion sdk/codegen/runner/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func New%s%s%sConnectWrapper(httpClient connect.HTTPClient, baseURL string, opts
prefix,
interfaceName,
packagePath,
packagePath+"/"+connectPackageName,
path.Join(packagePath, connectPackageName),
prefix,
interfaceName,
suffix,
Expand Down
5 changes: 4 additions & 1 deletion service/internal/auth/authn.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ func (a Authentication) ConnectUnaryServerInterceptor() connect.UnaryInterceptor

// parse the rpc method
p := strings.Split(req.Spec().Procedure, "/")
resource := p[1] + "/" + p[2]
resource, err := url.JoinPath(p[1], p[2])
if err != nil {
return nil, connect.NewError(connect.CodeInternal, fmt.Errorf("invalid procedure path: %w", err))
}
Comment thread
jakedoublev marked this conversation as resolved.
Outdated
Comment thread
jakedoublev marked this conversation as resolved.
Outdated
action := getAction(p[2])

token, ctxWithJWK, err := a.checkToken(
Expand Down
Loading