diff options
author | Jon Buckley <jon@jbuckley.ca> | 2015-09-01 13:53:57 -0400 |
---|---|---|
committer | Jon Buckley <jon@jbuckley.ca> | 2015-09-01 13:53:57 -0400 |
commit | 46e06c953ad77f020fa0d95168dbd05724907a1a (patch) | |
tree | 9adc33039b82b23c1579b06b42d8c2e19e6d2347 | |
parent | d63fcfe6f22ba0197a5a86e40356764a3ba49681 (diff) |
The OAuth authorization route only requires the client_id,
response_type, scopes, and state parameters. The migration page would
send all of the parameters on its querystring so the authorization page
throws a validation error.
-rw-r--r-- | templates/pages/migrate.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/pages/migrate.jsx b/templates/pages/migrate.jsx index c327e72..3fca312 100644 --- a/templates/pages/migrate.jsx +++ b/templates/pages/migrate.jsx @@ -34,7 +34,12 @@ var UserMigration = React.createClass({ var queryObj = this.getQuery(); var content = (<LoginNoPasswordForm ref="LoginNoPasswordForm" submitForm={this.handleSendToken} uid={queryObj.uid}/>); var continueLink = url.parse("/login/oauth/authorize"); - continueLink.query = queryObj; + continueLink.query = { + client_id: queryObj.client_id, + response_type: queryObj.response_type, + state: queryObj.state, + scopes: queryObj.scopes + }; if(this.state.emailedKey) { content = (<KeyEmailed ref="KeyEmailed" />); |