MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / buildOidcCallbackURL

Function buildOidcCallbackURL

server-source-code/internal/handler/oidc.go:513–519  ·  view source on GitHub ↗
(cfg *config.Config, s *models.Settings)

Source from the content-addressed store, hash-verified

511}
512
513func buildOidcCallbackURL(cfg *config.Config, s *models.Settings) string {
514 base := strings.TrimSuffix(cfg.CORSOrigin, "/")
515 if s != nil && strings.TrimSpace(s.ServerURL) != "" {
516 base = strings.TrimSuffix(strings.TrimSpace(s.ServerURL), "/")
517 }
518 return base + "/api/v1/auth/oidc/callback"
519}
520
521func applyOidcSettingsUpdate(s *models.Settings, req map[string]interface{}, enc *util.Encryption) {
522 if v, ok := getReqBool(req, "oidc_enabled", "oidcEnabled"); ok {

Callers 3

GetSettingsMethod · 0.85
ImportFromEnvMethod · 0.85
UpdateSettingsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected