<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=HTTPAUTH</id>
	<title>HTTPAUTH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=HTTPAUTH"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=HTTPAUTH&amp;action=history"/>
	<updated>2026-04-14T23:46:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=HTTPAUTH&amp;diff=779&amp;oldid=prev</id>
		<title>ConvertBot: Support HTTP/HTTPS authentication challenges for current JVM</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=HTTPAUTH&amp;diff=779&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:54Z</updated>

		<summary type="html">&lt;p&gt;Support HTTP/HTTPS authentication challenges for current JVM&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Support HTTP/HTTPS authentication challenges for current JVM&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;FUNC&amp;gt;		 - Action to perform (ADD, REMove, CLEAR, ENABLE, DISABLE, STATUS)&lt;br /&gt;
&amp;lt;URL&amp;gt;		 - URL prefix to match site URL that requires authentication&lt;br /&gt;
&amp;lt;USERNAME&amp;gt;	 - Username credential for the specified URL prefix (ADD function)&lt;br /&gt;
&amp;lt;PASSWORD&amp;gt;	 - Password credential for the specified URL prefix (ADD function)&lt;br /&gt;
&lt;br /&gt;
Support HTTP/HTTPS authentication challenges for current JVM instance using an&lt;br /&gt;
in-memory database of URL prefix/username/password combination. There is also&lt;br /&gt;
a /GUI switch to enable a login prompt for operator to enter username/password.&lt;br /&gt;
&lt;br /&gt;
The precedence of how login credentials are used when added entries with URL&lt;br /&gt;
prefixes that can match the website URL requesting authentication are:&lt;br /&gt;
  1. URL prefix is exact match to website URL&lt;br /&gt;
  2. Longest matching URL prefix to website URL&lt;br /&gt;
  3. If callback is enabled (normally the LoginPromptGUI via the /GUI switch)&lt;br /&gt;
&lt;br /&gt;
WARNING: The Oracle/Sun HotSpot JVM caches successful logins for specific URLs.&lt;br /&gt;
         This prevents one from using different username/password for a URL&lt;br /&gt;
         without restarting the JVM. See Java BUG 6626700 for request to provide&lt;br /&gt;
         API to clear that cache. Hence, updating, clearing or removing an&lt;br /&gt;
         entry with the functions in this command WILL NOT take in effect for&lt;br /&gt;
         URLs that have been successfully authenticated until user exits the&lt;br /&gt;
         JVM and re-enters.&lt;br /&gt;
&lt;br /&gt;
Functions:&lt;br /&gt;
  ADD &amp;lt;URL&amp;gt; &amp;lt;USERNAME&amp;gt; &amp;lt;PASSWORD&amp;gt;&lt;br /&gt;
    Add authentication entry for the specified URL prefix to the in-memory&lt;br /&gt;
    database. The URL can be a partial prefix of the actual website URL if the&lt;br /&gt;
    same login credentials should be used. If there is an existing entry,&lt;br /&gt;
    it will be replaced.&lt;br /&gt;
&lt;br /&gt;
  CLEAR&lt;br /&gt;
    Remove all credential entries from the in-memory database.&lt;br /&gt;
&lt;br /&gt;
  DISABLE&lt;br /&gt;
    Disables (unregisters) this Authenticator with the current JVM instance.&lt;br /&gt;
&lt;br /&gt;
  ENABLE&lt;br /&gt;
    Enables (registers) this Authenticator with the current JVM instance.&lt;br /&gt;
&lt;br /&gt;
  REMove &amp;lt;URL&amp;gt;&lt;br /&gt;
    Remove the specified URL prefix from the in-memory database.&lt;br /&gt;
&lt;br /&gt;
  STATUS&lt;br /&gt;
    Display status of the Authenticator:&lt;br /&gt;
      1. if it is enabled or not&lt;br /&gt;
      2. the number of credentials in the in-memory database&lt;br /&gt;
      3. if a callback (e.g. LoginPrompGUI or custom callback) is set or not&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. Enable the HTTP/HTTPS Authenticator for websites that requests them.&lt;br /&gt;
    nM&amp;gt; httpauth enable&lt;br /&gt;
&lt;br /&gt;
  2. Add a login credential entry for a url&lt;br /&gt;
    nM&amp;gt; httpauth add url username password&lt;br /&gt;
&lt;br /&gt;
  3. Add a login credential entry for a url and enable Authenticator on one line&lt;br /&gt;
    nM&amp;gt; httpauth add url username password /enable&lt;br /&gt;
&lt;br /&gt;
  4. Enable the GUI to prompt user for URL prefixes that have not been added and&lt;br /&gt;
     enable the authenticator on one line.&lt;br /&gt;
    nM&amp;gt; httpauth/gui&lt;br /&gt;
&lt;br /&gt;
  5. Disable Authenticator and remove all credentials from cache&lt;br /&gt;
    nM&amp;gt; httpauth/enable=false clear&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /DEFAULTUSER - Default username when /GUI is enabled, defaults to ENV.USER.&lt;br /&gt;
  /ENABLE      - See ENABLE function (this will override all other switches).&lt;br /&gt;
  /GUI         - Enable graphical prompt for user to interactively enter&lt;br /&gt;
                 username and password. Login prompt GUI will display website&lt;br /&gt;
                 realm/prompt and URL. The GUI prompt is only displayed when&lt;br /&gt;
                 accessing the URL requires authentication and there is no&lt;br /&gt;
                 prior successful attempt (from cache) and there is no entry&lt;br /&gt;
                 that matches from the in-memory database.&lt;br /&gt;
                 If set to TRUE, then this will also enable the Authenticator.&lt;br /&gt;
                 Set to FALSE to remove GUI prompting user. [DEF to not set]&lt;br /&gt;
  /STATUS      - See STATUS function (this will override default setting)&lt;br /&gt;
  /TITLE       - Set title of login prompt when /GUI is enabled&lt;br /&gt;
&lt;br /&gt;
See Also: nxm.sys.net.HttpAuthenticator&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>