0

I am new to grails and i am trying to add facebook plugin to my web application. i have successfully(as i believe) installed plugins and addED necessary code in my application. I followed the documentation found at http://splix.github.io/grails-spring-security-facebook/ , when I run my app I see the facebook connect button on gsp page,after clicking on connect button a popup opens up asking for permissions required in app and when user clicks on allow button i receive error "No authentication provider found". I dont know where i am wrong ,can any one help me please.

Thanks in advance

4

1 回答 1

0

您有提供者的自定义列表:

grails.plugins.springsecurity.providerNames = [ 'myAuthenticationProvider',
    'anonymousAuthenticationProvider', 
    'rememberMeAuthenticationProvider'] 

而且它们都不支持FacebookAuthToke,因此 Spring Security 无法使用 Facebook Authentication 插件进行身份验证。

如果您确实需要自定义提供程序,只需将原始提供程序放入此列表:

grails.plugins.springsecurity.providerNames = [ 'myAuthenticationProvider',
    'facebookAuthProvider', 
    'anonymousAuthenticationProvider',
    'rememberMeAuthenticationProvider'] 
于 2013-05-07T10:51:54.857 回答