MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / extractHost

Function extractHost

server-source-code/internal/handler/oidc.go:678–684  ·  view source on GitHub ↗
(u string)

Source from the content-addressed store, hash-verified

676}
677
678func extractHost(u string) string {
679 parsed, err := url.Parse(u)
680 if err != nil {
681 return u
682 }
683 return parsed.Hostname()
684}
685
686func (h *OidcHandler) oidcIssuerURL() string {
687 if h.resolved != nil {

Callers 2

CallbackMethod · 0.85
createOidcUserMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected