我正在努力让RegistrationFeature与twitter和facebook auth一起工作。 Twitter和Facebook正在运作,但RegistrationFeature似乎不想玩球。
以下是我得到的回复:
回复状态
错误CodeRequestBindingExceptionmessageUnable在ServiceStack.WebHost.Endpoints.RestHandler.ProcessRequest(IHttpRequest httpReq,IHttpResponse httpRes,String operationName)的ServiceStack.WebHost.Endpoints.RestHandler.GetRequest(IHttpRequest httpReq,IRestPath restPath)上绑定requeststack跟踪
以下是我在ConfigureAuth中的代码:
var appSettings = new AppSettings();
Plugins.Add(new AuthFeature(
() =>
new AuthUserSession(),
new IAuthProvider[] {
new CredentialsAuthProvider(),
new TwitterAuthProvider(appSettings),
new FacebookAuthProvider(appSettings),
new GoogleOpenIdOAuthProvider(appSettings)
}));
Plugins.Add(new RegistrationFeature());
var mongoClient = new MongoClient("mongodb://192.168.0.17");
var server = mongoClient.GetServer();
var db = server.GetDatabase("Sonatribe");
container.Register<IUserAuthRepository>(c =>
new MongoDBAuthRepository(db, true));
我缺少什么想法?
答案 0 :(得分:2)
也发生在我身上。原来这是没有传递整数的招摇,因为我的变量中有空格:
[ApiMember(Name = " TrackingItemId", ......
(注意变量之前的空格!)