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

View submission images without login as administrator #43

Closed
arkhub opened this issue Jan 13, 2019 · 4 comments
Closed

View submission images without login as administrator #43

arkhub opened this issue Jan 13, 2019 · 4 comments

Comments

@arkhub
Copy link

arkhub commented Jan 13, 2019

Is there a way to view submitted images using API or token so user don't have to login as administrator first? case example is integrating odk central with other apps for viewing submitted forms inside that apps.

Currently I managed to access the postgre db by enabling port 5432 in yaml to outside (it's not ideal though but I just want to make proof of concept), but viewing images requires you to have login sessions in odk central.

@issa-tseng
Copy link
Member

Currently, not exactly. You can get an API token and access the attachments but currently tokens only last 24 hours and as you note you need to log in as an administrator to obtain it.

Here are the changes coming eventually that will help:

  • When version 0.5.0 is released in some number of months, you will be able to grant non-administrators the ability to administer particular projects. So, you'll be able to allow particular people access only to particular projects.
  • In some future version, we will introduce another project role which only allows viewing but not managing the project.
  • And in some future version, we plan on implementing a fuller version of OAuth2 or similar so you can obtain long-lived permissions-scoped tokens.

@arkhub
Copy link
Author

arkhub commented Jan 17, 2019

that's great, is the current version running 0.4.0? because in my odk central it said 0.30 in history.

@issa-tseng
Copy link
Member

no; neither of these versions are out yet. right now the released version is 0.3.0.

@arkhub arkhub closed this as completed Feb 5, 2019
@florianm
Copy link

Crosslink to ODK forum feature request: https://forum.opendatakit.org/t/can-we-hotlink-odk-central-media-files/24253

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

3 participants