Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot get authorization code after launch #158

Open
yanandyan opened this issue Feb 13, 2018 · 0 comments
Open

cannot get authorization code after launch #158

yanandyan opened this issue Feb 13, 2018 · 0 comments

Comments

@yanandyan
Copy link

Hi,

I am copying code from http://docs.smarthealthit.org/tutorials/authorization/

After launch, when the redirect URL is accessed, the "code" is undefined, I do get a valid "state" value, the authorization server did not authorize my access. How do I debug this, what did I miss?

<script>
    // get the URL parameters received from the authorization server
    var state = getUrlParameter("state");  // session key, this is valid
    var code = getUrlParameter("code");    // authorization code,   It is Undefined.
    console.log("state " +  state + ", code " + code);

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant