play-authenticate
play-authenticate copied to clipboard
NullPointerException When I redirect back from Twitter
I am using play-authenticate to implement login with twitter in my app. When I click on the twitter link It takes me to twitter for authentication. The link looks like
https://api.twitter.com/oauth/authenticate?oauth_token=EYDazerTC90mTio3zlusWrGiyDM9637p09FPF7QHY
when I provide my twitter login and password It tries to redirect me my app and the link it tries is
http://localhost:9000/authenticate/twitter?oauth_token=EYDazerTC90mTio3zlusWrGiyDM9637p09FPF7QHY&oauth_verifier=iDraV9ly5cJZFxiJkavPYk4USvbWZMlJei2mDDvt8
In my Callback URL I have provided
http://127.0.0.1:9000/
but on redirection it gives me the following exception
NullPointerException in In C:\live-events\eventify\target\scala-2.9.1\src_managed\main\routes_routing.scala at line 136.
// @LINE:18 case com_feth_play_module_pa_controllers_Authenticate_authenticate8(params) => { call(params.fromPath[String]("provider", None)) { (provider) => invokeHandler(root.com.feth.play.module.pa.controllers.Authenticate.authenticate(provider), HandlerDef(this, "com.feth.play.module.pa.controllers.Authenticate", "authenticate", Seq(classOf[String]))) } }
Can anyone help me ?? Thanks
your callback URL should be http://127.0.0.1:9000/authenticate/twitter - can you try with that again?