get OAuth Authorize Url
fun getOAuthAuthorizeUrl(redirectUri: String, scope: String? = null, state: String? = null, enablePkce: Boolean = true, codeChallenge: String? = null): String
生成 OAuth 授权 URL。
Return
完整的授权 URL
Parameters
redirect Uri
重定向 URI
scope
权限范围(可选)
state
状态参数,用于防止 CSRF 攻击(可选)
enable Pkce
是否启用 PKCE(可选,默认启用)
code Challenge
PKCE code_challenge 值(可选,启用 PKCE 时若未提供则自动生成)
Throws
当缺少 clientId 时抛出