I am writing a tomcat application and need authentication in the url, for example:
https: // user: password@app.wibble.com
Except for my life, I’m not sure how to set it up or find documents to read it, it is clear that my skills with Google need to work.
Can someone tell me where I should look for such information or where to start?
Greetings
Andy
Authentication of this method is called HTTP BASIC, which may help in your search :)
Essentially you need an element in your web.xml, like this
<login-config> <auth-method>BASIC</auth-method> <realm-name>myRealm</realm-name> </login-config>
:
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#Configuring%20a%20Realm
tomcat-users.xml
<security-constraint> web.xml .
<security-constraint>
, , , , BASIC. /. "" , , BASIC.
, URL. RFC, '@' - app.wibble.com - of URL URL- URL . FTP, http.
, https://app.wibble.com/user/password, URL-. , .
https://app.wibble.com/user/password
URL- (, HTTP Basic Digest). ( "/" ) WWW-Authenticate, Tomcat, .
Source: https://habr.com/ru/post/1745511/More articles:Is Perforce C ++ P4API thread safe? - c ++How can I listen to ProjectItem removal via DTE? - visual-studiojQuery AJAX получить запрос - не может видеть возвращенные данные - jqueryКакой инструмент/технология: управление системой для баз данных и зависимых служб - powershellJPA OUTER JOIN без отношения - outer-joinWhat can cause xmlrpclib.ResponseError: ResponseError ()? - pythonOrganization of a project based on a JavaScript library - javascriptCan a django piston module create a restful webservice downloadable image - djangoHow to fix this installation problem using multicore Solr on Ubuntu 10.04? - solrQuestion about browser based online game - c #All Articles