We allow for a additional parameter called ‘state’ to be used during the authorization flow. You can use this to persist any information you would still like to be available after the user completes logging in via Edmodo Connect.

Example URL
https://api.edmodo.com/oauth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fwww.edmodoRocks.com%2Flogin%2Fedmodo%2Fcallback&state=12345

Example use case

  • Want user to land on specific item, e.g. quiz_id=12345.
  • When user hits API authorization page, pass in ‘state’ parameter to identify the item.
  • After the log-in, the state parameter will perist in the URL. Use this to redirect to the desired location on your site or app.