I'm using Azure Active Directory to authenticate my users and this is the url that I redirect the users to:
https://login.windows.net/common/oauth2/authorize?response_type=id_token&redirect_uri=https%3A%2F%2Ftest.com%2F&client_id=CB08A120-12BD-11E4-8143-DA6DD34483DE&scope=openid&response_mode=form_post&nonce=50b4146c-585c-49e5-a78e-56d9685c56f2
The response I get comes in the form of a post and has these two parameters:
id_token=*
session_state=*
However, I'm not exactly sure what session_state is. I've tried looking through the documentation, but can't seem to find a good answer. The places where I've found session_state in the documentation are here and here, but neither one helped very much. Is the session_state something I should be persisting in a cookie and sending to each future request to Azure? Or what is its purpose and the proper way to handle it?