3

I am trying to authenticate users using the google api, but the return data in the params contain a DOT within the token that breaks the server, it basically requests another page that isn't there if I remove the DOT it works perfectly fine.

Here is the example url

http://localhost:9000/developer/auth/google?code=4/ubXcE1qq84XFtsAwT00_BWkLKR9RldGk6zhBS8ZSiTw.El_qMeir0J0coiIBeO6P2m_ee_B7kwI

And here is the state handler

  .state('/developer/auth/google', {
    url: '/developer/auth/google?code',
    templateUrl: 'views/developer/auth/google.html',
    controller: 'DeveloperAuthGoogleCtrl',
    resolve: {
    code: function($stateParams) {
        return $stateParams.code;
      }
    }
  })

Thanks

1 Answer 1

1

I had the same issue.

I fixed this changing the rewrite rule to the node server. Now I can use DOT on any param

Check this rewrite rule:

modRewrite(['!\\.html|\\.js|\\.svg|\\.css|\\.png$ /index.html [L]'])
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.