Difference between revisions of "Protocol Handler"

From MgmtWiki
Jump to: navigation, search
(Existing Providers)
(Existing Providers)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
==Context==
 
==Context==
 
The scope of this wiki is focused on [[Protocol Handler]]s that process [[Identifier]]s and [[Authentication]], but might involve payment procols as well.
 
The scope of this wiki is focused on [[Protocol Handler]]s that process [[Identifier]]s and [[Authentication]], but might involve payment procols as well.
 +
*[https://html.spec.whatwg.org/#custom-handlers custom handlers] in the W3C living HTML document.
 +
 
===Existing Providers===
 
===Existing Providers===
 
The list of whitelisted schemes is defined by the [https://html.spec.whatwg.org/#custom-handlers WHATWG specification:]
 
The list of whitelisted schemes is defined by the [https://html.spec.whatwg.org/#custom-handlers WHATWG specification:]
Line 25: Line 27:
 
|"magnet" || || ||
 
|"magnet" || || ||
 
|-
 
|-
|"mailto" || || || It would be easy to start an email by clicking on this, but it is not done.
+
|"mailto" || || || It would be easy to start creation of an email by clicking on this, but it is not done.
 
|-
 
|-
 
|"mms" || || ||
 
|"mms" || || ||
Line 60: Line 62:
  
 
===Chromium===
 
===Chromium===
 +
* [https://www.fortinet.com/blog/threat-research/leaking-browser-url-protocol-handlers detecting handlers present in a broswer]
 
Was a topic in [https://www.youtube.com/user/blinkontalks/videos  BlinkOn 15 2021-11-17 now on YouTube]
 
Was a topic in [https://www.youtube.com/user/blinkontalks/videos  BlinkOn 15 2021-11-17 now on YouTube]
 
* [https://bugs.chromium.org/p/chromium/issues/detail?id=178097 Implement registerProtocolHandler on Android]  a CR bug issue 178097 originally posed on 2013-02-25
 
* [https://bugs.chromium.org/p/chromium/issues/detail?id=178097 Implement registerProtocolHandler on Android]  a CR bug issue 178097 originally posed on 2013-02-25

Latest revision as of 10:46, 26 November 2021

Full Title

Protocol Handlers are models that can be added to a user's computer to extend the range of protocols that can be handled by that computer.

Context

The scope of this wiki is focused on Protocol Handlers that process Identifiers and Authentication, but might involve payment procols as well.

Existing Providers

The list of whitelisted schemes is defined by the WHATWG specification:

 http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#whitelisted-scheme

These are the providers registered as of 201x

name Location Cat Recent News
bitcoin" Whitelisting bitcoin: URI handler in navigator.registerProtocolHandler()
"geo"
"im"
"irc"
"ircs"
"magnet"
"mailto" It would be easy to start creation of an email by clicking on this, but it is not done.
"mms"
"news"
"openpgp4fpr"
"sip"
"sms",
"smsto",
"ssh",
"tel",
"urn",
"webcal",
"wtai",
"xmpp"
  • 2020-05-08 Daniel B @ MSFT asked to add did because it was a W3C specification, but that spec is still not final on 2021-11-21.
  • 2020-06-04 LGTM 1, 2 and 3 to add did to list
  • fredric wang email 2020-08-03 did was added, but was not actually in the WHATWG spec on 2021-11-11

Solutions

These solutions are directed primarily to Smartphones, although uses on desktop computers are also considered. Originally all protocol handlers were written in native code for the operating system and installed by the user.

Chromium

Was a topic in BlinkOn 15 2021-11-17 now on YouTube

The following are features of enterprise installation as so would be a challenge to provide for other implementations, like for federations.

PWA

Windows

The following adapts their example:

First, you need a ProgID in HKLM\SOFTWARE\Classes that dictates how to handle any input given to it (yours may already exist):

HKLM\SOFTWARE\Classes
    MyApp.ProtocolHandler //this is the ProgID, subkeys are its properties
       (Default) = My Protocol //name of any type passed to this
       DefaultIcon
          (Default) = %ProgramFiles%\MyApp\MyApp.exe, 0 //for example
       shell
          open
             command
                (Default) = %ProgramFiles%\MyApp\MyApp.exe %1 //for example

Then fill the registry with DefaultProgram info inside a Capabilities key:

HKLM\SOFTWARE\MyApp
   Capabilities
      ApplicationDescription
          URLAssociations
             myprotocol = MyApp.ProtocolHandler //Associated with your ProgID

Finally, register your application's capabilities with DefaultPrograms:

HKLM\SOFTWARE
     RegisteredApplications
        MyApplication = HKLM\SOFTWARE\MyApp\Capabilities

Now all "myprotocol:" links should trigger %ProgramFiles%\MyApp\MyApp.exe %1.

References