1 / 8

Access to local device functionality through REST APIs

Access to local device functionality through REST APIs . Johan Apelqvist Research Manager R&T Advanced Concepts Claes Nilsson Senior Technology Strategist R&T UI/App/Web Sony Ericsson. Web Application Architecture. Internet. Web Application. Device. Browser. DAP Web Server. Device

kat
Download Presentation

Access to local device functionality through REST APIs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Access to local device functionality through REST APIs Johan ApelqvistResearch ManagerR&T AdvancedConcepts Claes Nilsson Senior Technology Strategist R&T UI/App/Web Sony Ericsson

  2. Web Application Architecture Internet Web Application Device Browser DAP Web Server Device API Auth Policy Device Resources

  3. Web Widget Architecture Internet Web Widget Device Widget Engine Widget Renderer Widget Installer DAP Web Server Device API Auth Policy Device Resources

  4. Access Control Chain • Authentication method chosen MUST ensure identification between Customer (Web Application) and Provider (DAP Web Server). • Policy is an optional component that provides a “prearranged trust relationship” between Web Application and Device Resource • For example validates each request against one or more policy documents to decide access to the protected resource. • Device Resources is the API provider interpreting the request, invoking the correct native device API(s) and formatting the response.

  5. Web Application Scenario • The user accesses the application from the browser. • Authentication process commence by setting up a (trusted) relation between the DAP Web Server and the server hosting the Web Application. • The application asks for permission to a set of Device Resources (as parameters in request or via link to a manifest file). If a “prearranged trust relationship” is provided by a Policy framework the policy framework grants (all or a subset of) the requested resource(s) based on the policy document(s). Alternatively Auth providesuser interaction to grant access to requested resources. Once the requested resource(s) are granted the user do not have to clear access next time the application is accessed as long as the resource(s) are not changed. • The application requests a resource that is passed through the access control chain for validation until the request is answered and the response is returned to the application.

  6. Web Widget Scenario • The user downloads the widget from the internet ending up in the widget installer subscribing to widget packages. • The subsequent steps are identical to web applications described above with the exception of the manifest read from the widget package instead of provided as a link on the content page.

  7. Management • The DAP Web Server must provide a “manager” function. • The main task for the “manager” is to allow the user to manually withdraw previously granted permissions for web applications access to Device Resources. • In addition the“manager” may provide the possibility for the user to pre-configure an access policy. For example, the user could state that only web applications whose origin is “operator” and “vendor” are allowed to access the contacts API.

  8. REST-style Contacts Examples • Create a new contact: • Find contacts: • Request • http://<authority>/dap/contacts/create.json?...&name=Mr.%20Robert%20Smith%20Jr&nicknames=Bob • Response • {name:‘Mr. Robert Smith Jr’, nicknames:[‘Bob’], phones:[], emails:[], addresses:[], impps:[], serviceId: null, categories:[]} • Request • http://<authority>/dap/contacts/find.json?...&name=Robert&nicknames=Bob • Response • [{name:‘Mr. Robert Smith Jr’, nicknames:[‘Bob’], phones:[], emails:[], addresses:[], impps:[], serviceId: null, categories:[]}]

More Related