Login via webview

David Woodhouse dwmw2 at infradead.org
Tue Jun 27 05:40:56 EDT 2017


The other thing I haven't quite worked out for my new prpl is how to
work with an initial login process that requires a web browser.

You start at the signin url and just continue until you end up at a URL
like fooprotocol://sso_sessions?Token=xxxxx

For now I'm making the user enter the token after doing that manually,
but even though it's a one-off at account setup time, it still sucks :)

It might be possible to screen-scrape the HTML forms a bit and present
prompts to the user via purple_request_fields(), but that's not ideal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4938 bytes
Desc: not available
URL: <https://pidgin.im/pipermail/devel/attachments/20170627/1aa24303/attachment.bin>


More information about the Devel mailing list