Play Framework appending #_=_ to redirect after Facebook auth via OAuth2?

后端 未结 2 1847
暗喜
暗喜 2020-12-10 11:52

I\'m doing a simple redirect after calling OAuth2::retrieveAccessToken() with Play Framework. I\'m having funny characters appended to the URL that I never put there, so the

2条回答
  •  死守一世寂寞
    2020-12-10 12:24

    Maybe these characters come from the facebook callback. I was getting a FB callback like

    localhost:9000?someparams#code=verylongcodefromfacebook
    

    I could get rid of the # just by sanitizing the params before requesting the access token.

提交回复
热议问题