Using the HTTP/HTTPS Authentication Service

You can write the http/https based authentication service similar to JAAS based Authentication service.