Skip to content

Introducing: Webviews for Botstack #33

Description

@davidmann4

@pferdefleisch @ramonh @tosh @christophrumpel @legeekette @toshe @Cryt1c @evo42

Hi,

with 9c66197 I've added webview support. Now I am thinking about common webviews users would might need.

so far I´ve added a datepicker. Feel free to brainstorm Ideas.

@tosh: you already played around with camera support in webviews?

cheers,

David

how it works: bot framework creates a link to the webview - user has a small browser which loads a rails servlet. The HTML5 site makes a post request to another servlet which handles the request like a normal message. ecample: https://github.com/davidmann4/botstack/blob/master/app/views/webview/date_picker.html.erb

security: i generate a token (HMAC(user_id, rails_random_secret)) to sign the url of the webview. The webview also has a CSRF field. https://github.com/davidmann4/botstack/blob/master/app/controllers/webview_controller.rb#L6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions