/examples/rest_server/src/rest_server_authentication.e

http://github.com/jocelyn/EiffelWebReloaded · Specman e · 31 lines · 25 code · 5 blank · 1 comment · 1 complexity · bafde24781409b64f8a5b069fd1f0e84 MD5 · raw file

  1. note
  2. description: "Summary description for {REST_SERVER_AUTHENTICATION}."
  3. author: ""
  4. date: "$Date$"
  5. revision: "$Revision$"
  6. class
  7. REST_SERVER_AUTHENTICATION
  8. inherit
  9. HTTPD_AUTHORIZATION_AUTHENTICATION
  10. feature -- Status report
  11. is_valid_login_password (a_login, a_password: STRING): BOOLEAN
  12. do
  13. --| This is just to test ... !!!
  14. Result := a_login ~ a_password
  15. end
  16. note
  17. copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
  18. license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
  19. source: "[
  20. Eiffel Software
  21. 5949 Hollister Ave., Goleta, CA 93117 USA
  22. Telephone 805-685-1006, Fax 805-685-6869
  23. Website http://www.eiffel.com
  24. Customer support http://support.eiffel.com
  25. ]"
  26. end