【发布时间】:2013-11-19 06:32:54
【问题描述】:
我只想在securesocial 2.0.12 中支持facebook 来玩2.1.0,所以我从securesocial.conf 中删除了其他提供者。我的应用程序现在无法启动,出现以下错误:
Cannot load plugin
An exception occurred during Plugin [securesocial.core.providers.LinkedInProvider] initialization
No source available, here is the exception stack trace:
->java.lang.RuntimeException: [securesocial] Missing properties for provider 'linkedin'. Verify your configuration file is properly set.
securesocial.core.IdentityProvider.throwMissingPropertiesException(IdentityProvider.scala:136)
securesocial.core.OAuth1Provider.createServiceInfo(OAuth1Provider.scala:50)
securesocial.core.OAuth1Provider.<init>(OAuth1Provider.scala:33)
securesocial.core.providers.LinkedInProvider.<init>(LinkedInProvider.scala:29)
删除所有不需要的提供程序后,我的 play.pluging 文件看起来像这样(只需要 facebook)
1500:com.typesafe.plugin.CommonsMailerPlugin
9994:securesocial.core.DefaultAuthenticatorStore
9995:securesocial.core.DefaultIdGenerator
9996:securesocial.core.providers.utils.DefaultPasswordValidator
9997:securesocial.controllers.DefaultTemplatesPlugin
9998:service.InMemoryUserService
9999:securesocial.core.providers.utils.BCryptPasswordHasher
10001:securesocial.core.providers.FacebookProvider
10004:securesocial.core.providers.UsernamePasswordProvider>
正确吗?我正在使用 play 2.1.0 和 securesocial 2.0.12
【问题讨论】:
-
您是如何指定配置文件的?
play -Dconfig.file=conf/yourotherconfigifnotapplication.conf run
标签: playframework playframework-2.1 securesocial