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

Provide a better solution for looking up page tokens in the JS logic #141

Closed
forgedhallpass opened this issue Aug 28, 2020 · 1 comment
Closed

Comments

@forgedhallpass
Copy link
Collaborator

forgedhallpass commented Aug 28, 2020

  1. The solution differentiates resource URIs if they have a leading forward slash (/)

    This behavior leads to token mismatch exceptions, because the same resource can have two different tokens assigned.
    The resource URIs should be handled in a unified manner for HTTP requests, protected and unprotected page configuration properties by adding a leading forward slash (/) to each of them.

  2. If the resource contains URL parameters, the JS logic is not able to associate the appropriate page token

    The parameters should be stripped when looking up the page token value

  3. In some cases an existing JS library has already extended the XHR functionalities and when doing a request and when opening an AJAX connection it only provides the name of the resource/endpoint without the full path.

    e.g. endpoint instead of service/endpoint

    The JS logic could be enhanced to try to cater for these situations by computing the full path of the resource and looking up page tokens for it if the previous attempt fails

@forgedhallpass forgedhallpass changed the title The solution differentiates resource URIs if they have a leading forward slash (/) Provide a better solution for looking up page tokens in the JS logic Sep 10, 2020
@forgedhallpass
Copy link
Collaborator Author

forgedhallpass commented Sep 15, 2021

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