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

jQuery Import Failing in 3rd Party Login Page for Using O19 REST APIs #9

Open
pemba1s1 opened this issue Oct 2, 2024 · 1 comment

Comments

@pemba1s1
Copy link
Collaborator

pemba1s1 commented Oct 2, 2024

Description:

The 3rd party login page is failing to import jQuery. The network request to fetch the jQuery library is being redirected to O19's main login page, and as a result, the fetched file does not contain the jQuery script but rather the O19 login HTML.

Consequences:

  • Failed jQuery Execution:
    Since the jQuery file is replaced by O19's login page, jQuery functions fail to load and execute properly.

  • Authorization Block Visible Without Login:
    Because jQuery is not working, the authorize block, which should be hidden until successful login, is visible to users even before authentication, causing security and functionality issues.

Steps to Reproduce:

Access the 3rd party login page provided by O19.

  • Inspect the browser’s developer tools and observe the network request for jQuery.
  • Note the response is O19's login page instead of the jQuery script.
  • Observe the authorize block being visible without successful login.

Expected Behavior:

  • The page should properly fetch and load jQuery from the correct source.
  • The authorize block should only be visible after the user successfully logs in.

Actual Behavior:

  • jQuery fails to load as the request is redirected to O19's login page.
  • The authorize block is visible without requiring login.

Environment:

Oscar Version: oscar_emr19-94~4489.deb
Browser: Chromium Version 128.0.6613.137
Operating System: Pop!_OS 22.04 LTS

Screenshots

Screenshot from 2024-09-26 16-17-39
Screenshot from 2024-09-27 09-47-02
Screenshot from 2024-09-27 09-46-58
Screenshot from 2024-09-27 09-47-33
Screenshot from 2024-09-27 09-47-27

@pemba1s1
Copy link
Collaborator Author

pemba1s1 commented Oct 2, 2024

For now, i'm using webview to load the O19's third party login page and manually injecting script to import jQuery in webview

@pemba1s1 pemba1s1 changed the title jQuery Import Failing in 3rd Party Login Page for Using Oscar REST APIs jQuery Import Failing in 3rd Party Login Page for Using O19 REST APIs Oct 2, 2024
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