Spring Social: ConnectController.setApplicationUrl doesn't set callback url -


in spring boot app have following configuration:

@configuration @enablesocial public class socialconfig extends socialconfigureradapter {     ....       @override     public void addconnectionfactories(connectionfactoryconfigurer cfc, environment env) {          googleconnectionfactory gcf = new googleconnectionfactory(                 env.getproperty("spring.social.google.appid"),                 env.getproperty("spring.social.google.appsecret"));         gcf.setscope("email");         cfc.addconnectionfactory(gcf);     }     @bean    public connectcontroller connectcontroller(connectionfactorylocator connectionfactorylocator,                                               connectionrepository connectionrepository) {         connectcontroller controller = new connectcontroller(connectionfactorylocator,             connectionrepository);         controller.setapplicationurl("http://www.bla.com");         return controller;    }     @override    public useridsource getuseridsource() {        return new authenticationnameuseridsource();    }     @override    public usersconnectionrepository getusersconnectionrepository(connectionfactorylocator cfl) {        jdbcusersconnectionrepository repository = new jdbcusersconnectionrepository(datasource, cfl, encryptors.nooptext());        repository.setconnectionsignup(accountconnectionsignupservice);        return repository;    }  .... 

according documentation, controller.setapplicationurl("http://www.bla.com"); should set callback url.

but when check chrome console, callback url remains default:

https://www.facebook.com/v2.5/dialog/oauth? ...&redirect_uri=http://localhost:8080/auth/facebook ...

thanks suggestion!

(spring-social-version: 1.1.4.release)


so far found redirect url composed in:

oauth2authenticationservice.buildreturntourl(httpservletrequest) 

and redirect url value built httpservletrequest, ignoring controller.setapplicationurl :( missing here?


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -