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