MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / Enabled

Method Enabled

internal/auth/discourse.go:49–51  ·  view source on GitHub ↗

Enabled 返回 Discourse SSO 是否已配置。

()

Source from the content-addressed store, hash-verified

47
48// Enabled 返回 Discourse SSO 是否已配置。
49func (d *DiscourseConfig) Enabled() bool {
50 return d != nil && d.URL != "" && d.Secret != ""
51}
52
53// BuildRedirectURL 构造跳转到 Discourse 的 SSO 发起 URL。
54// returnURL 是 Discourse 认证完成后的回调地址(即本服务的 callback 端点)。

Callers 3

RunFunction · 0.95
discourseRedirectMethod · 0.80
discourseCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected