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

Add new API for automatic login #27

Merged
merged 4 commits into from May 17, 2019
Merged

Add new API for automatic login #27

merged 4 commits into from May 17, 2019

Conversation

fozcode
Copy link
Member

@fozcode fozcode commented May 14, 2019

Adds a new API and documentation for how to log in to QIS from a 3rd party application so that images in a private folder can be viewed in the browser.

@qururoland
Copy link
Contributor

All seems god but would it not be sensible to return a 401 status if the authentication failed rather than a 200 with an error message. This would make checking for success easier.

Should this be tested with an ajax call as well as with an iframe? This might work differently with session cookies - perhaps ajax calls would not set the cookie?

@fozcode
Copy link
Member Author

fozcode commented May 15, 2019

OK proper status codes are now implemented.

As discussed ajax/xhr calls only allow cookies with specific CORS headers (not compatible with our current default CORS headers) and even then are still subject to "3rd party cookie" rules so I believe Safari will still reject them by default.

Do you have any other feedback?

@fozcode fozcode merged commit 800808f into master May 17, 2019
@fozcode fozcode deleted the auto-login branch May 17, 2019 09:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants