Servlet for authenticating with a stateless token (hashed with HmacSHA256) Alpha Version
-
http://example.com/token/create/?username=CN%3DSven%20Hasselbach%2FOU%3DHasselba%2FO%3DDE&password=XXX Generates a new token
KEEP IN MIND THAT THIS IS A PROOF OF CONCEPT ONLY!
Sensitive date (like passwords) should only transfered TLS encrypted over the wire (as you already know). When using the approach in a browser, it is better not to transfer the login credentials with HTTP GET.
Copyright 2015 Sven Hasselbach
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.