golang sdk 中 RedirectUri 非可选

问题描述

Golang SDK 无法将 RedirectUri 设置为空。 根据文档说明,RedirectUri 为可选设置,但是在执行下面代码时要求必须填写。

重现步骤

options := &authentication.AuthenticationClientOptions{
		// 需要替换成你的 Authing 应用 ID
		AppId: config.GetString("Authing.AppId"),
		// 需要替换成你的 Authing 应用密钥
		AppSecret: config.GetString("Authing.AppSecret"),
		// 需要替换成你的 Authing 应用域名
		AppHost: config.GetString("Authing.AppHost"),
		// 需要替换成你的 Authing 应用回调地址
		RedirectUri: config.GetString("Authing.RedirectUri"),
	}
	client, err := authentication.NewAuthenticationClient(options)

附加信息