design icon indicating copy to clipboard operation
design copied to clipboard

URL Handlers Service should provide an option to plug in Authenticators

Open bjhargrave opened this issue 12 years ago • 1 comments

Original bug ID: BZ#140 From: Christoph Läubrich <[email protected]> Reported version: R4 V4.3

bjhargrave avatar Feb 29 '12 20:02 bjhargrave

Comment author: Christoph Läubrich <[email protected]>

The URL Handlers Service already abstracts URL schemes and content types.

It would be nice if the URL Handlers Service would also provide a Default Authenticator http://docs.oracle.com/javase/1.4.2/docs/api/java/net/Authenticator.html#setDefault%28java.net.Authenticator%29 where bundles can plug in Authenticator services.

In the simple case the URL Handlers Service can ask all registered Authenticator services if an provide any useful authentication.

It might be wise to specify a service property where Authenticator services can specify which URLs they can provide authentication information for example

url.authenticator.url = http://secretsite.test/secretdata/*

would specify that the registered Authenticator services can provide authentication for urls like http://secretsite.test/secretdata/picture.png or http://secretsite.test/secretdata/sounds/voice.wav but not for http://secretsite.test/otherdata.html

This would make the URL Handlers Service even more useful than it currently is :)

bjhargrave avatar Feb 29 '12 20:02 bjhargrave