{"action":"created","issue":{"url":"https://api.github.com/repos/onaio/gisida/issues/193","repository_url":"https://api.github.com/repos/onaio/gisida","labels_url":"https://api.github.com/repos/onaio/gisida/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/onaio/gisida/issues/193/comments","events_url":"https://api.github.com/repos/onaio/gisida/issues/193/events","html_url":"https://github.com/onaio/gisida/issues/193","id":350488653,"node_id":"MDU6SXNzdWUzNTA0ODg2NTM=","number":193,"title":"ONA Connector Module","user":{"login":"cKellyDesign","id":4141527,"node_id":"MDQ6VXNlcjQxNDE1Mjc=","avatar_url":"https://avatars1.githubusercontent.com/u/4141527?v=4","gravatar_id":"","url":"https://api.github.com/users/cKellyDesign","html_url":"https://github.com/cKellyDesign","followers_url":"https://api.github.com/users/cKellyDesign/followers","following_url":"https://api.github.com/users/cKellyDesign/following{/other_user}","gists_url":"https://api.github.com/users/cKellyDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/cKellyDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cKellyDesign/subscriptions","organizations_url":"https://api.github.com/users/cKellyDesign/orgs","repos_url":"https://api.github.com/users/cKellyDesign/repos","events_url":"https://api.github.com/users/cKellyDesign/events{/privacy}","received_events_url":"https://api.github.com/users/cKellyDesign/received_events","type":"User","site_admin":false},"labels":[{"id":812768839,"node_id":"MDU6TGFiZWw4MTI3Njg4Mzk=","url":"https://api.github.com/repos/onaio/gisida/labels/P2","name":"P2","color":"fbca04","default":false},{"id":929174384,"node_id":"MDU6TGFiZWw5MjkxNzQzODQ=","url":"https://api.github.com/repos/onaio/gisida/labels/gisida-core","name":"gisida-core","color":"c6ba09","default":false}],"state":"open","locked":false,"assignee":{"login":"cKellyDesign","id":4141527,"node_id":"MDQ6VXNlcjQxNDE1Mjc=","avatar_url":"https://avatars1.githubusercontent.com/u/4141527?v=4","gravatar_id":"","url":"https://api.github.com/users/cKellyDesign","html_url":"https://github.com/cKellyDesign","followers_url":"https://api.github.com/users/cKellyDesign/followers","following_url":"https://api.github.com/users/cKellyDesign/following{/other_user}","gists_url":"https://api.github.com/users/cKellyDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/cKellyDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cKellyDesign/subscriptions","organizations_url":"https://api.github.com/users/cKellyDesign/orgs","repos_url":"https://api.github.com/users/cKellyDesign/repos","events_url":"https://api.github.com/users/cKellyDesign/events{/privacy}","received_events_url":"https://api.github.com/users/cKellyDesign/received_events","type":"User","site_admin":false},"assignees":[{"login":"cKellyDesign","id":4141527,"node_id":"MDQ6VXNlcjQxNDE1Mjc=","avatar_url":"https://avatars1.githubusercontent.com/u/4141527?v=4","gravatar_id":"","url":"https://api.github.com/users/cKellyDesign","html_url":"https://github.com/cKellyDesign","followers_url":"https://api.github.com/users/cKellyDesign/followers","following_url":"https://api.github.com/users/cKellyDesign/following{/other_user}","gists_url":"https://api.github.com/users/cKellyDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/cKellyDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cKellyDesign/subscriptions","organizations_url":"https://api.github.com/users/cKellyDesign/orgs","repos_url":"https://api.github.com/users/cKellyDesign/repos","events_url":"https://api.github.com/users/cKellyDesign/events{/privacy}","received_events_url":"https://api.github.com/users/cKellyDesign/received_events","type":"User","site_admin":false},{"login":"KipSigei","id":19689992,"node_id":"MDQ6VXNlcjE5Njg5OTky","avatar_url":"https://avatars1.githubusercontent.com/u/19689992?v=4","gravatar_id":"","url":"https://api.github.com/users/KipSigei","html_url":"https://github.com/KipSigei","followers_url":"https://api.github.com/users/KipSigei/followers","following_url":"https://api.github.com/users/KipSigei/following{/other_user}","gists_url":"https://api.github.com/users/KipSigei/gists{/gist_id}","starred_url":"https://api.github.com/users/KipSigei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KipSigei/subscriptions","organizations_url":"https://api.github.com/users/KipSigei/orgs","repos_url":"https://api.github.com/users/KipSigei/repos","events_url":"https://api.github.com/users/KipSigei/events{/privacy}","received_events_url":"https://api.github.com/users/KipSigei/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-08-14T15:48:40Z","updated_at":"2018-09-05T20:45:07Z","closed_at":null,"author_association":"COLLABORATOR","body":"Authorization/Authentication and resources will be mitigated through a connector module specifically for the ONA API. This module can include authentication wrappers for existing ONA Connector calls to the API as well as utilities for encryption if necessary."},"comment":{"url":"https://api.github.com/repos/onaio/gisida/issues/comments/418875243","html_url":"https://github.com/onaio/gisida/issues/193#issuecomment-418875243","issue_url":"https://api.github.com/repos/onaio/gisida/issues/193","id":418875243,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODg3NTI0Mw==","user":{"login":"cKellyDesign","id":4141527,"node_id":"MDQ6VXNlcjQxNDE1Mjc=","avatar_url":"https://avatars1.githubusercontent.com/u/4141527?v=4","gravatar_id":"","url":"https://api.github.com/users/cKellyDesign","html_url":"https://github.com/cKellyDesign","followers_url":"https://api.github.com/users/cKellyDesign/followers","following_url":"https://api.github.com/users/cKellyDesign/following{/other_user}","gists_url":"https://api.github.com/users/cKellyDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/cKellyDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cKellyDesign/subscriptions","organizations_url":"https://api.github.com/users/cKellyDesign/orgs","repos_url":"https://api.github.com/users/cKellyDesign/repos","events_url":"https://api.github.com/users/cKellyDesign/events{/privacy}","received_events_url":"https://api.github.com/users/cKellyDesign/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T20:45:07Z","updated_at":"2018-09-05T20:45:07Z","author_association":"COLLABORATOR","body":"@pld @ukanga @KipSigei @ivermac \r\n\r\nI am almost finished implementing the supplemental authorization/authentication method we spoke about previously, where we use a config file (in the place of a user service/datastore) uploaded to an [ONA form](https://ona.io/onahelp/37394/310740). **However, I am now running into an issue retrieving this config file through the API.**\r\n### The Issue\r\n1) The [forms API endpoint](https://api.ona.io/api/v1/forms/337143) reveals the `auth.csv` config file `pk`\r\n2) The [metadata API endpoint](https://api.ona.io/api/v1/metadata/1267176) returns information on the correct file and reveals the S3 resource URL\r\n3) The S3 resource cannot be accessed via JS `fetch()` due to cross-origins issues\r\n4) The [media endpoint](https://api.ona.io/api/v1/media/1267176) returns an image from a different form and not `auth.csv`\r\n5) The [files API endpoint](https://api.ona.io/api/v1/files/1267176) returns `Not Found`.\r\n\r\n### An Alternative Option\r\nInstead of uploading an `auth.csv` config file, we can create a simple new Auth Form with submissions for each User and their access rights to different Views and Layers. Then these submissions could be retrieved via the `data` API endpoint without cross-origin issues.\r\n\r\nHow does this approach sound to you guys?\r\n\r\n(FYI - This is the last step before we have a complete Oauth2 flow for Private React Views!)"}}
{"actor":{"display_login":"cKellyDesign"}}