我正在使用Xamarin.Android开发应用程序,我需要登录系统。因此我正在使用Xamarin.Auth。我创建了一个OAuth2Authenticator,但没有使用auth.completed。 fire auth.completed如何成功?
val schema = StructType(schemaString.split("|^").map(fieldName =>StructField(fieldName, StringType, true)))
<console>:45: error: not found: value StructType
val schema = StructType(schemaString.split("|^").map(fieldName =>StructField(fieldName, StringType, true)))
^
<console>:45: error: not found: value StructField
val schema = StructType(schemaString.split("|^").map(fieldName => StructField(fieldName, StringType, true)))
^
<console>:45: error: not found: value StringType
val schema = StructType(schemaString.split("|^").map(fieldName => StructField(fieldName, StringType, true)))
^
答案 0 :(得分:0)
在版本1.4.x之前,Xamarin.Auth需要真实(现有)端点并尝试在嵌入式WebView中加载它,因此您的问题是:
redirectUrl: new Uri("ex/callback")
您需要http://somehost.top.level.domain之类的内容。注意:localhost不适用于Xamarin.Auth的编号版本。
从版本1.4.0开始,其中一些限制被删除,并且允许使用自定义方案的redirect_url。