MCPcopy Create free account
hub / github.com/bytebase/bytebase / validateRedirectURI

Function validateRedirectURI

backend/api/oauth2/oauth2.go:162–164  ·  view source on GitHub ↗
(uri string, allowedURIs []string)

Source from the content-addressed store, hash-verified

160}
161
162func validateRedirectURI(uri string, allowedURIs []string) bool {
163 return slices.Contains(allowedURIs, uri)
164}
165
166func isLocalhostURI(uri string) bool {
167 parsed, err := url.Parse(uri)

Callers 2

handleAuthorizeGetMethod · 0.85
handleAuthorizePostMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected