OAuth..::..GenerateOAuthUrl Method

生成OAuth链接

页面需要跳转至OAuth链接,请用前端javascript方法跳转,建议后台使用CivetHelper.JsRedirect方法生成javascript代码。

Namespace:  PDSS.CivetPublic.User
Assembly:  PDSS.CivetPublic.User (in PDSS.CivetPublic.User.dll)

Syntax


public string GenerateOAuthUrl(
	string redirect_uri,
	OAuth..::..eScope scope,
	bool getlocation
)
Public Function GenerateOAuthUrl ( _
	redirect_uri As String, _
	scope As OAuth..::..eScope, _
	getlocation As Boolean _
) As String
public:
String^ GenerateOAuthUrl(
	String^ redirect_uri, 
	OAuth..::..eScope^ scope, 
	bool^ getlocation
)

Parameters

redirect_uri
Type: String
已授权域名下的网址
scope
Type: PDSS.CivetPublic.User..::..OAuth..::..eScope
获取资料的范围
getlocation
Type: Boolean
是否获取用户位置

Return Value

返回OAuth链接