Search completed in 1.21 seconds.
219 results for "authentication":
Your results are loading. Please wait...
Web Authentication API - Web APIs
The Web Authentication API is an extension of the Credential Management API that enables strong authentication with public key cryptography, enabling passwordless authentication and/or secure second-factor authentication without SMS texts. Web authentication concepts and usage The Web Authentication API (also referred to as WebAuthn) uses asymmetric (public-key) cryptography instead of passwords or SMS texts for registering, authenticating, and second-factor authentication with websites. This resolves significant security problems related to phishing, data breaches, and attacks against SMS texts or other second-factor authentication methods while at the same time significantly increasing ease of use (since users don't have to manage dozens of increasingly complicated passwords). Many websi...
...icant security problems related to phishing, data breaches, and attacks against SMS texts or other second-factor authentication methods while at the same time significantly increasing ease of use (since users don't have to manage dozens of increasingly complicated passwords). ...
...gnificantly increasing ease of use (since users don't have to manage dozens of increasingly complicated passwords). Many websites already have pages that allow users to register new accounts or sign in to an existing account, and the Web Authentication API acts as a replacement or supplement to those on those existing webpages. Similar to the other forms of the Credential Management API, the Web Authentication API has two basic methods that correspond to register and login: navigator.credentials.create() - when used with the publicKey option, creates new credentials, either for registering a new account or for associating a new asymmetric key pair credentials with an existing account. navigator.credentials.get() - when used with the publicKey option, uses an existing set of credentials to authentic...
...And 17 more matches
HTTP authentication - HTTP
The challenge and response flow works like this: The server responds to a client with a 401 (Unauthorized) response status and provides information on how to authorize with a WWW-Authenticate response header containing at least one challenge. ...
... The challenge and response flow works like this: The server responds to a client with a 401 (Unauthorized) response status and provides information on how to authorize with a WWW-Authenticate response header containing at least one challenge. ...
... The challenge and response flow works like this: The server responds to a client with a 401 (Unauthorized) response status and provides information on how to authorize with a WWW-Authenticate response header containing at least one challenge. ...
...And 12 more matches
Integrated Authentication
This document provides an overview of Mozilla's support for integrated authentication. This entails support for the the Simple and Protected GSS-API Negotiation Mechanism (SPNEGO) internet standard (RFC 2478) to negotiate either Kerberos, NTLM, or other authentication protocols supported by the operating system. SPNEGO is commonly referred to as the "negotiate" authentication protocol. Mozilla does not have its own internal implementation of SPNEGO. Instead, it leverages system libraries that provide SPNEGO; SSPI on Microsoft Windows, and GSS-API on Linux, Mac OSX, and other UNIX-like systems. The Mozilla implementation of SPNEGO can be found under extensions/auth/. It used to live in extensions/negotiateauth. ...
...As of Mozilla 1.7, there is no support for NTLMv2/LMv2. This is mainly due to the fact that NTLMSSP does not provide a means to negotiate use of NTLMv2/LMv2. ...
...This document is incomplete ...</i> Flow Diagram The diagram below shows how various components interact. Configuration By default, Mozilla rejects all SPNEGO challenges from a web server. This is to protect the user from the possibility of DNS-spoofing being used to stage a man-in-the-middle exploit (see bug 17578 for more info). Moreover, with Windows clients NTLM may be negotiated as the authentication protocol. So, it is paramount that the browser does not freely exchange NTLM user credentials with any server that requests them. The NTLM response includes a hash of the user's logon credentials. On older versions of Windows this hash is computed using a relatively weak algorithm (see Hertel for more info on NTLM authentication). Mozilla currently supports a whitelist of sites that are permitte...
...And 2 more matches
407 Proxy Authentication Required - HTTP
Web › HTTP › Status › 407
The HTTP 407 Proxy Authentication Required client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for a proxy server that is between the browser and the server that can access the requested resource. This status is sent with a Proxy-Authenticate header that contains information on how to authorize correctly. ...
... 407 Proxy Authentication Required client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for a proxy server that is between the browser and the server that can access the requested resource. This status is sent with a Proxy-Authenticate header that contains information on how to authorize correctly. ...
...e code indicates that the request has not been applied because it lacks valid authentication credentials for a proxy server that is between the browser and the server that can access the requested resource. This status is sent with a Proxy-Authenticate header that contains information on how to authorize correctly. ...
...And 2 more matches
NPN_GetAuthenticationInfo - Archive of obsolete content
<< Gecko Plugin API Reference << Browser Side Plug-in API Summary The function is called by plugins to get HTTP authentication information from the browser. Syntax #include <npapi.h> NPError NPN_GetAuthenticationInfo(NPP instance, const char *protocol, const char *host, int32_t port, const char *scheme, const char *realm, char **username, uint32_t *ulen, char **password, uint32_t *plen); Parameters This function has the following parameters: instance Pointer to the current plug-in instance protoc...
...The browser passes back the HTTP username. If the function succeeds, the result buffer will be allocated with NPN_MemAlloc; the plugin is responsible for freeing the buffer. Note: the username may have internal NULL bytes and may not be NULL-terminated. ulen Out parameter. The length of the returned username buffer. passw...
... **username, uint32_t *ulen, char **password, uint32_t *plen); Parameters This function has the following parameters: instance Pointer to the current plug-in instance protocol Protocol name (URI scheme) host Host name port Port number scheme HTTP authentication scheme name realm HTTP authentication realm username Out parameter. The browser passes back the HTTP username. If the function succeeds, the result buffer will be allocated with NPN_MemAlloc; the plugin is responsible for freeing the buffer. Note: the username may have internal NULL bytes and may not be NULL-terminated. ulen Out parameter. The length of the returned username buffer. password Out parameter. The browser passes ba...
... buffer. Returns If successful, the function returns NPERR_NO_ERROR. If unsuccessful, the function returns an error code. For possible values, see Error Codes. Description Plugin which implement their own HTTP networking stack (such as the Java plugin) may want to use the standard HTTP auth prompts and password managed of the browser. This function allows the plugin to ask the browser for HTTP authentication information for a domain. Unless the plugin has special networking needs, it is recommended to use the standard network APIs, such as NPN_GetURLNotify/NPN_PostURLNotify. See also NPN_SetValueForURL, NPN_GetValueForURL ...
511 Network Authentication Required - HTTP
Web › HTTP › Status › 511
The HTTP 511 Network Authentication Required response status code indicates that the client needs to authenticate to gain network access. This status is not generated by origin servers, but by intercepting proxies that control access to the network. Network operators sometimes require some authentication, acceptance of terms, or other user interaction before granting access (for example in an internet cafe or at an airport). They often identify clients who have not done so using their Media Access Control (MAC) addresses. ...
...is not generated by origin servers, but by intercepting proxies that control access to the network. ...
...ors sometimes require some authentication, acceptance of terms, or other user interaction before granting access (for example in an internet cafe or at an airport). ...
Challenge-response authentication - MDN Web Docs Glossary: Definitions of Web-related terms
In security protocols, a challenge is some data sent to the client by the server in order to generate a different response each time. Challenge-response protocols are one way to fight against replay attacks where an attacker listens to the previous messages and resends them at a later time to get the same credentials as the original message. The HTTP authentication protocol is challenge-response based, though the "Basic" protocol isn't using a real challenge (the realm is always the same). Learn more Challenge-response authentication on Wikipedia. ...
Index - Web APIs
Web › API › Index
ode, AudioWorkletProcessor, Experimental, Method, Process, Reference, Web Audio API The process() method of an AudioWorkletProcessor-derived class implements the audio processing algorithm of the processor. Although the method is not a part of the AudioWorkletProcessor interface, each class that derives from it must have it implemented. 216 AuthenticatorAssertionResponse API, Authentication, AuthenticatorAssertionResponse, Interface, Reference, Web Authentication API, WebAuthn The AuthenticatorAssertionResponse interface of the Web Authentication API is returned by CredentialsContainer.get() when a PublicKeyCredential is passed, and provides proof to a service that it has a key pair and that the authentication request is valid and approved. 217 AuthenticatorAssertio...
... The AuthenticatorAssertionResponse interface of the Web Authentication API is returned by CredentialsContainer.get() when a PublicKeyCredential is passed, and provides proof to a service that it has a key pair and that the authentication request is valid and approved. 217 AuthenticatorAssertionResponse.authenticatorData API, AuthenticatorAssertionResponse, Property, Reference, Web Authentication API, WebAuthn The authenticatorData property of the AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator. 218 AuthenticatorAssertionResponse.signature API, ...
...e AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator. 218 AuthenticatorAssertionResponse.signature API, AuthenticatorAssertionResponse, Property, Reference, Web Authentication API, WebAuthn The signature read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object which is the signature of the authenticator for both AuthenticatorAssertionResponse.authenticatorData and a SHA-256 hash of the client data (AuthenticatorAssertionResponse.clientDataJSON). 219 AuthenticatorAssertionResponse.userHandle API, AuthenticatorAsser...
...And 50 more matches
Introduction to Public-Key Cryptography - Archive of obsolete content
r scrambles, information before sending it. The receiver decrypts, or unscrambles, the information after receiving it. While in transit, the encrypted information is unintelligible to an intruder. Tamper detection allows the recipient of information to verify that it has not been modified in transit. Any attempt to modify data or substitute a false message for a legitimate one will be detected. ...
...egitimate one will be detected. Authentication allows the recipient of information to determine its origin-that is, to confirm the sender's identity. Nonrepudiation prevents the sender of information from claiming at a later date that the information was never sent. The sections that follow introduce the concepts of public-key cryptography that underlie these capabilities. ...
...e recipient of information to determine its origin-that is, to confirm the sender's identity. Nonrepudiation prevents the sender of information from claiming at a later date that the information was never sent. The sections that follow introduce the concepts of public-key cryptography that underlie these capabilities. ...
...And 38 more matches
Introduction to SSL - Archive of obsolete content
It uses TCP/IP on behalf of the higher-level protocols, and in the process allows an SSL-enabled server to authenticate itself to an SSL-enabled client, allows the client to authenticate itself to the server, and allows both machines to establish an encrypted connection. These capabilities address fundamental concerns about communication over the Internet and other TCP/IP networks: SSL server authentication allows a user to confirm a server's identity. SSL-enabled client software can use standard techniques of public-key cryptography to check that a server's certificate and public ID are valid and have been issued by a certificate authority (CA) listed in the client's list of trusted CAs. This confirmation might be important if the user, for example, is sending a credit card number over the network ...
...t software can use standard techniques of public-key cryptography to check that a server's certificate and public ID are valid and have been issued by a certificate authority (CA) listed in the client's list of trusted CAs. This confirmation might be important if the user, for example, is sending a credit card number over the network and wants to check the receiving server's identity. SSL client authentication allows a server to confirm a user's identity. Using the same techniques as those used for server authentication, SSL-enabled server software can check that a client's certificate and public ID are valid and have been issued by a certificate authority (CA) listed in the server's list of trusted CAs. This confirmation might be important if the server, for example, is a bank sending confidential fin...
...estrictions should disable the 40-bit ciphers if they are concerned about access to data by eavesdroppers. Red Hat Console does not support all of the cipher suites supported by Red Hat clients and servers. To ensure that Red Hat Console can control an SSL-enabled server, the server must enable at least one of the following cipher suites for SSL 3.0: RC4 with 128-bit encryption and MD5 message authentication RC4 with 40-bit encryption and MD5 message authentication RC2 with 40-bit encryption and MD5 message authentication No encryption, MD5 message authentication only Cipher Suites With RSA Key Exchange Table 1 lists the cipher suites supported by SSL that use the RSA key-exchange algorithm. Unless otherwise indicated, all ciphers listed in the table are supported by both SSL 2.0 and SSL 3.0. ...
...And 25 more matches
sslfnc.html
(PRInt32 option, PRBool on); Parameters This function has the following parameters: option One of the following values (except as noted, the factory setting is "off"): SSL_SECURITY enables use of security protocol. Factory setting is on. WARNING: If you turn this option off, the session will not be an SSL session and will not have certificate-based authentication, tamper detection, or encryption. SSL_REQUEST_CERTIFICATE is a server option that requests a client to authenticate itself. SSL_REQUIRE_CERTIFICATE is a server option that requires a client to authenticate itself (only if SSL_REQUEST_CERTIFICATE is also on). If client does not provide certificate, the connection terminates. Default state is a third state similar to on,...
... two caches: theserver session ID cache (also called the server session cache, or server cache), and theclient-auth certificate cache (also called the client cert cache, or client auth cache). Both caches are used only for sessions where the program handshakes as a server. The client-auth certificate cache is used to remember the certificates previously presented by clients for client certificate authentication. Passing a NULL value or a value that is out of range for any of the parameters causes the server default value to be used in the server cache. The values that you pass affect only the server cache, not the client cache. Initializing Multi-Processing with a Shared SSL Server Cache To start a multi-processing application, the initial parent process calls SSL_ConfigMPServerSIDCache, and t...
... two caches: theserver session ID cache (also called the server session cache, or server cache), and theclient-auth certificate cache (also called the client cert cache, or client auth cache). Both caches are used only for sessions where the program handshakes as a server. The client-auth certificate cache is used to remember the certificates previously presented by clients for client certificate authentication. Passing a NULL value or a value that is out of range for any of the parameters causes the server default value to be used in the server cache. The values that you pass affect only the server cache, not the client cache. Before the cache can be used in the child process, the child process must complete its initialization using SSL_InheritMPServerSIDCache. SSL_InheritMPServerSIDCache ...
...And 23 more matches
passwords - Archive of obsolete content
should define on credential objects and the properties you can expect on credential objects returned by the API. All credential objects include username and password properties. Different sorts of stored credentials include various additional properties, as outlined in this section. You can use the Passwords API with three sorts of credentials: Add-on credentials HTML form credentials HTTP Authentication credentials Add-on Credential These are associated with your add-on rather than a particular web site. They contain the following properties: username The username. password The password. url For an add-on credential, this property is of the form: addon:<addon-id>, where <addon-id> is the add-on's Program ID. You don't supply this val...
... <label>Password:</label> <input type="password" name="pword"> </form> The corresponding values for the credential (excluding username and password) should be: url: "http://www.example.com" formSubmitURL: "http://login.example.com" usernameField: "uname" passwordField: "pword" Note that for both url and formSubmitURL, the portion of the URL after the hostname is omitted. HTTP Authentication Credential These are used to authenticate the user to a web site which uses HTTP Authentication, as detailed in RFC 2617. They contain the following properties: username The username. password The password. url The URL for the web service which requires the credential. You should omit anything after the hostname and (optional) port. realm ...
... port. realm The WWW-Authenticate response header sent by the server may include a "realm" field as detailed in RFC 2617. If it does, this property contains the value for the "realm" field. Otherwise, it is omitted. The realm is displayed in Firefox's Password Manager, under "Site", in brackets after the URL. ...
...And 6 more matches
sslerr.html
e securely with peer: no common encryption algorithm(s)." The local and remote systems share no cipher suites in common. This can be due to a misconfiguration at either end. It can be due to a server being misconfigured to use a non-RSA certificate with the RSA key exchange algorithm. SSL_ERROR_NO_CERTIFICATE -12285 "Unable to find the certificate or key necessary for authentication." This error has many potential causes; for example: Certificate or key not found in database. Certificate not marked trusted in database and Certificate's issuer not marked trusted in database. Wrong password for key database. Missing database. SSL_ERROR_BAD_CERTIFICATE -12284 "Unable to communicate securely with peer: peers's certificate...
...e. Certificate not marked trusted in database and Certificate's issuer not marked trusted in database. Wrong password for key database. Missing database. SSL_ERROR_BAD_CERTIFICATE -12284 "Unable to communicate securely with peer: peers's certificate was rejected." A certificate was received from the remote system and was passed to the certificate authentication callback function provided by the local application. That callback function returned SECFailure, and the bad certificate callback function either was not configured or did not choose to override the error code returned by the certificate authentication callback function. -12283 (unused) SSL_ERROR_BAD_CLIENT -12282 "The server has encountered bad data from the cl...
... On a client socket, this means the remote server has attempted to negotiate the use of a version of SSL that is not supported by the NSS library, probably an invalid version number. On a server socket, this means the remote client has requested the use of a version of SSL older than version 2. ...
...And 6 more matches
HTTP Index - HTTP
Web › HTTP › Index
ss to selected resources from a different origin. 21 CORS errors CORS, Errors, HTTP, HTTPS, Messages, Same-origin, Security, console, troubleshooting Cross-Origin Resource Sharing (CORS) is a standard that allows a server to relax the same-origin policy. This is used to explicitly allow some cross-origin requests while rejecting others. 22 Reason: CORS disabled Authentication, Authentication Article, CORS, Cross-Origin, Disabled, Errors, HTTP, HTTPS, Messages, Resource, Same Origin, Same-origin, Security, Sharing, Validation, secure, troubleshooting A request that needs to use CORS was attempted, but CORS is disabled in the user's browser. When this happens, the user needs to turn CORS back on in their browser. 23 Reason: CORS header 'Access-Control-A...
...ent to trigger an action on the server, and responses, the answer from the server. 41 HTTP Public Key Pinning (HPKP) Guide, HPKP, HTTP, Security HTTP Public Key Pinning (HPKP) is a security feature that tells a web client to associate a specific cryptographic public key with a certain web server to decrease the risk of MITM attacks with forged certificates. 42 HTTP authentication Access Control, Authentication, Guide, HTTP, Security HTTP provides a general framework for access control and authentication. The most common HTTP authentication is based on the "Basic" schema. This page shows an introduction to the HTTP framework for authentication and shows how to restrict access to your server using the HTTP "Basic" schema. 43 HTTP caching Caching, Gu...
...a HTTP/1.0 general header is an implementation-specific header that may have various effects along the request-response chain. It is used for backwards compatibility with HTTP/1.0 caches where the Cache-Control HTTP/1.1 header is not yet present. 169 Proxy-Authenticate HTTP, HTTP Header, Proxy, Reference, Response Header The HTTP Proxy-Authenticate response header defines the authentication method that should be used to gain access to a resource behind a proxy server. It authenticates the request to the proxy server, allowing it to transmit the request further. 170 Proxy-Authorization HTTP, HTTP Header, Reference, Request header, header The HTTP Proxy-Authorization request header contains the credentials to authenticate a user agent to a proxy server, usually af...
...And 6 more matches
nsIXmlRpcClient
Warning: This interface was removed from Firefox 3 and is no longer available. extensions/xml-rpc/idl/nsIXmlRpcClient.idlScriptable Please add a summary to this article. ...
...This interface was removed from Firefox 3 and is no longer available. extensions/xml-rpc/idl/nsIXmlRpcClient.idlScriptable Please add a summary to this article. ...
...rtsCString DOUBLE unsigned long nsISupportsDouble DATETIME unsigned long nsISupportsPRTime ARRAY readonly unsigned long nsISupportsArray STRUCT readonly unsigned long nsISupportsDictionary Methods init() Set server URL. ...
...And 4 more matches
Proxy-Authorization - HTTP
<credentials> The credentials are constructed like this: The username and the password are combined with a colon (aladdin:opensesame). ...
... <credentials> The credentials are constructed like this: The username and the password are combined with a colon (aladdin:opensesame). ...
... <credentials> The credentials are constructed like this: The username and the password are combined with a colon (aladdin:opensesame). The resulting string is base64 encoded (YWxhZGRpbjpvcGVuc2VzYW1l). ...
...And 3 more matches
Index - Archive of obsolete content
ere are some terms that are used by the Mozilla community. One sees them on IRC or in bugs. It can be helpful to know exactly what these refer to. Note that this is an attempt at describing the current usage of these terms. This usage may change. 447 Firefox Accounts Firefox Accounts, Identity, Landing, Mozilla, fxa Firefox Accounts (FxA) is an identity provider that provides authentication and user profile data for Mozilla cloud services. Over the long term we envision that non-Mozilla services and applications will also be able to delegate authentication to Firefox Accounts. The articles listed here will introduce FxA, the underllying technology, and demonstrate how to authenticate using FxA. 448 APIs attached to Firefox Accounts As a FxA relier, after a user...
...449 Firefox Accounts End-to-end encryption Firefox Accounts offers an end-to-end encryption support feature for OAuth reliers by deriving a strong encryption key from user's password. Keep in mind that Firefox Accounts does not provide a storage solution, it is up to you to use the generated key and encrypt the data with that key. 450 Firefox Accounts OAuth Dashboard Authentication, Firefox Accounts, Identity, Mozilla, fxa FxA OAuth Credential Management Dashboard is a web application that lets you provision Firefox Accounts OAuth credentials. 452 Introduction to Firefox Accounts fxa Firefox Accounts (FxA) is an identity provider that provides authentication and user profile data for Mozilla cloud services. We are also exploring the possibility ...
... 454 JSS build instructions for OSX 10.6 JSS The following build instructions were provided by PAVRW. ...
...And 2 more matches
nsIAuthModule
netwerk/base/public/nsIAuthModule.idlScriptable This interface is intended to be used as server and client authentication service. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Method overview void getNextToken([const] in voidPtr aInToken, in unsigned long aInTokenLength, out voidPtr aOutToken, out unsigned long aOutTokenLength); void init(in string aServiceName, in unsigned long aServiceFlags, in wstring aDomain, in wstring aUsername, in wstring aPassword); void unwrap([const] in voidPtr aInToken, in unsigned long aInTokenLength, out voidPtr aOutToken, out unsigned long aOutTokenLength); void wrap([const] in voidPtr aInToken, in unsigned long aInTokenLength, in boolean confidential, out voidPtr aOutToken, out unsigned long ...
... Constants Constant Value Description REQ_DEFAULT 0 Default behavior. REQ_MUTUAL_AUTH (1 << 0) Client and server will be authenticated. REQ_DELEGATE (1 << 1) The server is allowed to impersonate the client. The REQ_MUTUAL_AUTH flag may also need to be specified in order for this flag to take effect. Methods getNextToken() This method is called to get the next token in a sequence of authentication steps. void getNextToken( [const] in voidPtr aInToken, in unsigned long aInTokenLength, out voidPtr aOutToken, out unsigned long aOutTokenLength ); Parameters aInToken A buffer containing the input token (For example a challenge from a server). This may be null. aInTokenLength The length of the input token. aOutToken If getNextToken succeeds, then aOutToken will point to a buffer to be ...
...s method succeeds. void init( in string aServiceName, in unsigned long aServiceFlags, in wstring aDomain, in wstring aUsername, in wstring aPassword ); Parameters aServiceName The service name, which may be null if not applicable (For example, for NTLM, this parameter should be null). aServiceFlags A bitwise-or of the REQ_ constants (pass REQ_DEFAULT for default behavior). aDomain The authentication domain, which may be null if not applicable. aUsername The user's login name. aPassword The user's password. unwrap() This method is used to unpack, decrypt, and verify the checksums on data returned by a server when security layers are in use. void unwrap( [const] in voidPtr aInToken, in unsigned long aInTokenLength, out voidPtr aOutToken, out unsigned long aOutTokenLength ); Parameter...
...And 2 more matches
SSL and TLS - Archive of obsolete content
Draft This page is not complete. The Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols are universally accepted standards for authenticated and encrypted communication between clients and servers. Both client and server authentication occur over SSL/TLS. SSL/TLS uses a combination of public key and symmetric-key encryption. Symmetric-key encryption is much faster than public-key encryption, but public-key encryption provides better authentication techniques. An SSL/TLS session always begins with an exchange of messages called the SSL handshake, initial communication between the server and client. The handshake allows the server to authenticate itself to the client using public-key techniques, then allows the client and the server to cooperate in the creation of...
...g stronger keys. All CAs should use at least 2048-bit keys, and stronger keys (such as 3072 or 4096 bits) if possible. As PKIs using RSA keys and certificates transition to other cryptographic systems like ECC, servers should continue to support RSA. Supported Cipher Suites for RSA Cipher suites with the RSA key exchange that are commonly supported include the following: AES and SHA Message Authentication. Advanced Encryption Standard (AES) ciphers have a fixed block size of 128-bits, and the keys can be either 128-bit or 256-bit. There are 3.4 x 1038 possible 128-bit keys and 1.1 x 1077 possible 256-bit keys. There are more possible keys than any other cipher, making AES the strongest cipher supported by SSL. These cipher suites are FIPS-compliant. Triple DES and SHA Message Authentication. Trip...
...DES 56-bit encryption permits approximately 7.2 * 1016 possible keys. ...
...e DES uses a key three times as long as the key for standard DES. Because the key size is so large, there are approximately 3.7 * 1050 possible keys. This cipher suite is FIPS-compliant. RC4 and RC2 and MD5 Message Authentication. The RC4 and RC2 ciphers have 128-bit encryption, which permits approximately 3.4 * 1038 possible keys. RC4 ciphers are faster than RC2 ciphers. RC4 can use SHA message authentication as well as MD5 message authentication. DES and SHA Message Authentication. DES 56-bit encryption permits approximately 7.2 * 1016 possible keys. This cipher suite is no longer FIPS-compliant because it is too weak cryptographically. Using ECC Elliptic Curve Cryptography (ECC) is a cryptographic system that uses elliptic curves to create keys for encrypting data. ECC creates cryptographically-...
Index - MDN Web Docs Glossary: Definitions of Web-related terms
e subject named in the certificate (e.g., mozilla.org). 69 Certified Apps, B2G, Firefox OS, Glossary, Security, Trustworthy Certified means that an application, content or data transmission has successfully undergone evaluation by professionals with expertise in the relevant field, thereby indicating completeness, security and trustworthiness. 70 Challenge-response authentication Security In security protocols, a challenge is some data sent to the client by the server in order to generate a different response each time. Challenge-response protocols are one way to fight against replay attacks where an attacker listens to the previous messages and resends them at a later time to get the same credentials as the original message. 71 Character CodingSc...
...bars, menu bar, tabs). This is not to be confused with the Google Chrome browser. 75 Cipher Cryptography, Glossary, Privacy, Security In cryptography, a cipher is an algorithm that can encode cleartext to make it unreadable, and to decode it back. 76 Cipher suite Cryptography, Glossary, Security A cipher suite is a combination of a key exchange algorithm, authentication method, bulk encryption cipher, and message authentication code. 77 Ciphertext Cryptography, Glossary, Privacy, Security In cryptography, a ciphertext is a scrambled message that conveys information but is not legible unless decrypted with the right cipher and the right secret (usually a key), reproducing the original cleartext. A ciphertext's security, and therefore the secr...
... cryptanalysis or differential cryptanalysis, that can break more advanced ciphers. 97 Cryptographic hash function Cryptography, Glossary, Security A cryptographic hash function, also sometimes called a digest function, is a cryptographic primitive transforming a message of arbitrary size into a message of fixed size, called a digest. Cryptographic hash functions are used for authentication, digital signatures, and message authentication codes. 98 Cryptography Cryptography, Glossary, Privacy, Security Cryptography, or cryptology, is the science that studies how to encode and transmit messages securely. Cryptography designs and studies algorithms used to encode and decode messages in an insecure environment, and their applications. 99 DHTML CodingS...
...ng. 201 Hash CodingScripting, Cryptography, Glossary, Hash The hash function takes a variable length message input and produces a fixed-length hash output. It is commonly in the form of a 128-bit "fingerprint" or "message digest". Hashes are very useful for cryptography -- they insure the integrity of transmitted data. This provides the basis for HMAC's, which provide message authentication. 202 Head CodingScripting, Glossary, HTML, head, metadata The Head is the part of an HTML document that contains metadata about that document, such as author, description, and links to CSS or JavaScript files that should be applied to the HTML. 203 High-level programming language CodingScripting, Glossary A high-level programming language has a significan...
sslintro.html
_OptionSetDefault. Optional. SSL_ConfigSecureServer. For servers only. Configures the socket with the information needed to handshake as an SSL server. Required for servers. SSL_SetURL. For clients only. Records the target server URL for comparison with the URL specified by the server certificate. Required for clients. Callbacks and helper functions allow you to specify such things as how authentication is accomplished and what happens if it fails. SSL_SetPKCS11PinArg. Sets the argument passed to the PKCS #11 password callback function. Required. SSL_AuthCertificateHook. Specifies a callback function used to authenticate an incoming certificate (optional for servers, necessary for clients to avoid "man-in-the-middle" attacks). Optional. If not specified, SSL uses the default callback func...
... #11 password callback function. Required. SSL_AuthCertificateHook. Specifies a callback function used to authenticate an incoming certificate (optional for servers, necessary for clients to avoid "man-in-the-middle" attacks). Optional. If not specified, SSL uses the default callback function, SSL_AuthCertificate. SSL_BadCertHook. Specifies a callback function to deal with a situation where authentication has failed. Optional. SSL_GetClientAuthDataHook. Specifies a callback function for SSL to use when the server asks for client authentication information. This callback is required if you want to do client authentication. You can set the callback function to a standard one that is provided, NSS_GetClientAuthData. SSL_HandshakeCallback. Specifies a callback function that will be used by SSL t...
...cket has already been established. Communication between SSL sockets always begins with the SSL handshake. The handshake occurs automatically the first time communication is requested with a socket read/write or send/receive call. It is also possible to force the handshake explicitly with SSL_ForceHandshake or repeat it explicitly with SSL_ReHandshake. Once the SSL sockets have been configured, authentication and encryption happen automatically whenever you use the communication functions from the NSPR library. A server application typically uses these functions to establish a connection: PR_Bind PR_Listen PR_Accept PR_GetSockName A client application typically uses these functions to establish a connection: PR_GetHostByName PR_EnumerateHostEnt PR_Connect PR_GetConnectStatus When an...
...to talk first. The end that has to talk first should call PR_Send or PR_Write, and the other end should call PR_Read or PR_Recv. Use SSL_ForceHandshake when the socket has been prepared for a handshake but neither end has anything to say immediately. This occurs, for example, when an HTTPS server has received a request and determines that before it can answer the request, it needs to request an authentication certificate from the client. At the HTTP protocol level, nothing more is being said (that is, no HTTP request or response is being sent), so the server first uses SSL_ReHandshake to begin a new handshake and then call SSL_ForceHandshake to drive the handshake to completion. Functions Used by Callbacks An SSL application typically provides one or more callback functions that are called by the...
Index
Mozilla › Tech › XPCOM › Index
nterface Reference No summary! 341 nsIAuthInformation Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference The caller of nsIAuthPrompt2.promptUsernameAndPassword() or nsIAuthPrompt2.promptPasswordAsync() provides an object implementing this interface; the prompt implementation can then read the values here to prefill the dialog. After the user entered the authentication information, it should set the attributes of this object to indicate to the caller what was entered by the user. 342 nsIAuthModule Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference This method is called to get the next token in a sequence of authentication steps. 343 nsIAuthPrompt Interfaces, Interfaces:Scriptable, XPCOM, ...
...ble, XPCOM, XPCOM API Reference, XPCOM Interface Reference This interface is implemented by @mozilla.org/login-manager/prompter;1. To create an instance, use: 344 nsIAuthPrompt2 Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference This interface is usually acquired using getInterface on notification callbacks or similar. It can be used to prompt users for authentication information, either synchronously or asynchronously. 345 nsIAuthPromptAdapterFactory Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference Wrap an object implementing nsIAuthPrompt so that it's usable via nsIAuthPrompt2. 346 nsIAuthPromptCallback Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference Callers must call exactly on...
...IAuthPrompt so that it's usable via nsIAuthPrompt2. 346 nsIAuthPromptCallback Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference Callers must call exactly one method if nsIAuthPrompt2.asyncPromptAuth() returns successfully. They must not call any method on this interface before nsIAuthPrompt2.asyncPromptAuth() returns. ...
...2.asyncPromptAuth() returns successfully. They must not call any method on this interface before nsIAuthPrompt2.asyncPromptAuth() returns. 347 nsIAuthPromptProvider Authentication, Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference This method requests a prompt interface for the given prompt reason. 348 nsIAuthPromptWrapper Authentication, Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference The nsIAuthPromptWrapper interface is an override of nsIAuthPrompt which performs some action on the data going through nsIAuthPrompt methods. Persisting data from the prompts and using it to pre-fill subsequent prompts would be one such action. 349 nsIAutoCompleteController Interfaces, ...
nsIAuthPrompt2
netwerk/base/public/nsIAuthPrompt2.idlScriptable An interface allowing to prompt for a username and password. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) This interface is usually acquired using getInterface on notification callbacks or similar. It can be used to prompt users for authentication information, either synchronously or asynchronously. This interface is implemented by @mozilla.org/login-manager/prompter;1. To create an instance, use: var authPrompt2 = Components.classes["@mozilla.org/login-manager/prompter;1"] .createInstance(Components.interfaces.nsIAuthPrompt2); Method overview nsICancelable asyncPromptAuth(in nsIChannel aChannel, in nsIAuthPromptCallback aCallback, in nsISuppo...
...loses the dialog using a cancel button or similar, the callback's nsIAuthPromptCallback.onAuthCancelled() method must be called. Calling nsICancelable.cancel() on the returned object should close the dialog and must call nsIAuthPromptCallback.onAuthCancelled() on the provided callback. This implementation may: Coalesce identical prompts. This means prompts that are guaranteed to want the same authentication information from the user. A single prompt will be shown; then the callbacks for all the coalesced prompts will be notified with the resulting authentication information. Serialize prompts that are all in the same "context" (this might mean application-wide, for a given window, or something else depending on the user interface) so that the user is not deluged with prompts. Note: This method ma...
...hrough the callback. This way we prevent multiple dialogs shown to the user because consumer may fall back to synchronous prompt on synchronous failure of this method. nsICancelable asyncPromptAuth( in nsIChannel aChannel, in nsIAuthPromptCallback aCallback, in nsISupports aContext, in PRUint32 level, in nsIAuthInformation authInfo ); Parameters aChannel The channel that requires authentication. aCallback aContext level One of the level constants. authInfo Authentication information object. The implementation should fill in this object with the information entered by the user before returning. Return value promptAuth() Requests a username and a password. Implementations will commonly show a dialog with a username and password field, depending on flags also a domain fie...
...quests a username and a password. Implementations will commonly show a dialog with a username and password field, depending on flags also a domain field. Note: Exceptions thrown from this function will be treated like a return value of false. boolean promptAuth( in nsIChannel aChannel, in PRUint32 level, in nsIAuthInformation authInfo ); Parameters aChannel The channel that requires authentication. level One of the level constants. authInfo Authentication information object. The implementation should fill in this object with the information entered by the user before returning. Return value false, authentication should be cancelled, usually because the user did not provide username/password. true, authentication can proceed using the values in the authInfo object. See also nsIAu...
AuthenticatorAssertionResponse.authenticatorData - Web APIs
least significant bit and all bits not specifically mentioned below are "reserved for future use": Bit 0, User Presence (UP) - If set, authenticator validated that the user was present through some Test of User Presence (TUP), such as touching a button on the authenticator. Bit 2, User Verification (UV) - If set, authenticator verified the actual user, through a biometric, PIN, or other authentication method. Bit 6, Attested Credential Data (AT) - If set, attestedCredentialData will immediately follow the first 37 bytes of this authenticatorData. Bit 7, Extension data (ED) - If set, extension data is present. Extension data will follow attestedCredentialData if it is present, or will immediatelly follow the first 37 bytes of the authenticatorData if no attestedCredentialData is present. ...
...authenticator (not the specific instance of the authenticator) so that a relying party can understand the characteristics of the authenticator by looking up its metadata statement. credentialIdLength (2 bytes) - The length of the credential ID that immediately follows these bytes. credentialId (variable length) - A unique identifier for this credential so that it can be requested for future authentications. The credential is "credentialIdLength" bytes long. credentialPublicKey (variable length) - A COSE encoded public key. This public key will be stored on the server associated with a user's account and be used for future authentications. extensions (variable length) - An optional CBOR map of extensions. Examples var options = { challenge: new Uint8Array(26), // will be another value...
... Recommendation Initial definition. ...
... Recommendation Initial definition. ...
Proxy-Authenticate - HTTP
realm=<realm> A description of the protected area, the realm. If no realm is specified, clients often display a formatted host name instead. ...
... The HTTP Proxy-Authenticate response header defines the authentication method that should be used to gain access to a resource behind a proxy server. It authenticates the request to the proxy server, allowing it to transmit the request further. The Proxy-Authenticate header is sent along with a 407 Proxy Authentication Required. Header type Response header Forbidden header name no Syntax Proxy-Authenticate: <type> realm=<realm> Directives <type> Authentication type. A common type is "Basic". IANA maintains a list of authentication schemes. realm=<realm> A description of the protected area, the realm. If no realm is specified, clients often display a formatted host name instead. Examples Proxy-Authenticate: Basic Proxy-Authenticate: Basic realm="Access to th...
...intains a list of authentication schemes. ...
...lm> A description of the protected area, the realm. ...
Transport Layer Security - Web security
al of the protocol was to encrypt HTTP traffic. HTTP encrypted using TLS is commonly referred to as HTTPS. TLS-encrypted web traffic is by convention exchanged on port 443 by default, while unencrypted HTTP uses port 80 by default. HTTPS remains an important use case for TLS. HTTP over TLS TLS provides three primary services that help ensure the safety and security of data exchanged with it: Authentication Authentication lets each party to the communication verify that the other party is who they claim to be. Encryption Data is encrypted while being transmitted between the user agent and the server, in order to prevent it from being read and interpreted by unauthorized parties. Integrity TLS ensures that between encrypting, transmitting, and decrypting the data, no information is lost, damaged...
... a cipher suite. In TLS 1.2 and earlier, the negotiated cipher suite includes a set of cryptographic algorithms that together provide the negotiation of the shared secret, the means by which a server is authenticated, and the method that will be used to encrypt data. The cipher suite in TLS 1.3 primarily governs the encryption of data, separate negotiation methods are used for key agreement and authentication. Different software might use different names for the same cipher suites. For instance, the names used in OpenSSL and GnuTLS differ from those in the TLS standards. The cipher names correspondence table on the Mozilla OpSec team's article on TLS configurations lists these names as well as information about compatibility and security levels. Configuring your server Correctly configuring your se...
... to operate successfully. TLS 1.3 adds just one significant new use case. The 0-RTT handshake can provide significant performance gains for latency sensitive applications, like the web. Enabling 0-RTT requires additional steps, both to ensure successful deployment and to manage the risks of replay attacks. ...
...Alternative mechanisms are in the process of being developed, which will also support HTTP/2. Retiring old TLS versions To help with working towards a more modern, more secure web, TLS 1.0 and 1.1 support will be removed from all major browsers in Q1 2020. ...
JavaScript crypto - Archive of obsolete content
MECH_DES_FLAG: must support CKM_CPMF_CBC, CKM_DES_CBC, CKM_DES3_CBC, CKM_CPMF_ECB, CKM_DES_ECB, CKM_DES3_ECB and the following functions: C_GENERATEKEY, C_ENCRYPT, C_DECRYPT, C_WRAPKEY, C_UNWRAPKEY PKCS11_MECH_DH_FLAG: must support CKM_DH_PKCS_DERIVE and CKM_DH_KEY_PAIR_GEN and the following functions: C_DERIVEKEY, C_GENERATEKEYPAIR PKCS11_MECH_MD5_FLAG: Hashing must be able to function without authentication. PKCS11_MECH_SHA1_FLAG: Hashing must be able to function without authentication. PKCS11_MECH_MD2_FLAG: Hashing must be able to function without authentication.* PKCS11_RANDOM_FLAG: Use token's Random Number Generator. Warning: Must be able to use without authentication. Many hardware random number generators are not as secure as the Netscape internal one. Do not select this value unless ...
... Turning this flag on will illuminate a large number of password prompts for your token when looking up certs in Communicator. ...
...to.getRandomValues instead. void logout(); Logs the user out of all the cryptographic tokens. The next private operation on any token will require the user password again. The SSL session cache is also cleared (from Firefox 1.5 upward). This means the master password will be requested the next time a saved password will be accessed after this function is called. This also means the SSL client authentication state will be erased for SSL sites with client authentication, and a client certificate prompt will appear again the next time the user connects to the site. Note: This function provides a convenient way to erase the SSL session state at the browser level, but in order to really guarantee that the state is erased, it is more secure to do it on the server side whenever possible. void disableRi...
Twitter - Archive of obsolete content
whose properties correspond to the parameters of the Twitter method. With this style you can use any of the various jQuery.ajax() options in your request: data, success, complete, etc. ...
... style you can use any of the various jQuery.ajax() options in your request: data, success, complete, etc. Example: jetpack.lib.twitter.statuses.update({ data: { status: "O frabjous day!" }, username: "basic_auth_username", password: "basic_auth_password", success: function () console.log("Hey!") }); User authentication You can supply a username and password to methods that require authentication using the second, more advanced call style described above. Or you can simply rely on Firefox. When you call a method that requires authentication -- such as jetpack.lib.twitter.statuses.update() -- without providing a username or password, Firefox will prompt the user for them if she is not already authenticated with Twitter. Both methods use HTTP basic authentication. In the future, the librar...
...FAQ See Twitter's API FAQ. Since Jetpack's Twitter library is a very thin wrapper around Twitter's API, most everything there applies here, and not much applies here that doesn't apply there. ...
Cipher suite - MDN Web Docs Glossary: Definitions of Web-related terms
A cipher suite is a combination of a key exchange algorithm, authentication method, bulk encryption cipher, and message authentication code. In a cryptosystem like TLS, the client and server must agree on a cipher suite before they can begin communicating securely. ...
...hm, authentication method, bulk encryption cipher, and message authentication code. In a cryptosystem like TLS, the client and server must agree on a cipher suite before they can begin communicating securely. ...
...ee on a cipher suite before they can begin communicating securely. ...
PKCS11 Implement
r the PIN, even though it's possible to set a PIN with C_SetPIN. If the PIN is set successfully, the CFK_LOGIN_REQUIRED flag should change to TRUE. The NSS uses this combination of flags for its internal token when the key database password is NULL. These are not standard PKCS #11 semantics; they are intended for NSS's internal use only. TRUE TRUE The device has been initialized and requires authentication. The NSS checks whether the user is logged on, and if not prompts the user for a PIN. C_GetMechanismList The NSS calls C_GetMechanismList fairly frequently to identify the mechanisms supported by a token. C_GetMechanismInfo The NSS currently doesn't call C_GetMechanismInfo. This function may be called in the future, so you should implement it anyway. C_InitToken The NSS never calls C_I...
...RIAL. If those fields aren't set on the token, S/MIME won't work. Functions for Different Kinds of Tokens The NSS expects different kinds of PKCS #11 support from four different kinds of tokens: External key distribution tokens are used with corresponding plug-ins to distribute private keys. Signing tokens include a signing certificate and are used to sign objects or messages or to perform SSL authentication. They cannot be used for encrypted S/MIME, because they can't decrypt messages. Signing and decryption tokens can be used for S/MIME and for encrypted transactions over unsecured networks such as the Internet. Multipurpose tokens provide the full range of cryptographic services. They can be thought of as cryptographic accelerator cards. Future releases of NSS will also support multipurpose toke...
...ultiple sessions simultaneously and if you wish to support C_InitPIN, C_SetPIN, or C_GenerateKeyPair, you must support simultaneous read-only and read/write sessions. Random-Number Generation and Simple Digesting The NSS requires that the following functions operate without authenticating to the token: C_SeedRandom, C_GenerateRandom, and C_Digest (for SHA, MD5, and MD2). If your token requires authentication before executing these functions, your token cannot provide the default implementation for them. (You can still use your token for other default functions.) NSS does not support replacement of default functions. Later versions will provide such support. Read/Write and Read-Only Requirements The NSS assumes that the following operations always require a read/write session: creating a token ob...
nsIAuthInformation
netwerk/base/public/nsIAuthInformation.idlScriptable A object that holds authentication information. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) The caller of nsIAuthPrompt2.promptUsernameAndPassword() or nsIAuthPrompt2.promptPasswordAsync() provides an object implementing this interface; the prompt implementation can then read the values here to prefill the dialog. After the user entered the authentication information, it should set the attributes of this object to indicate to the caller what was entered by the user. Attributes Attribute Type Description authenticationScheme AUTF8String The authentication scheme used for this request, if applicable. If the protocol for this au...
...s they do not understand; especially, they should not throw an exception because of an unsupported flag. Read only. password AString The initial value should be used to prefill the dialog or be shown in some other way to the user. The password should not be shown in clear. On return, this parameter should contain the password entered by the user. realm AString The server-supplied realm of the authentication as defined in RFC 2617. Can be the empty string if the protocol does not support realms. Otherwise, this is a human-readable string like "Secret files". Read only. username AString The initial value should be used to prefill the dialog or be shown in some other way to the user. On return, this parameter should contain the username entered by the user. This field can only be changed if the #ONLY...
...anged if the #ONLY_PASSWORD flag is not set. Constants Constant Value Description AUTH_HOST 1 This dialog belongs to a network host. AUTH_PROXY 2 This dialog belongs to a proxy. NEED_DOMAIN 4 This dialog needs domain information. The user interface should show a domain field, prefilled with the domain attributes value. ONLY_PASSWORD 8 This dialog only asks for password information. Authentication prompts SHOULD NOT show a username field. Attempts to change the username field will have no effect. nsIAuthPrompt2 implementations should, however, show its initial value to the user in some form. For example, a paragraph in the dialog might say "Please enter your password for user jsmith at server intranet". This flag is mutually exclusive with #NEED_DOMAIN. PREVIOUS_FAILED 16 We have already...
AuthenticatorAssertionResponse - Web APIs
This interface inherites from AuthenticatorResponse. Note: This interface is restricted to top-level contexts. Use from within an <iframe> element will not have any effect. Properties AuthenticatorAssertionResponse.clientDataJSON Secure contextRead only The client data for the authentication, such as origin and challenge. The clientDataJSON property is inherited from the AuthenticatorResponse. ...
...The clientDataJSON property is inherited from the AuthenticatorResponse. ...
... Recommendation Initial definition. ...
AuthenticatorAttestationResponse - Web APIs
This response should be sent to the relying party's server to complete the creation of the credential. This interface inherites from AuthenticatorResponse. Note: This interface is restricted to top-level contexts. Use from within an <iframe> element will not have any effect. Properties AuthenticatorAttestationResponse.clientDataJSON Secure contextRead only Client data for the authentication, such as origin and challenge. ...
...generated. This response should be sent to the relying party's server to complete the creation of the credential. This interface inherites from AuthenticatorResponse. Note: This interface is restricted to top-level contexts. Use from within an <iframe> element will not have any effect. Properties AuthenticatorAttestationResponse.clientDataJSON Secure contextRead only Client data for the authentication, such as origin and challenge. The clientDataJSON property is inherited from the AuthenticatorResponse. AuthenticatorAttestationResponse.attestationObject Secure contextRead only An ArrayBuffer containing authenticator data and an attestation statement for a newly-created key pair. Methods AuthenticatorAttestationResponse.getTransports()Secure context Returns an Array of strings describi...
... Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.extensions - Web APIs
utputs an array of strings containing the extensions which are supported by the authenticator. uvi Boolean User verification index. If true, the client outputs an ArrayBuffer which contains a value uniquely identifying a user verification data record. In other words, this may be used server side to check if the current operation is based on the same biometric data that the previous authentication. loc Boolean Location. If true, the client outputs a Coordinates object representing the geolocation of the authenticator. uvm Boolean User verification method. If true, the client outputs an array of arrays with 3 values containing information about how the user was verified (e.g. fingerprint, pin, pattern), how the key is protected, how the matcher (tool used for t...
... loc Boolean Location. If true, the client outputs a Coordinates object representing the geolocation of the authenticator. uvm Boolean User verification method. If true, the client outputs an array of arrays with 3 values containing information about how the user was verified (e.g. fingerprint, pin, pattern), how the key is protected, how the matcher (tool used for the authentication operation) is protected. biometricPerfBounds Object with two numerical properties: FAR and FRR Biometric authenticator performance bounds. The client must not use any authenticator with false acceptance rate (FAR) and false rejection rate (FRR) below the inputs. The client outputs true if this was taken into account. Note: Extensions are optional and different browsers may ...
... Recommendation Initial definition. ...
PublicKeyCredentialRequestOptions.extensions - Web APIs
content which was displayed (hashing with the same algorithm which is used for the signature). uvi Boolean User verification index. If true, the client outputs an ArrayBuffer which contains a value uniquely identifying a user verification data record. In other words, this may be used server side to check if the current operation is based on the same biometric data that the previous authentication. loc Boolean Location. If true, the client outputs a Coordinates object representing the geolocation of the authenticator. uvm Boolean User verification method. If true, the client outputs an array of arrays with 3 values containing information about how the user was verified (e.g. fingerprint, pin, pattern), how the key is protected, how the matcher (tool used for t...
... loc Boolean Location. If true, the client outputs a Coordinates object representing the geolocation of the authenticator. uvm Boolean User verification method. If true, the client outputs an array of arrays with 3 values containing information about how the user was verified (e.g. fingerprint, pin, pattern), how the key is protected, how the matcher (tool used for the authentication operation) is protected. Note: Extensions are optional and different browsers may recognize different extensions. All extensions are optional for the client to process them: if a browser does not know a given extension, that will not cause any failure, the extension simply will not be processed. Examples var options = { extensions: { uvm: true, loc: false, txAuthSimple: "...
... Recommendation Initial definition. ...
PublicKeyCredentialRequestOptions - Web APIs
Properties PublicKeyCredentialRequestOptions.challenge A BufferSource, emitted by the relying party's server and used as a cryptographic challenge. This value will be signed by the authenticator and the signature will be sent back as part of AuthenticatorAssertionResponse.signature. PublicKeyCredentialRequestOptions.timeout Optional A numerical hint, in milliseconds, which indicates the time the caller is willing to wait for the retrieval operation to complete. This hint may be overridden by the browser. ...
...x. "login.example.org"). If this option is not provided, the client will use the current origin's domain. PublicKeyCredentialRequestOptions.allowCredentials Optional An Array of credentials descriptor which restricts the acceptable existing credentials for retrieval. PublicKeyCredentialRequestOptions.userVerification Optional A string qualifying how the user verification should be part of the authentication process. PublicKeyCredentialRequestOptions.extensions Optional An object with several client extensions' inputs. Those extensions are used to request additional processing (e.g. dealing with legacy FIDO APIs credentials, prompting a specific text on the authenticator, etc.). Methods None. Examples var options = { challenge: new Uint8Array([/* bytes sent from the server */]), rpId: "exa...
... Recommendation Initial definition. ...
Writing WebSocket servers - Web APIs
server is explained on a very low level here. WebSocket servers are often separate and specialized servers (for load-balancing or other practical reasons), so you will often use a reverse proxy (such as a regular HTTP server) to detect WebSocket handshakes, pre-process them, and send those clients to a real WebSocket server. This means that you don't have to bloat your server code with cookie and authentication handlers (for example). The WebSocket handshake First, the server must listen for incoming socket connections using a standard TCP socket. Depending on your platform, this may be handled for you automatically. For example, let's assume that your server is listening on example.com, port 8000, and your socket server responds to GET requests at example.com/chat. Warning: The server may listen on...
...ers that looks like this (the HTTP version must be 1.1 or greater, and the method must be GET): GET /chat HTTP/1.1 Host: example.com:8000 Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== Sec-WebSocket-Version: 13 The client can solicit extensions and/or subprotocols here; see Miscellaneous for details. Also, common headers like User-Agent, Referer, Cookie, or authentication headers might be there as well. Do whatever you want with those; they don't directly pertain to the WebSocket. It's also safe to ignore them. In many common setups, a reverse proxy has already dealt with them. Tip: All browsers send an Origin header. You can use this header for security (checking for same origin, automatically allowing or denying, etc.) and send a 403 Forbidden if you don't lik...
...ty issues might arise if the server accepts a WebSockets connection but interprets the data as a HTTP request. So if the Key was "dGhlIHNhbXBsZSBub25jZQ==", the Sec-WebSocket-Accept header's value is "s3pPLMBiTxaQ9kYGzzhZRbK+xOo=". Once the server sends these headers, the handshake is complete and you can start swapping data! Note: The server can send other headers like Set-Cookie, or ask for authentication or redirects via other status codes, before sending the reply handshake. Keeping track of clients This doesn't directly relate to the WebSocket protocol, but it's worth mentioning here: your server must keep track of clients' sockets so you don't keep handshaking again with clients who have already completed the handshake. The same client IP address can try to connect multiple times. However, ...
Authorization - HTTP
The HTTP Authorization request header contains the credentials to authenticate a user agent with a server, usually, but not necessarily, after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header. Header type Request header Forbidden header name no Syntax Authorization: <type> <credentials> Directives <type> Authentication type. A common type is "Basic". Other types: IANA registry of Authentication schemes Authentification for AWS servers (AWS4-HMAC-SHA256) <credentials> If the "Basic" authentication scheme is used, the credentials are constructed like this: The username and the password are combined with a colon (aladdin:opensesame). The resulting string is base64 encoded (YWxhZGRpbjpvcGVuc2VzYW1l). Note: ...
...ials are constructed like this: The username and the password are combined with a colon (aladdin:opensesame). The resulting string is base64 encoded (YWxhZGRpbjpvcGVuc2VzYW1l). Note: Base64 encoding does not mean encryption or hashing! This method is equally secure as sending the credentials in clear text (base64 is a reversible encoding). Prefer to use HTTPS in conjunction with Basic Authentication. ...
...laddin:opensesame). The resulting string is base64 encoded (YWxhZGRpbjpvcGVuc2VzYW1l). Note: Base64 encoding does not mean encryption or hashing! This method is equally secure as sending the credentials in clear text (base64 is a reversible encoding). Prefer to use HTTPS in conjunction with Basic Authentication. Examples Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l See also HTTP authentication for examples on how to configure Apache or nginx servers to password protect your site with HTTP basic authentication. Specifications Specification Title RFC 7235, section 4.2: Authorization HTTP/1.1: Authentication RFC 7617 The 'Basic' HTTP Authentication Scheme ...
Index - HTTP
Web › HTTP › Headers › Index
ma HTTP/1.0 general header is an implementation-specific header that may have various effects along the request-response chain. It is used for backwards compatibility with HTTP/1.0 caches where the Cache-Control HTTP/1.1 header is not yet present. 89 Proxy-Authenticate HTTP, HTTP Header, Proxy, Reference, Response Header The HTTP Proxy-Authenticate response header defines the authentication method that should be used to gain access to a resource behind a proxy server. It authenticates the request to the proxy server, allowing it to transmit the request further. 90 Proxy-Authorization HTTP, HTTP Header, Reference, Request header, header The HTTP Proxy-Authorization request header contains the credentials to authenticate a user agent to a proxy server, usually aft...
... a resource behind a proxy server. It authenticates the request to the proxy server, allowing it to transmit the request further. 90 Proxy-Authorization HTTP, HTTP Header, Reference, Request header, header The HTTP Proxy-Authorization request header contains the credentials to authenticate a user agent to a proxy server, usually after the server has responded with a 407 Proxy Authentication Required status and the Proxy-Authenticate header. 91 Public-Key-Pins HPKP, HTTP, Reference, Security, header The HTTP Public-Key-Pins response header associates a specific cryptographic public key with a certain web server to decrease the risk of MITM attacks with forged certificates. If one or several keys are pinned and none of them are used by the server, the browser will...
...oth forward and reverse proxies, and can appear in the request headers and the response headers. It is used for tracking message forwards, avoiding request loops, and identifying the protocol capabilities of senders along the request/response chain. 114 WWW-Authenticate HTTP, HTTP Header, Reference, Response Header, header The HTTP WWW-Authenticate response header defines the authentication method that should be used to gain access to a resource. 115 Warning General Header, HTTP, Reference, header The Warning general HTTP header contains information about possible problems with the status of the message. More than one Warning header may appear in a response. 116 X-Content-Type-Options HTTP, HTTP Header, Reference, Response Header The X-Conte...
An overview of HTTP - HTTP
Web › HTTP › Overview
ceive without altering them in any way, or non-transparent, in which case they will change the request in some way before passing it along to the server. Proxies may perform numerous functions: caching (the cache can be public or private, like the browser cache) filtering (like an antivirus scan or parental controls) load balancing (to allow multiple servers to serve the different requests) authentication (to control access to different resources) logging (allowing the storage of historical information) Basic aspects of HTTP HTTP is simple HTTP is generally designed to be simple and human readable, even with the added complexity introduced in HTTP/2 by encapsulating HTTP messages into frames. HTTP messages can be read and understood by humans, providing easier testing for developers, and redu...
...the connection warm and more efficient. Experiments are in progress to design a better transport protocol more suited to HTTP. For example, Google is experimenting with QUIC which builds on UDP to provide a more reliable and efficient transport protocol. What can be controlled by HTTP This extensible nature of HTTP has, over time, allowed for more control and functionality of the Web. Cache or authentication methods were functions handled early in HTTP history. The ability to relax the origin constraint, by contrast, has only been added in the 2010s. Here is a list of common features controllable with HTTP. Caching How documents are cached can be controlled by HTTP. The server can instruct proxies and clients, about what to cache and for how long. The client can instruct intermediate cache prox...
...s, Web browsers enforce strict separation between Web sites. Only pages from the same origin can access all the information of a Web page. Though such constraint is a burden to the server, HTTP headers can relax this strict separation on the server side, allowing a document to become a patchwork of information sourced from different domains; there could even be security-related reasons to do so. Authentication Some pages may be protected so that only specific users can access them. Basic authentication may be provided by HTTP, either using the WWW-Authenticate and similar headers, or by setting a specific session using HTTP cookies. Proxy and tunneling Servers or clients are often located on intranets and hide their true IP address from other computers. HTTP requests then go through proxies to cro...
HTTP Class Overview - Archive of obsolete content
Warning: The content of this article may be out of date. It was last updated in 2002. This document provides an overview of the classes used by the Mozilla HTTP implementation. It's meant as a guide to developers wishing to understand or extend the Mozilla HTTP implementation. ...
...ming data nsHttpChunkedDecoder owned by a transaction strips chunked transfer encoding nsHttpRequestHead owns a nsHttpHeaderArray knows how to fill a request buffer nsHttpResponseHead owns a nsHttpHeaderArray knows how to parse response lines performs common header manipulations/calculations nsHttpHeaderArray stores http "<header>:<value>" pairs nsHttpAuthCache stores authentication credentials for http auth domains nsHttpBasicAuth implements nsIHttpAuthenticator generates BASIC auth credentials from user:pass nsHttpDigestAuth implements nsIHttpAuthenticator generates DIGEST auth credentials from user:pass Original Document Information Author(s): Darin Fisher Last Updated Date: August 5, 2002 Copyright Information: Portions of this content are (C) 1998-20...
Encryption and Decryption - Archive of obsolete content
ey can be calculated from the decryption key and vice versa. With most symmetric algorithms, the same key is used for both encryption and decryption, as shown in Figure 1. Implementations of symmetric-key encryption can be highly efficient, so that users do not experience any significant time delay as a result of the encryption and decryption. Symmetric-key encryption also provides a degree of authentication, since information encrypted with one symmetric key cannot be decrypted with any other symmetric key. Thus, as long as the symmetric key is kept secret by the two parties using it to encrypt communications, each party can be sure that it is communicating with the other as long as the decrypted messages continue to make sense. Symmetric-key encryption is effective only if the symmetric key is kep...
... as long as the symmetric key is kept secret by the two parties using it to encrypt communications, each party can be sure that it is communicating with the other as long as the decrypted messages continue to make sense. Symmetric-key encryption is effective only if the symmetric key is kept secret by the two parties involved. If anyone else discovers the key, it affects both confidentiality and authentication. A person with an unauthorized symmetric key not only can decrypt messages sent with that key, but can encrypt new messages and send them as if they came from one of the two parties who were originally using the key. Symmetric-key encryption plays an important role in the SSL protocol, which is widely used for authentication, tamper detection, and encryption over TCP/IP networks. SSL also uses t...
TCP/IP Security - Archive of obsolete content
thorized parties. This is accomplished by encrypting data using a cryptographic algorithm and a secret key--a value known only to the two parties exchanging data. The data can only be decrypted by someone who has the secret key. Integrity. SSL can determine if data has been changed (intentionally or unintentionally) during transit. ...
...nly be decrypted by someone who has the secret key. Integrity. SSL can determine if data has been changed (intentionally or unintentionally) during transit. The integrity of data can be assured by generating a message authentication code (MAC) value, which is a keyed cryptographic checksum of the data. If the data is altered and the MAC is recalculated, the old and new MACs will differ. Peer Authentication. Each SSL endpoint can confirm the identity of the other SSL endpoint with which it wishes to communicate, ensuring that the network traffic and data is being sent from the expected host. SSL authentication is typically performed one-way, authenticating the server to the client, but it can be performed mutually. Replay Protection. The same data is not delivered multiple times, and data is not...
Vulnerabilities - Archive of obsolete content
ort in some cases. Security configuration issues are also unavoidable for two reasons. First, many configuration settings increase security at the expense of reducing functionality, so using the most secure settings could make the software useless or unusable. Second, many security settings have both positive and negative consequences for security. An example is the number of consecutive failed authentication attempts to permit before locking out a user account. Setting this to 1 would be the most secure setting against password guessing attacks, but it would also cause legitimate users to be locked out after mistyping a password once, and it would also permit attackers to perform denial-of-service attacks against users more easily by generating a single failed login attempt for each user account. Be...
...sed on the data from various security organizations. The web security vulnerabilities are prioritized depending on exploitability, detectability and impact on software which can be any CMS such as WordPress, Joomla, Magento, Wocommerce and more. Here are six of the most common website vulnerabilities you must protect yourself against. 1. SQL Injections 2. Cross Site Scripting (XSS) 3. Broken Authentication & Session Management 4. Insecure Direct Object References - DOM (Document Object Model) 5. Security Misconfiguration 6. Cross-Site Request Forgery (CSRF) ...
SQL Injection - MDN Web Docs Glossary: Definitions of Web-related terms
ECT Count(*) FROM Users WHERE Username=' admin ' AND Password=' anything 'or'1'='1 ' "; Just take a closer look at the above query's password section. Password=' anything 'or'1'='1 ' The password is not 'anything', hence password=anything results in FALSE, but '1'='1' is a TRUE statement and hence returns a TRUE value. Finally, due to the OR operator, the value ( FALSE OR TRUE ) is TRUE, so authentication bypasses successfully. Just due to a simple string (Magical String) the entire database is compromised. How To Prevent Before executing the queries for the user credentials, make some changes like the following: $id = $_GET['id'] (1) $id = Stripslashes($id) (2) $id = mysql_real_escape_String($id) So due to (1) each single quote (') in the input string is replaced with double quotes ("), ...
...compromised. How To Prevent Before executing the queries for the user credentials, make some changes like the following: $id = $_GET['id'] (1) $id = Stripslashes($id) (2) $id = mysql_real_escape_String($id) So due to (1) each single quote (') in the input string is replaced with double quotes ("), and due to (2) before every (') it adds (/). The revised magical string fails to bypass the authentication, and your database stays secure. Learn more General knowledge SQL injection on Wikipedia Explanation of SQL injection on OWASP (Open Web Application Security Project) ...
Session Hijacking - MDN Web Docs Glossary: Definitions of Web-related terms
In TCP session hijacking, an attacker gains access by taking over a TCP session between two machines in mid session. ...
...s Sniff, that is perform a man-in-the-middle (MITM) attack, place yourself between victim and server. Monitor packets flowing between server and user. Break the victim machine's connection. Take control of the session. Inject new packets to the server using the Victim's Session ID. ...
Phishing: a short definition
browser vendors too, are interested in protecting their users from phishing. After all, the browser plays an essential role in the scheme: a fake website is loaded in a browser and here is the maker's last chance to preventing fraud. Since version 2.0, Firefox has used Google's SafeBrowsing service, to detect known web forgeries, and display an alert instead of the fraudulent website. Two-Factor Authentication None of the above anti-phishing measures address the basic problem: username/password combinations are often enough to impersonate users. Enter the world of second factors. A second factor is something a user possesses to further authenticate with a service. For example, a USB token, Bluetooth device, mobile phone, or simply a key stored on a separate device. The first factor is usually the pas...
...rname/password combinations are often enough to impersonate users. Enter the world of second factors. A second factor is something a user possesses to further authenticate with a service. For example, a USB token, Bluetooth device, mobile phone, or simply a key stored on a separate device. The first factor is usually the password and username. If both factors don't match, the service will reject authentication requests. Public Key Cryptography Many services will soon support W3C Web Authentication, a powerful technology to evade phishing, based on public key cryptography. Web Authentication supports millions of readily avilable FIDO U2F USB security keys, and will support the more advanced FIDO 2.0 keys, once made available. Verification via Text Message If a service supports verification, via SMS,...
NSS FAQ
Mozilla › Projects › NSS › FAQ
ork Security Services (NSS) to do so. Because NSS provides complete support for all versions of SSL and TLS, it is particularly well-suited for applications that need to communicate with the many clients and servers that already support the SSL protocol. The PKCS #11 interface included in NSS means that your application can use hardware accelerators on the server and smart cards for two-factor authentication. How does NSS compare to OpenSSL? OpenSSL is an open source project that implements server-side SSL, TLS, and a general-purpose cryptography library. It does not support PKCS #11. It is based on the SSLeay library developed by Eric A. Young and Tim J. Hudson. OpenSSL is widely used in Apache servers and is licensed under an Apache-style licence. NSS supports both server and client applications...
...otocols using TCP/IP. How long does it take to integrate NSS into my application? The integration effort depends on an number of factors, such as developer skill set, application complexity, and the level of security required for your application. NSS includes detailed documentation of the SSL API and sample code that demonstrates basic SSL functionality (setting up an encrypted session, server authentication, and client authentication) to help jump start the integration process. However, there is little or no documentation currently available for the rest of the NSS API. If your application requires sophisticated certificate management, smart card support, or hardware acceleration, your integration effort will be more extensive. Where can I download the NSS tools? Binary builds of NSS for several p...
Index
For example: -t "TCu,Cu,Tuw" Use the -L option to see a list...
... 332 PKCS 7 functions NSS The public functions listed here perform PKCS #7 operations required by mail and news applications and by some of the NSS tools. 333 PKCS11 NSS, Security No summary! 334 PKCS #11 Module Specs NSS No summary! 335 PKCS11 FAQ NSS, Security No summary! 336 PKCS11 module installation Authentication, Biometric, Mozilla, NSS, PKCS #11, Projects, Security, Smart Card, Smart-card, Smartcard, pkcs11 PKCS #11 modules are external modules which add to Firefox support for smartcard readers, biometric security devices, and external certificate stores. This article covers the two methods for installing PKCS #11 modules into Firefox. 337 PKCS11 Implement NOTE: This document...
NSS 3.43 release notes
nload: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_43_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.43 New Functionality New Functions in sechash.h HASH_GetHashOidTagByHashType - convert type HASH_HashType to type SECOidTag in sslexp.h SSL_SendCertificateRequest - allow server to request post-handshake client authentication. ...
.... New in NSS 3.43 New Functionality New Functions in sechash.h HASH_GetHashOidTagByHashType - convert type HASH_HashType to type SECOidTag in sslexp.h SSL_SendCertificateRequest - allow server to request post-handshake client authentication. To use this both peers need to enable the SSL_ENABLE_POST_HANDSHAKE_AUTH option. ...
nss tech note3
age attempts to answer that question, and to document NSS's approach to validating certificates for certain purposes. When NSS is asked to verify the validity of a certificate chain, it verifies the validity of that cert chain for a particular purpose, known as a SECCertUsage, as of a specific date and time. The list of known SECCertUsages is short: certUsageSSLClient ........... An SSL client authentication cert certUsageSSLServer ........... An ordinary SSL server cert certUsageSSLServerWithStepUp.. An SSL server cert that allows export clients to use strong crypto. certUsageSSLCA ............... An intermediate or root CA cert allowed to issue SSL client or SSL server certs or other intermediate SSL CA certs. certUsageEmailSigner ......... Used to verify S/MIME email signatures certUsa...
...gets the STATUS_RESPONDER cert type. If the cert has a Fortezza type public key with the magic bits that signify that it is a CA, it is given cert types SSL_CA and EMAIL_CA. A cert with the extended key usage extension and the Netscape cert type extension that has the cert type SSL_CLIENT and also has an email address in the subject is also given the cert type EMAIL. This allows all SSL client authentication certs with email addresses to also be used as email certs (provded they have adequate key usage). A cert with the extended key usage extension and the Netscape cert type extension that as cert type SSL_CA is also always given cert type EMAIL_CA. This allows all SSL intermediate CAs to also be used as email intermediate CAs. /* X.509 v3 Key Usage Extension flags */ #define KU_DIGITAL_SIGNATURE ...
Overview of NSS
n-source API for system functions designed to facilitate cross-platform development. Like NSS, NSPR has been battle-tested in multiple products. For more information, see the NSPR Project Page. Interoperability and Open Standards You can use NSS to support a range of security standards in your application, including the following: SSL v3. The Secure Sockets Layer (SSL) protocol allows mutual authentication between a client and server and the establishment of an authenticated and encrypted connection. TLS v1.3 (RFC 8446), TLS v1.2 (RFC 5246), TLS v1.1 (RFC 4346), TLS v1 (RFC 2246). The Transport Layer Security (TLS) protocol from the IETF that supersedes SSL. PKCS #1. RSA standard that governs implementation of public-key cryptography based on the RSA algorithm. PKCS #3. RSA standard that governs...
...ations. PKCS #12. RSA standard that governs the format used to store or transport private keys, certificates, and other secret material. S/MIME (RFC 2311 and RFC 2633). IETF message specification (based on the popular Internet MIME standard) that provides a consistent way to send and receive signed and encrypted MIME data. X.509 v3. ITU standard that governs the format of certificates used for authentication in public-key cryptography. OCSP (RFC 2560). The Online Certificate Status Protocol (OCSP) governs real-time confirmation of certificate validity. PKIX Certificate and CRL Profile (RFC 3280). The first part of the four-part standard under development by the Public-Key Infrastructure (X.509) working group of the IETF (known at PKIX) for a public-key infrastructure for the Internet. RSA, DSA, EC...
gtstd.html
se databases. Setting Up the Server DB and Certificate The sections that follow describe how to set up the Server DB and certificate: Create a new certificate database in the server_db directory. >mkdir server_db >certutil -N -d server_db Import the new CA certificate into the server's certificate database, and mark it trusted for issuing certificates for SSL client and server authentication. >certutil -A -d server_db -n "MyCo's Root CA" -t "TC,," -a -i CA_db/rootca.crt Create the server certificate request, specifying the subject name for the server certificate. We make the common name (CN) be identical to the hostname of the server. Note that this step generates the server's private key, so it must be done in the server's database directory. >certutil -R -d server_db -s...
... to be able to do its job. Setting Up the Client DB and Certificate Setting up the client certificate database involves three stages: Create a new certificate database in the client_db directory. >mkdir client_db >certutil -N -d client_db Import the new CA certificate into the client's certificate database, and mark it trusted for issuing certificates for SSL client and server authentication. >certutil -A -d client_db -n "MyCo's Root CA" -t "TC,," -a -i CA_db/rootca.crt Create the client certificate request, specifying the subject name for the certificate. >certutil -R -d client_db -s "CN=Joe Client,O=MyCo,ST=California,C=US" -a -o client_db/client.req Enter Password or Pin for "Communicator Certificate DB": This step simulates the CA signing and issuing a new cli...
TLS Cipher Suite Discovery
In order to communicate securely, an TLS client and TLS server must agree on the cryptographic algorithms and keys that they will both use on the secured connection. They must agree on these items: Key Establishment Algorithm (such as RSA, DH, or ECDH) Peer Authentication Algorithm (such as RSA, DSA, ECDSA) Bulk Data Encryption Algorithm (such as RC4, DES, AES) and key size Digest Algorithm for Message Authentication Checking (SHA1, SHA256) There are numerous available choices for each of those categories, and the number of possible combinations of all those choices is large. TLS does not allow all possible combinations of choices from those categories to be used. Instead, TLS allows only certain well-defined combinations of those choices, known as Cipher Suites, defined in the IETF RFC stand...
...fo fills that caller-supplied memory with information from the SSLCipherSuiteInfo structure for that cipher suite. ...
Using nsILoginManager
ginManager ); Most Login Manager functions take an nsILoginInfo object as a parameter. An nsILoginInfo object contains the following attributes: hostname, form submit URL, HTTP realm, username, username field, password, and password field. The hostname, username and password attributes are mandatory, while the other fields are set based on whether the login is for a web page form or an HTTP/FTP authentication site login. See the nsILoginInfo attribute definitions for more details. Defining an nsILoginInfo object is simple: var nsLoginInfo = new Components.Constructor( "@mozilla.org/login-manager/loginInfo;1", Components.interfaces.nsILoginInfo, "init" ); var loginInfo = new nsLoginInfo( hostname, formSubmitURL, httprealm, username, password, usernameField, passwordField ); Examples Creatin...
...( 'http://www.example.com', 'http://login.example.com', null, 'joe', 'SeCrEt123', 'uname', 'pword' ); This login would correspond to a HTML form such as: <form action="http://login.example.com/foo/authenticate.cgi"> <div>Please log in.</div> <label>Username:</label> <input type="text" name="uname"> <label>Password:</label> <input type="password" name="pword"> </form> Creating a site authentication login var authLoginInfo = new nsLoginInfo( 'http://www.example.com', null, 'ExampleCo Login', 'alice', 'SeCrEt321', "", "" ); This would correspond to a login on http://www.example.com when the server sends a reply such as: HTTP/1.0 401 Authorization Required Server: Apache/1.3.27 WWW-Authenticate: Basic realm="ExampleCo Login" Creating a local extension login var extLoginInfo =...
nsIPushSubscription
his subscription, or -1 if exempt. Methods getKey() Returns a byte array containing the key material for this subscription. The remote server can use these keys to encrypt and authenticate message payloads. The following key names are supported: p256dh The ECDH public key, used as the input keying material in the HKDF invocation during encryption. auth The shared authentication secret, used as the salt in the HKDF invocation. void getKey( in DOMString name, [optional] out uint32_t keyLen, [array, size_is(keyLen), retval] out uint8_t key ); Parameters name The encryption key name. keyLen The keying material length. key The byte array containing the keying material. keyLen and key are out parameters. When called from JavaScript, nsIPushSubscripti...
... key: String.fromCharCode.apply(null, btoa(subscription.getKey("p256dh"))), secret: String.fromCharCode.apply(null, btoa(subscription.getKey("auth"))), })); } pushService.subscribe( "chrome://my-module/push", scriptSecurityManager.getSystemPrincipal(), (code, subscription) => { if (!Components.isSuccessCode(code)) { Cu.reportError("Error creating subscription: " ...
nsISound
Value Description EVENT_NEW_MAIL_RECEIVED 0 The system receives email. EVENT_ALERT_DIALOG_OPEN 1 An alert dialog is opened. EVENT_CONFIRM_DIALOG_OPEN 2 A confirm dialog is opened. EVENT_PROMPT_DIALOG_OPEN 3 A prompt dialog (one that allows the user to enter data, such as an authentication dialog) is opened. EVENT_SELECT_DIALOG_OPEN 4 A select dialog (one that contains a list box) is opened. EVENT_MENU_EXECUTE 5 A menu item is executed. EVENT_MENU_POPUP 6 A popup menu is shown. EVENT_EDITOR_MAX_LEN 7 More characters than the maximum allowed are typed into a text field...
... The system sound when the system receives email. _moz_alertdialog The system sound when an alert dialog is opened. _moz_confirmdialog The system sound when a confirm dialog is opened. _moz_promptdialog The system sound when a prompt dialog (one that allows the user to enter data, such as an authentication dialog) is opened. _moz_selectdialog The system sound when a select dialog (one that contains a list box) is opened. _moz_menucommand The system sound when a menu item is executed. _moz_menupopup The system sound when a popup menu is shown. ...
AuthenticatorAssertionResponse.userHandle - Web APIs
Recommendation Initial definition. ...
... Recommendation Initial definition. ...
AuthenticatorResponse - Web APIs
The child interfaces include information from the browser such as the challenge origin and either may be returned from PublicKeyCredential.response. Interfaces based on AuthenticatorResponse Below is a list of interfaces based on the AuthenticatorResponse interface. AuthenticatorAssertionResponse AuthenticatorAttestationResponse Properties AuthenticatorResponse.clientDataJSON A JSON string in an ArrayBuffer, representing the client data that was passed to CredentialsContainer.create() or CredentialsContainer.get(). Methods None. ...
... Recommendation Initial definition. ...
Ajax navigation example - Web APIs
", 305: "Use Proxy", 306: "Reserved", 307: "Temporary Redirect", 308: "Permanent Redirect", 400: "Bad Request", 401: "Unauthorized", 402: "Payment Required", 403: "Forbidden", 404: "Not Found", 405: "Method Not Allowed", 406: "Not Acceptable", 407: "Proxy Authentication Required", 408: "Request Timeout", 409: "Conflict", 410: "Gone", 411: "Length Required", 412: "Precondition Failed", 413: "Request Entity Too Large", 414: "Request-URI Too Long", 415: "Unsupported Media Type", 416: "Requested Range Not Satisfiable", 417: "Expectation Failed", ...
...: "Not Implemented", 502: "Bad Gateway", 503: "Service Unavailable", 504: "Gateway Timeout", 505: "HTTP Version Not Supported", 506: "Variant Also Negotiates (Experimental)", 507: "Insufficient Storage", 508: "Loop Detected", 509: "Unassigned", 510: "Not Extended", 511: "Network Authentication Required" }; var oReq, bIsLoading = false, bUpdateURL = false; oLoadingBox.id = "ajax-loader"; oCover.onclick = abortReq; oLoadingImg.src = "data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYD...
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() - Web APIs
p-level contexts and will not be available in an <iframe> for example. Syntax PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() Parameters None. Return value A Promise which resolves to a Boolean indicating whether or a not a user-verifying platform authenticator is available. As of today (March 2019), this is basically indicating if Windows Hello may be used with the Web Authentication API and that the user has accepted its use. Note: This is a static method which is directly called on the PublicKeyCredential interface and not on an instance. Note: In earlier versions of the specification, the boolean also conveyed the consent of the user to disclose such an authenticator existed. Examples PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() .then(funct...
... Recommendation Initial definition. ...
PublicKeyCredential - Web APIs
Other interfaces that inherit from Credential are PasswordCredential and FederatedCredential. Note: This API is restricted to top-level contexts. ...
... Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.authenticatorSelection - Web APIs
ot removable. The latter describes a device which may be used across different platform (such as a USB or NFC device). requireResidentKeyOptional A boolean which indicated that the credential private key must be stored in the authenticator, the client or in a client device. The default value is false. userVerificationOptional A string qualifying how the user verification should be part of the authentication process. The values may be: "required": user verification is required, the operation will fail if the response does not have the UV flag (as part of the authenticatorData property of AuthenticatorAttestationResponse.attestationObject) "preferred": user verification is prefered, the operation will not fail if the response does not have the UV flag (as part of the authenticatorData property o...
... Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions - Web APIs
Properties PublicKeyCredentialCreationOptions.rp An object describing the relying party which requested the credential creation. PublicKeyCredentialCreationOptions.user An object describing the user account for which the credential is generated. PublicKeyCredentialCreationOptions.challenge A BufferSource, emitted by the relying party's server and used as a cryptographic challenge. This value will be signed by the authenticator and the signature will be sent back as part of AuthenticatorAttestationResponse.attestationObject. ...
... Recommendation Initial definition. ...
PublicKeyCredentialRequestOptions.userVerification - Web APIs
userVerification is an optional property of the PublicKeyCredentialRequestOptions. This is a string which indicates how the user verification should be part of the authentication process. Note: An analogous option exists for the creation operation (navigators.credentials.create()), see the userVerification property of PublicKeyCredentialCreationOptions.authenticatorSelection. Syntax userVerification = publicKeyCredentialRequestOptions.userVerification Value A string qualifying how the user verification should be part of the authentication process. The values may be: "required": user verification is required, the operation will fail if the response does not have the UV flag (as part of AuthenticatorAssertionResponse.authenticatorData) "preferred": user verification is prefered, the operatio...
... Recommendation Initial definition. ...
RTCConfiguration - Web APIs
tion. Properties bundlePolicy Optional Specifies how to handle negotiation of candidates when the remote peer is not compatible with the SDP BUNDLE standard. This must be one of the values from the enum RTCBundlePolicy. If this value isn't included in the dictionary, "balanced" is assumed. certificates Optional An Array of objects of type RTCCertificate which are used by the connection for authentication. If this property isn't specified, a set of certificates is generated automatically for each RTCPeerConnection instance. Although only one certificate is used by a given connection, providing certificates for multiple algorithms may improve the odds of successfully connecting in some circumstances. See Using certificates below for additional information. This configuration option cannot be chang...
...ly. One obvious benefit to providing your own is identity key continuity--if you use the same certificate for subsequent calls, the remote peer can tell you're the same caller. This also avoids the cost of generating new keys. <<<--- add link to information about identity --->>> Example The configuration below establishes two ICE servers. The first one, stun:stun.services.mozilla.com, requires authentication, so the username and password are provided. The second server has two URLs: stun:stun.example.com and stun:stun-1.example.com. var configuration = { iceServers: [{ urls: "stun:stun.services.mozilla.com", username: "louis@mozilla.com", credential: "webrtcdemo" }, { urls: [...
RTCIceServer - Web APIs
nd of credential is to be used when connecting. This must be one of the values defined by the RTCIceCredentialType enum. The default is password. urls This required property is either a single DOMString or an array of DOMStrings, each specifying a URL which can be used to connect to the server. username Optional If the RTCIceServer is a TURN server, then this is the username to use during the authentication process. Avoid specifying an unnecessarily large number of URLs in the urls property; the startup time for your connection will go up substantially. Every server in the list will be contacted and tried out before one is selected to be used for negotiation. Older versions of the WebRTC specification included an url property instead of urls; this was changed in order to let you specify multiple...
...ld not be used. url This obsolete property is a string specifies a single ICE server's URL. Do not use this property; use urls instead. Because many older books and examples still use this, we include it to help developers update their code or make sense of older examples. Example The configuration below establishes two ICE servers. The first one, stun:stun.services.mozilla.com, requires authentication, so the username and password are provided. The second server has two URLs: stun:stun.example.com and stun:stun-1.example.com. var configuration = { iceServers: [{ urls: "stun:stun.services.mozilla.com", username: "louis@mozilla.com", credential: "webrtcdemo" }, { urls: [...
RTCIdentityErrorEvent.loginUrl - Web APIs
The read-only property RTCIdentityErrorEvent.loginUrl is a DOMString giving the URL where the user can complete the authentication. It can be null and is provided by the identity provider (idp). Firefox implements the interface of this property under the following name: RTCPeerConnectionIdentityErrorEvent. It is likely that it will correct this name when it will unprefix RTCPeerConnection, once spec and implementation will have been stabilized. ...
...ollowing name: RTCPeerConnectionIdentityErrorEvent. It is likely that it will correct this name when it will unprefix RTCPeerConnection, once spec and implementation will have been stabilized. ...
Signaling and video calling - Web APIs
hem to your ICE layer by calling RTCPeerConnection.addIceCandidate(). That's it. The contents of the SDP are irrelevant to you in essentially all cases. Avoid the temptation to try to make it more complicated than that until you really know what you're doing. That way lies madness. All your signaling server now needs to do is send the messages it's asked to. Your workflow may also demand login/authentication functionality, but such details will vary. Note: The onicecandidate Event and createAnswer() Promise are both async calls which are handled separately. Be sure that your signaling does not change order! For example addIceCandidate() with the server's ice candidates must be called after setting the answer with setRemoteDescription(). Signaling transaction flow The signaling process involves t...
...nd a firewall or using NAT. Note: You should always use STUN/TURN servers which you own, or which you have specific authorization to use. This example is using a known public STUN server but abusing these is bad form. Each object in iceServers contains at least a urls field providing URLs at which the specified server can be reached. It may also provide username and credential values to allow authentication to take place, if needed. After creating the RTCPeerConnection, we set up handlers for the events that matter to us. The first three of these event handlers are required; you have to handle them to do anything involving streamed media with WebRTC. The rest aren't strictly required but can be useful, and we'll explore them. There are a few other events available that we're not using in this exam...
Attestation and Assertion - Web APIs
Attestation When an authenticator registers a new key pair with a service, the authenticator signs the public key with an attestation certificate. The attestation certificate is built into the authenticator during manufacturing time and is specific to a device model. ...
... Attestation When an authenticator registers a new key pair with a service, the authenticator signs the public key with an attestation certificate. The attestation certificate is built into the authenticator during manufacturing time and is specific to a device model. ...
Cognitive accessibility - Accessibility
WCAG Guidelines WCAG, Web Content Accessibility Guidelines, includes several guidelines to improve cognitive accessibility. These guidelines are published by the Web Accessibility Initiative (WAI) of the World Wide Web Consortium (W3C), the main in...
...ines. WCAG are guided by four principles: websites must be Perceivable, Operable, Understandable, and Robust. To this end, they define 17 specific guidelines, of which six are especially relevant for cognitive accessibility. All of the following guidelines help more than just people with cognitive disabilities. For example, being able to extend the expiration time on an application requiring an authentication code sent to a mobile device via text message helps with the following scenarios: People with attention or anxiety disorders. People who have a poor short-term memory, or who are multitasking. People who are less technologically literate. People who have poor wireless reception. People who have motor control issues. Adaptability Guideline 1.3 states "content should be adaptable." Create...
Cross-Origin Resource Sharing (CORS) - HTTP
Web › HTTP › CORS
fects on server data (in particular, HTTP methods other than GET, or POST with certain MIME types), the specification mandates that browsers "preflight" the request, soliciting supported methods from the server with the HTTP OPTIONS request method, and then, upon "approval" from the server, sending the actual request. Servers can also inform clients whether "credentials" (such as Cookies and HTTP Authentication) should be sent with requests. CORS failures result in errors, but for security reasons, specifics about the error are not available to JavaScript. All the code knows is that an error occurred. The only way to determine what specifically went wrong is to look at the browser's console for details. Subsequent sections discuss scenarios, as well as provide a breakdown of the HTTP headers used. Ex...
...in the request, you won't be able to work around the limitation using the steps above. And you won't be able to work around it at all unless you have control over the server the request is being made to. Requests with credentials The most interesting capability exposed by both XMLHttpRequest or Fetch and CORS is the ability to make "credentialed" requests that are aware of HTTP cookies and HTTP Authentication information. By default, in cross-site XMLHttpRequest or Fetch invocations, browsers will not send credentials. A specific flag has to be set on the XMLHttpRequest object or the Request constructor when it is invoked. In this example, content originally loaded from http://foo.example makes a simple GET request to a resource on http://bar.other which sets Cookies. Content on foo.example might con...
Using HTTP cookies - HTTP
Web › HTTP › Cookies
e security issues in the Security section below. Cookies available to JavaScript can be stolen through XSS. Security Information should be stored in cookies with the understanding that all cookie values are visible to, and can be changed by, the end-user. Depending on the application, it may be desirable to use an opaque identifier which is looked-up by the server or to investigate alternative authentication/confidentiality mechanisms such as JSON Web Tokens. Ways to mitigate attacks involving cookies: Use the HttpOnly attribute to prevent access to cookie values via JavaScript. Cookies that are used for sensitive information (such as indicating authentication) should have a short lifetime, with the SameSite attribute set to Strict or Lax. (See SameSite cookies, above.) In browsers that support...
... Ways to mitigate attacks involving cookies: Use the HttpOnly attribute to prevent access to cookie values via JavaScript. Cookies that are used for sensitive information (such as indicating authentication) should have a short lifetime, with the SameSite attribute set to Strict or Lax. (See SameSite cookies, above.) In browsers that support SameSite, this has the effect of ensuring that the authentication cookie is not sent with cross-origin requests, so such a request is effectively unauthenticated to the application server. Tracking and privacy Third-party cookies A cookie is associated with a domain. If this domain is the same as the domain of the page you are on, the cookie is called a first-party cookie. If the domain is different, it is a third-party cookie. While the server hosting a we...
WWW-Authenticate - HTTP
The WWW-Authenticate header is sent along with a 401 Unauthorized response. Header type Response header Forbidden header name no Syntax WWW-Authenticate: <type> realm=<realm>[, charset="UTF-8"] Directives <type> Authentication type. A common type is "Basic". IANA maintains a list of Authentication schemes. realm=<realm> A description of the protected area. If no realm is specified, clients often display a formatted hostname instead. charset=<charset> Tells the client the server's prefered encoding scheme when submitting a username and password. ...
...ered encoding scheme when submitting a username and password. The only allowed value is the case insensitive string "UTF-8". This does not relate to the encoding of the realm string. Examples Typically, a server response contains a WWW-Authenticate header that looks like these: WWW-Authenticate: Basic WWW-Authenticate: Basic realm="Access to the staging site", charset="UTF-8" See also HTTP authentication for examples on how to configure Apache or nginx servers to password protect your site with HTTP basic authentication. Specifications Specification Title RFC 7235, section 4.1: WWW-Authenticate HTTP/1.1: Authentication RFC 7617 The 'Basic' HTTP Authentication Scheme ...
HTTP response status codes - HTTP
Web › HTTP › Status
s been disabled and cannot be used. For example, an API may forbid DELETE-ing a resource. The two mandatory methods, GET and HEAD, must never be disabled and should not return this error code. 406 Not Acceptable This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content that conforms to the criteria given by the user agent. 407 Proxy Authentication Required This is similar to 401 but authentication is needed to be done by a proxy. 408 Request Timeout This response is sent on an idle connection by some servers, even without any previous request by the client. It means that the server would like to shut down this unused connection. This response is used much more since some browsers, like Chrome, Firefox 27+, or IE9, use HTTP pre-connectio...
...rocess. 507 Insufficient Storage (WebDAV) The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. 508 Loop Detected (WebDAV) The server detected an infinite loop while processing the request. 510 Not Extended Further extensions to the request are required for the server to fulfil it. 511 Network Authentication Required The 511 status code indicates that the client needs to authenticate to gain network access. ...
request - Archive of obsolete content
This option sets the mozAnon property in the underlying XMLHttpRequest object. Defaults to false. Request The Request object is used to make GET, HEAD, POST, PUT, or DELETE network requests. It is constructed with a URL to which the request is sent. Optionally the user may specify a collection of headers and content to send alongside the request and a callback which will be execu...
Index of archived content - Archive of obsolete content
NPAPI plug-in side API NPAnyCallbackStruct NPByteRange NPClass NPEmbedPrint NPEvent NPFullPrint NPIdentifier NPN NewStream NPNVariable NPN_CreateObject NPN_DestroyStream NPN_Enumerate NPN_Evaluate NPN_ForceRedraw NPN_GetAuthenticationInfo NPN_GetIntIdentifier NPN_GetProperty NPN_GetStringIdentifier NPN_GetStringIdentifiers NPN_GetURL NPN_GetURLNotify NPN_GetValue NPN_GetValueForURL NPN_HasMethod NPN_HasProperty NPN_IdentifierIsString NPN_IntFromIdentifier NPN_InvalidateRect...
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
riables or on an organisation ldap directory. Situation INT-Evry manages about 3000 users (mostly students) who share computers in labs and "self service" computer rooms. Hence a single computer might connect many different users all day long. Computers are dual-boot (Windows 7 and Linux Fedora 19 by 2013). All users have a personal account on a Windows server (AD) and an LDAP account for Linux authentication. Objective The objective is to provide users with a mailer agent, a web browser, and a news reader which are automatically configured (preferences) at startup to the current user connected on the computer. Choosing Mozilla products allow us to use the same apps while running either Windows or Linux systems (I suspect MAC OSX would be fine too). Instead of configuring end user individual prefer...
Browser-side plug-in API - Archive of obsolete content
e implemented by the browser and called by the plug-in. For an overview of how these two sides of the plug-in API interact, see the How Plug-ins Work and Overview of Plug-in Structure sections in the introduction. Warning: You must only call these from the main thread; calling them from other threads is not supported and may have unpredictable results. ...
NPN_GetValueForURL - Archive of obsolete content
er. The length of the returned value buffer. ...
NPN_SetValueForURL - Archive of obsolete content
internal NULL bytes and may not be NULL-terminated. ...
NPAPI plugin reference - Archive of obsolete content
y the plug-in and consumed by the browser. NPN_CreateObject Allocates a new NPObject. NPN_DestroyStream Closes and deletes a stream. NPN_Enumerate Gets the names of the properties and methods of the specified NPObject. NPN_Evaluate Evaluates a script in the scope of the specified NPObject. NPN_ForceRedraw Asks the plugin host to immediately (synchronously) repaint invalid areas. NPN_GetAuthenticationInfo The function is called by plugins to get HTTP authentication information from the browser. NPN_GetIntIdentifier Returns an opaque identifier for the integer that is passed in. NPN_GetProperty Gets the value of a property on the specified NPObject. NPN_GetStringIdentifier Returns an opaque identifier for the string that is passed in. NPN_GetStringIdentifiers Returns an array of opaque...
Digital Signatures - Archive of obsolete content
Encryption and decryption address the problem of eavesdropping, one of the three Internet security issues mentioned at the beginning of this document. But encryption and decryption, by themselves, do not address another problem: tampering. This section describes how public-key cryptography addresses the problem of tampering. Tamper detection and related authentication techniques rely on a mathematical function called a one-way hash (also called a message digest). A one-way hash is a number of fixed length with the following characteristics: The value of the hash is unique for the hashed data. Any change in the data, even deleting or altering a single character, results in a different value. The content of the hashed data cannot, for all practical purposes, be deduced from the hash-which is...
Security - Archive of obsolete content
...
Using SSH to connect to CVS - Archive of obsolete content
te, but the instructions have been re-written specifically for Mozilla. Download, build, and install corkscrew by following the instructions in the INSTALL file in the corkscrew source distribution. Corkscrew uses the standard "./configure; make install" technique common to many open source projects. Make sure you have a ~/.ssh/config file that has at least the following directives PreferredAuthentications hostbased,publickey,password Host cvs.mozilla.org ProxyCommand corkscrew <i>proxyserver.foo.com</i> <i>port</i> %h %p Replaceproxyserver.foo.com with the hostname of your proxy server, andport with the numeric TCP port on which the http tunnel is running. The usual cvs commands should now work. Avoiding passphrase requests You can avoid repeated passphrase requests by using ssh-agent. If ...
Cryptographic hash function - MDN Web Docs Glossary: Definitions of Web-related terms
A cryptographic hash function, also sometimes called a digest function, is a cryptographic primitive transforming a message of arbitrary size into a message of fixed size, called a digest. Cryptographic hash functions are used for authentication, digital signatures, and message authentication codes. To be used for cryptography, a hash function must have these qualities: quick to compute (because they are generated frequently) not invertible (each digest could come from a very large number of messages, and only brute-force can generate a message that leads to a given digest) tamper-resistant (any change to a message leads to a different digest) collision-resistant (it should be impossible to find two different messages that produce the same digest) Cryptographic hash functions such as MD...
Cryptography - MDN Web Docs Glossary: Definitions of Web-related terms
Cryptography, or cryptology, is the science that studies how to encode and transmit messages securely. Cryptography designs and studies algorithms used to encode and decode messages in an insecure environment, and their applications. More than just data confidentiality, cryptography also tackles identification, authentication, non-repudiation, and data integrity. Therefore it also studies usage of cryptographic methods in context, cryptosystems. ...
HMAC - MDN Web Docs Glossary: Definitions of Web-related terms
HMAC is a protocol used for cryptographically authenticating messages. It can use any kind of cryptographic functions, and its strengh depends on the underlying function (SHA1 or MD5 for instance), and the chosen secret key. With such a combination, the HMAC verification algorithm is then known with a compound name such as HMAC-SHA1. HMAC is used to ensure both integrity and authentication. Learn more General knowledge HMAC on Wikipedia Technical reference RFC 2104 on IETF ...
RTP (Real-time Transport Protocol) and SRTP (Secure RTP) - MDN Web Docs Glossary: Definitions of Web-related terms
The Real-time Transport Protocol (RTP) is a network protocol which described how to transmit various media (audio, video) from one endpoint to another in a real-time fashion. RTP is suitable for video-streaming application, telephony over IP like Skype and conference technologies. The secure version of RTP, SRTP, is used by WebRTC, and uses encryption and authentication to minimize the risk of denial-of-service attacks and security breaches. RTP is rarely used alone; instead, it is used in conjunction with other protocols like RTSP and SDP. Learn more General knowledge Introduction to the Real-time Transport Protocol RTP on Wikipedia RFC 3550 (one of the documents that specify precisely how the protocol works) ...
SMTP - MDN Web Docs Glossary: Definitions of Web-related terms
SMTP (Simple Mail Transfer Protocol) is a protocol used to send a new email. Like POP3 and NNTP, it is a state machine-driven protocol. The protocol is relatively straightforward. Primary complications include supporting various authentication mechanisms (GSSAPI, CRAM-MD5, NTLM, MSN, AUTH LOGIN, AUTH PLAIN, etc.), handling error responses, and falling back when authentication mechanisms fail (e.g., the server claims to support a mechanism, but doesn't). ...
Hash - MDN Web Docs Glossary: Definitions of Web-related terms
The hash function takes a variable length message input and produces a fixed-length hash output. It is commonly in the form of a 128-bit "fingerprint" or "message digest". Hashes are very useful for cryptography -- they insure the integrity of transmitted data. This provides the basis for HMAC's, which provide message authentication. Learn more General knowledge hash function on Wikipedia ...
MDN Web Docs Glossary: Definitions of Web-related terms
Box Breadcrumb Brotli Browser Browsing context buffer C Cache Cacheable CalDAV Call stack Callback function Canonical order Canvas Card sorting CardDAV caret CDN Certificate authority Certified Challenge-response authentication Character Character encoding Character set Chrome CIA Cipher Cipher suite Ciphertext Class Client hints Closure CMS Code splitting Codec Compile Compile time Computer Programming Conditional Constant Constructor ...
What is accessibility? - Learn web development
Notes Designing with cognitive accessibility will lead to good design practices. They will benefit everyone. Many people with cognitive impairments also have physical disabilities. Websites must conform with the W3C's Web Content Accessibility G...
Introduction to the server side - Learn web development
particular domain. Again, while both client and server-side code use frameworks, the domains are very different, and hence so are the frameworks. Client-side web frameworks simplify layout and presentation tasks while server-side web frameworks provide a lot of "common" web server functionality that you might otherwise have to implement yourself (e.g. support for sessions, support for users and authentication, easy database access, templating libraries, etc.). Note: Client-side frameworks are often used to help speed up development of client-side code, but you can also choose to write all the code by hand; in fact, writing your code by hand can be quicker and more efficient if you only need a small, simple web site UI. In contrast, you would almost never consider writing the server-side component o...
Website security - Learn web development
om the browser. This includes, but is not limited to data in URL parameters of GET requests, POST requests, HTTP headers and cookies, and user-uploaded files. Always check and sanitize all incoming data. Always assume the worst. A number of other concrete steps you can take are: Use more effective password management. Encourage strong passwords that are changed regularly. Consider two-factor authentication for your site, so that in addition to a password the user must enter another authentication code (usually one that is delivered via some physical hardware that only the user will have, such as a code in an SMS sent to their phone). Configure your web server to use HTTPS and HTTP Strict Transport Security (HSTS). HTTPS encrypts data sent between your client and server. This ensures that login cre...
Implementing feature detection - Learn web development
le file. Attach the Modernizr library to the HTML using a <script> element, as we have done in previous demos. Put it above the existing <script> element, which is attaching the Google Maps API to the page. Next, fill in the YOUR-API-KEY placeholder text in the second <script> element (as it is now) with a valid Google Maps API key. To get a key, sign in to a Google account, go to the Get a Key/Authentication page, then click the blue Get a Key button and follow the instructions. Finally, add another <script> element at the bottom of the HTML body (just before the </body> tag), and put the following script inside the tags: if (Modernizr.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { let latlng = new google.maps.LatLng(position.coords.latitude,position.coords.lo...
Deploying our app - Learn web development
Now we're ready to push our code to GitHub; run the following command now: git push github master At this point you'll be prompted to enter a username and password before Git will allow the push to be sent. This is because we used the HTTPS option rather than the SSH option, as seen in the screenshot earlier. For this you need your Github username and then -- if you do not have two-factor authentication (2FA) turned on -- your GitHub password. We would always encourage you to use 2FA if possible, but bear in mind that if you do, you'll also need to use a "personal access token". Github help pages has an excellent and simple walkthrough covering how to get one. Note: If you are interested in using the SSH option, thereby avoiding the need to enter your username and password every time you pu...
Introducing a complete toolchain - Learn web development
change in real time), which lets us deploy multiple times a day and freely hosts static sites of all kinds. Netlify is what provides the "home on the web" mentioned above -- free hosting for us to deploy our test app to. Once you've signed up for GitHub (click the Sign Up link on the homepage if you don't already have an account, and follow the instructions), you can use your GitHub account for authentication on Netlify (click Sign Up, then choose GitHub from the "Sign up with one of the following" list), so technically you only need to create one new account. Later on you'll need to connect your Netlify account to your GitHub repository to deploy this project; we'll see how to do that in the next chapter. Three stages of tools As we talked about in Chapter 1, the toolchain will be structured into ...
Blocked: All storage access requests
ing all storage access requests. What went wrong? A request to access cookies or storage was blocked because the browser is blocking all storage access. The permission can be changed or removed by: Going to Preferences > Content Blocking In the Custom Content Blocking section, selecting a value other than All Cookies for the Cookies item If the resource that is being blocked doesn't need authentication, you can fix the warning message by adding a crossorigin="anonymous" attribute to your element. ...
Blocked: All third-party storage access requests
es or storage was blocked because it came from a third-party (a different origin) and content blocking is enabled. The permission can be changed or removed by: Going to Preferences > Content Blocking and either adding an exception with the Manage Exceptions... button choosing the Custom Content Blocking and unchecking the Cookies checkbox If the resource that is being blocked doesn't need authentication, you can fix the warning message by adding a crossorigin="anonymous" attribute to the relevant element. ...
Blocked: Storage access requests from trackers
or storage was blocked because the browser identified it as coming from a tracker and content blocking is enabled. The permission can be changed or removed by: Going to Preferences > Content Blocking and either adding an exception with the Manage Exceptions... button choosing the Custom Content Blocking and unchecking the Tracker checkbox If the blocked resource doesn't need authentication, you can fix the warning message by adding a crossorigin="anonymous" attribute to the relevant element. ...
mozbrowserusernameandpasswordrequired
cancellable or not. details Read only Object A custom object. details The details property returns an anonymous JavaScript object with the following members: host A DOMString representing the host requesting the HTTP authentification. realm A DOMString representing the value of the realm HTTP header. isProxy A Boolean indicating whether the server dealing with the authentication is a proxy server (true) or not (false). authenticate() A function that is called to enable the authentication to go ahead. It needs to take two parameters -- the username and password to authenticate. cancel() A function that is called to cancel the authentication. Example var browser = document.querySelector("iframe[mozbrowser]"); browser.addEventListener("mozbrowserusernameandpasswordr...
Embedding Tips
document / data to a web or ftp site? Again, use the webbrowser persist object, but specify a remote location as the target URI. Your web progress listener must also implement nsIAuthPrompt if you want to be able to upload to a password protected location (e.g. an ftp site). The nsIAuthPrompt interface allows the networking layer to pose a user / password prompt to obtain the values needed for authentication. Your own implementation should pose this dialog, or fill in the values that are needed for the upload to succeed. How do I know when saving is done, monitor progress etc.? Register your ownnsIWebProgressListener object to listen for progress and state notifications. Here is a simple example which demonstrates the principle. The SimplePersist() function takes a string URL and a string file pat...
Mozilla Web Services Security Model
n removed, so trying to match a specific page will cause the entire match to fail. (Is this correct?) web-scripts-access.xml Examples These examples are untested! Somebody should test them to make sure they do what is claimed. Allow all services on a site to be accessed from any Web page Note that this is only a sensible thing to do if nothing on the site serves content based on cookies, HTTP authentication, IP address / domain origin, or any other method of authentication. <webScriptAccess xmlns="http://www.mozilla.org/2002/soap/security"/> Allow access to SOAP services within a services directory To allow access to services only within a certain directory (i.e., the directory where the safe, public, non-authenticated services are), you need one web-scripts-access.xml in the root directory of ...
Firefox Sync
into the desktop versions of Firefox, as well as Firefox for Android and Firefox for iOS. Firefox Sync synchronizes state and configuration data used by the browser, such as bookmarks, history, preferences, bookmarks, and so forth among all your devices. The exact types of information synced is user-configurable in the browser's preferences or options page. It uses Firefox Accounts for account, authentication and key management. All data is encrypted and decrypted on each device; no Sync data is ever transmitted to a server without being encrypted. Mozilla does not hold any keys to your Sync data. Your data can only be decrypted by someone who is able to log in to your Firefox Account (ie, that knows your Firefox Accounts password and has access to your email for the verification required during the i...
Cryptography functions
11_NeedUserInit MXR 3.2 and later PK11_ParamFromIV MXR 3.2 and later PK11_ParamFromAlgid MXR 3.2 and later PK11_ParamToAlgid MXR 3.2 and later PK11_PBEKeyGen MXR 3.2 and later PK11_PrivDecryptPKCS1 MXR 3.9.3 and later PK11_ProtectedAuthenticationPath MXR 3.4 and later PK11_PubDecryptRaw MXR 3.2 and later PK11_PubDerive MXR 3.2 and later PK11_PubDeriveWithKDF MXR 3.9 and later PK11_PubEncryptPKCS1 MXR 3.9.3 and later PK11_PubEncryptRaw MXR 3.2 and later PK11_PubUnwrapSymKey ...
JSS FAQ
Mozilla › Projects › NSS › JSS › JSS FAQ
uthenticating certificates. SSL_BadCertHook sets a callback that is called when NSS's routine fails to authenticate the certificate. SSL_GetClientAuthDataHook sets a callback to return the local certificate for SSL client auth. JSS's two callbacks are: SSLCertificateApprovalCallback is a combination of SSL_AuthCertificateHook and SSL_BadCertHook. It runs NSS's cert authentication check, then calls the callback regardless of whether the cert passed or failed. The callback is told whether the cert passed, and then can do anything extra that it wants to do before making a final decision. SSLClientCertificateSelectionCallback is analogous to SSL_GetClientAuthDataHook. Can I have multiple JSS instances reading separate db's? No, you can only have one ...
NSS_3.11.10_release_notes.html
8: Lock from ssl_InitSymWrapKeysLock not freed on selfserv shutdown. Bug 397486: Session cache locks not freed on strsclnt shutdown. ...
NSS 3.15.1 release notes
Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_15_1_RTM/src/ New in NSS 3.15.1 New Functionality TLS 1.2: TLS 1.2 (RFC 5246) is supported. HMAC-SHA256 cipher suites (RFC 5246 and RFC 5289) are supported, allowing TLS to be used without MD5 and SHA-1. Note the following limitations. The hash function used in the signature for TLS 1.2 client authentication must be the hash function of the TLS 1.2 PRF, which is always SHA-256 in NSS 3.15.1. AES GCM cipher suites are not yet supported. New Functions None. New Types in sslprot.h SSL_LIBRARY_VERSION_TLS_1_2 - The protocol version of TLS 1.2 on the wire, value 0x0303. TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC...
NSS 3.15.4 release notes
-1740) When false start is enabled, libssl will sometimes return unencrypted, unauthenticated data from PR_Recv New in NSS 3.15.4 New Functionality Implemented OCSP querying using the HTTP GET method, which is the new default, and will fall back to the HTTP POST method. Implemented OCSP server functionality for testing purposes (httpserv utility). Support SHA-1 signatures with TLS 1.2 client authentication. Added the --empty-password command-line option to certutil, to be used with -N: use an empty password when creating a new database. Added the -w command-line option to pp: don't wrap long output lines. New Functions CERT_ForcePostMethodForOCSP CERT_GetSubjectNameDigest CERT_GetSubjectPublicKeyDigest SSL_PeerCertificateChain SSL_RecommendedCanFalseStart SSL_SetCanFalseStartCallback New...
NSS 3.23 release notes
An attacker could create a specially-crafted certificate which, when parsed by NSS, would cause a cra...
NSS 3.24 release notes
ions should instead use the new SSL_ConfigServerCert function.) SSL_SetStapledOCSPResponses SSL_SetSignedCertTimestamps SSL_ConfigSecureServer SSL_ConfigSecureServerWithCertChain Deprecate the NSS_FindCertKEAType function, as it reports a misleading value for certificates that might be used for signing rather than key exchange. Update SSLAuthType to define a larger number of authentication key types. Deprecate the member attribute authAlgorithm of type SSLCipherSuiteInfo. Instead, applications should use the newly added attribute authType. Rename ssl_auth_rsa to ssl_auth_rsa_decrypt. Add a shared library (libfreeblpriv3) on Linux platforms that define FREEBL_LOWHASH. Remove most code related to SSL v2, including the ability to actively send a SSLv2-compatible client hello. Howe...
NSS 3.25.1 release notes
nality is introduced in this release. This is a patch release to address a TLS compatibility issue that some client applications experienced with NSS 3.25. Notable Changes in NSS 3.25.1 MD5 signature algorithms sent by the server in CertificateRequest messages are now properly ignored. Previously, with rare server configurations, an MD5 signature algorithm might have been selected for client authentication and caused the client to abort the connection soon after. Bugs fixed in NSS 3.25.1 The following bug has been fixed in NSS 3.25.1: Ignore MD5 signature algorithms in certificate requests Compatibility NSS 3.25.1 shared libraries are backwards compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.25.1 shared libraries w...
NSS 3.25 release notes
rg/security/nss/releases/NSS_3_25_RTM/src/ New in NSS 3.25 New Functionality Implemented DHE key agreement for TLS 1.3. Added support for ChaCha with TLS 1.3. Added support for TLS 1.2 ciphersuites that use SHA384 as the PRF. Removed the limitation that allowed NSS to only support certificate_verify messages that used the same signature hash algorithm as the PRF when using TLS 1.2 client authentication. Several functions have been added to the public API of the NSS Cryptoki Framework. New Functions in nssckfw.h NSSCKFWSlot_GetSlotID NSSCKFWSession_GetFWSlot NSSCKFWInstance_DestroySessionHandle NSSCKFWInstance_FindSessionHandle Notable Changes in NSS 3.25 An SSL socket can no longer be configured to allow both TLS 1.3 and SSL v3. Regression fix: NSS no longer rep...
NSS 3.26.2 release notes
lity is introduced in this release. This is a patch release to address a TLS compatibility issue that some client applications experienced with NSS 3.26.1. Notable Changes in NSS 3.26.2 MD5 signature algorithms sent by the server in CertificateRequest messages are now properly ignored. Previously, with rare server configurations, an MD5 signature algorithm might have been selected for client authentication and caused the client to abort the connection soon after. Bugs fixed in NSS 3.26.2 The following bug has been fixed in NSS 3.26.2: Ignore MD5 signature algorithms in certificate requests Compatibility NSS 3.26.2 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.26.2 shared libraries wi...
NSS 3.27 release notes
9:32 CN = Juur-SK, O = AS Sertifitseerimiskeskus SHA256 Fingerprint: EC:C3:E9:C3:40:75:03:BE:E0:91:AA:95:2F:41:34:8F:F8:8B:AA:86:3B:22:64:BE:FA:C8:07:90:15:74:E9:39 CN = EBG Elektronik Sertifika Hizmet Saglayicisi SHA-256 Fingerprint: 35:AE:5B:DD:D8:F7:AE:63:5C:FF:BA:56:82:A8:F0:0B:95:F4:84:62:C7:10:8E:E9:A0:E5:29:2B:07:4A:AF:B2 CN = S-TRUST Authentication and Encryption Root CA 2005:PN SHA-256 Fingerprint: 37:D8:DC:8A:F7:86:78:45:DA:33:44:A6:B1:BA:DE:44:8D:8A:80:E4:7B:55:79:F9:6B:F6:31:76:8F:9F:30:F6 O = VeriSign, Inc., OU = Class 1 Public Primary Certification Authority SHA-256 Fingerprint: 51:84:7C:8C:BD:2E:9A:72:C9:1E:29:2D:2A:E2:47:D7:DE:1E:3F:D2:70:54:7A:20:EF:7D:61:0F:38:B8:84:2C O = VeriSign, Inc.
NSS 3.33 release notes
re accepted without failure. However, TLS compression will remain disabled. This version of NSS uses a formally verified implementation of Curve25519 on 64-bit systems. The compile time flag DISABLE_ECC has been removed. When NSS is compiled without NSS_FORCE_FIPS=1 startup checks are no longer performed. Fixes CVE-2017-7805, a potential use-after-free in TLS 1.2 server, when verifying client authentication. Various minor improvements and correctness fixes. New in NSS 3.33 New Functionality When listing an NSS database, using certutil -L, and the database hasn't yet been initialized with any non-empty or empty password, the text "Database needs user init" will be included in the listing. When using certutil to set an inacceptable password in FIPS mode, a correct explanation of acceptable pas...
NSS 3.36.4 release notes
NSS 3.36.4 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_36_4_RTM/src/ New in NSS 3.36.4 New Functionality No new functionality is introduced in this release. This is a patch release to fix regression bugs. Bugs fixed in NSS 3.36.4 Bug 1461731 - Fix crash on macOS related to authentication tokens, e.g. PK11or WebAuthn. Compatibility NSS 3.36.4 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.36.4 shared libraries without recompiling or relinking. Furthermore, applications that restrict their use of NSS APIs to the functions listed in NSS Public Functions will remain compa...
NSS 3.37.3 release notes
or secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_37_3_RTM/src/ New in NSS 3.37.3 New Functionality No new functionality is introduced in this release. This is a patch release to fix regression bugs. Bugs fixed in NSS 3.37.3 Bug 1459739 - Fix build on armv6/armv7 and other platforms. Bug 1461731 - Fix crash on macOS related to authentication tokens, e.g. PK11or WebAuthn. Compatibility NSS 3.37.3 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.37.3 shared libraries without recompiling or relinking. Furthermore, applications that restrict their use of NSS APIs to the functions listed in NSS Public Functions will remain compa...
NSS 3.44 release notes
sh with Netscape Certificate Sequences 1533616 - sdb_GetAttributeValueNoLock should make at most one sql query, rather than one for each attribute 1531236 - Provide accessor for CERTCertificate.derCert 1536734 - lib/freebl/crypto_primitives.c assumes a big endian machine 1532384 - In NSS test certificates, use @example.com (not @bogus.com) 1538479 - Post-Handshake messages after async server authentication break when using record layer separation 1521578 - x25519 support in pk11pars.c 1540205 - freebl build fails with -DNSS_DISABLE_CHACHAPOLY 1532312 - post-handshake auth doesn't interoperate with OpenSSL 1542741 - certutil -F crashes with segmentation fault 1546925 - Allow preceding text in try comment 1534468 - Expose ChaCha20 primitive 1418944 - Quote CC/CXX variables passed to nspr 1543...
NSS 3.46 release notes
n of integers of different signs: 'int' and 'unsigned long' Bug 1564714 - Print certutil commands during setup Bug 1565013 - HACL image builder times out while fetching gpg key Bug 1563786 - Update hacl-star docker image to pull specific commit Bug 1559012 - Improve GCM perfomance using PMULL2 Bug 1528666 - Correct resumption validation checks Bug 1568803 - More tests for client certificate authentication Bug 1564284 - Support profile mobility across Windows and Linux Bug 1573942 - Gtest for pkcs11.txt with different breaking line formats Bug 1575968 - Add strsclnt option to enforce the use of either IPv4 or IPv6 Bug 1549847 - Fix NSS builds on iOS Bug 1485533 - Enable NSS_SSL_TESTS on taskcluster This Bugzilla query returns all the bugs fixed in NSS 3.46: https://bugzilla.mozilla.org/bugl...
PKCS11 FAQ
Mozilla › Projects › NSS › PKCS11 › FAQ
ple, one does all the hashing/symmetric operations, while another does only asymmetric RSA operations. Can this kind of division lead to problems? The only issue is dealing with keys. For example, if the RSA slot unwraps a key, NSS needs to move that key to a slot that can do the symmetric operations. NSS itself uses two tokens internally--one that provides generic cryptographic services without authentication, and one that provides operations based on the keys stored in the user's database and do need authentication. NSS does this to avoid having to prompt for a password when performing an RSA verify operation, DES encryption, and so on. Therefore, NSS can move keys around when necessary and possible. When operating in FIPS mode, moving keys is significantly harder. In this case NSS uses a single toke...
PKCS #11 Module Specs
rootFlags - comma separated of flags describing any root certs that may be stored (case-insensitive). Valid flags are: hasRootCerts - claims that this token has the default root certs and trust values. At init time NSS, will try to look for a default root cert device if one has not already been loaded. hasRootTrust - parsed but ignored. timeout - time in minutes before the current authentication should be rechecked. This value is only used if askpwd is set to 'timeout'. (default = 0). askpwd - case-insensitive flag describing how password prompts should be manages. Only one of the following can be specified. every - prompt whenever the a private key on this token needs to be access (this is on the entire token, not on a key-by-key basis. timeout- whenever the last explicit lo...
Python binding for NSS
nclude PR error text if available. ...
FC_SetOperationState
Name FC_SetOperationState - restore the cryptographic operation state of a session. Syntax CK_RV FC_SetOperationState( CK_SESSION_HANDLE hSession, CK_BYTE_PTR pOperationState, CK_ULONG ulOperationStateLen, CK_OBJECT_HANDLE hEncryptionKey, CK_OBJECT_HANDLE hAuthenticationKey ); Parameters hSession [in] handle of the open session. pOperationState [in] pointer to a byte array containing the operation state. ulOperationStateLen [in] contains the total length (in bytes) of the operation state. hEncryptionKey [in] handle of the encryption or decryption key to be used in in a stored session or zero if no key is needed. hAuthenticationKey [in] handle of the authentication key to be used in the stored session or zero if none is needed. Description FC_SetOperationState restores the ...
NSS functions
11_NeedUserInit MXR 3.2 and later PK11_ParamFromIV MXR 3.2 and later PK11_ParamFromAlgid MXR 3.2 and later PK11_ParamToAlgid MXR 3.2 and later PK11_PBEKeyGen MXR 3.2 and later PK11_PrivDecryptPKCS1 MXR 3.9.3 and later PK11_ProtectedAuthenticationPath MXR 3.4 and later PK11_PubDecryptRaw MXR 3.2 and later PK11_PubDerive MXR 3.2 and later PK11_PubDeriveWithKDF MXR 3.9 and later PK11_PubEncryptPKCS1 MXR 3.9.3 and later PK11_PubEncryptRaw MXR 3.2 and later PK11_PubUnwrapSymKey ...
NSS tools : certutil
For example: -t "TC,C,T" Use the -L op...
NSS Tools certutil-tasks
a file. Improve hardware token support. (bugfix) Some certificate extensions cause certutil to crash. (bugfix) Certificate entries require a serial number; one should be generated automatically if not provided. (bugfix) Null password is given to new key3.db; should prompt user for an initial password. (bugfix) Listing provate keys does not work: requires password authentication. (bugfix) Listing certificate extensions has typos and does not provide much information. ...
NSS Tools certutil
essed in this order: "SSL ,email ,object signing ". In each category position use zero or more of the following attribute codes: p prohibited (explicitly distrusted) P Trusted peer c Valid CA T Trusted CA to issue client certificates (implies c) C Trusted CA to issue server certificates (SSL only) (implies c) u Certificate can be used for authentication or signing w Send warning (use with other attributes to include a warning when the certificate is used in that context) The attribute codes for the categories are separated by commas, and the entire set of attributes enclosed by quotation marks. For example: -t "TCu,Cu,Tuw" Use the -L option to see a list of the current certificates and trust attributes in a certificate dat...
certutil
For example: -t "TCu,Cu,Tuw" Use the -L option to see a list...
The Necko HTTP module
Notes Class Overview This document provides an overview of the classes used to implement the http module. It's meant as a guide to developers wishing to extend the HTTP implementation. Transaction Model This document describes the lifetime of a HTTP transaction, the threads involved, and the relevant objects. Pipelining FAQ This document gives an overview of HTTP/1.1 pipelining by answering some frequently asked questions. Caching FAQ This document gives an overview of how HTTP caching is implemented in necko. ...
TPS Password Lists
ssword: "zippity-do-dah" } }, { hostname: "http://www.example.com", realm: "login", username: "joe", password: "secretlogin" } ]; Each object has the following properties: hostname: the hostname for the password. Required. submitURL: the submit URL for the password. Optional. Used for passwords in form fields. realm: the http realm for the password. Optional. Used for http authentication passwords. username: required. password: required. usernameField: the username field for a form password. Optional. passwordField: the password field for a form password. Optional. changes: an object containing any of the above properties, which are applied during a modify action. Optional. Password lists and phase actions Following are the functions that can be used in phase actions related to ...
TPS Tests
"fx_account": { "username": "foobar@restmail.net", "password": "hunter2" }, "preferences": { // use "https://stable.dev.lcip.org" for dev instead of stage "identity.fxaccounts.autoconfig.uri": "https://accounts.stage.mozaws.net" // possibly more preferences... }, // ... } Note that in this example, the foobar@restmail.net account must be registered on stage, otherwise authentication will fail (and the whole test will fail as well. You can sign up for an FxA account on stage or dev by creating an FxA account after adding the identity.fxaccounts.autoconfig.uri preference (with the appropriate value) to about:config. Additionally, note that the config file must parse as valid JSON, and so you can't have comments in it (sorry, I know this is annoying). One alternative is to put...
nsIAuthPrompt
Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) This interface is implemented by @mozilla.org/login-manager/prompter;1. ...
nsIAuthPromptCallback
must call exactly one method if nsIAuthPrompt2.asyncPromptAuth() returns successfully. They must not call any method on this interface before nsIAuthPrompt2.asyncPromptAuth() returns. Method overview void onAuthAvailable(in nsISupports aContext, in nsIAuthInformation aAuthInfo); void onAuthCancelled(in nsISupports aContext, in boolean userCancel); Methods onAuthAvailable() Authentication information is available. Note: Any exceptions thrown from this method should be ignored. void onAuthAvailable( in nsISupports aContext, in nsIAuthInformation aAuthInfo ); Parameters aContext The context as passed to nsIAuthPrompt2.asyncPromptAuth(). aAuthInfo Authentication information. Must be the same object that was passed to nsIAuthPrompt2.asyncPromptAuth(). onAuthCanc...
nsIAuthPromptProvider
Scriptable This interface requests a prompt interface for the given prompt reason. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Method overview void getAuthPrompt(in PRUint32 aPromptReason, in nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result); Constants Constant Value Description PROMPT_NORMAL 0 Normal (non-proxy) prompt request. PROMPT_PROXY 1 Proxy authentication request. Methods getAuthPrompt() This method requests a prompt interface for the given prompt reason. void getAuthPrompt( in PRUint32 aPromptReason, in nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result ); Parameters aPromptReason The reason for the authentication prompt, one of the PROMPT_* constants. iid The desired interface, for example, NS_GET_IID(nsIAuthPrompt2). result A n...
nsILoginInfo
formSubmitURL AString The origin, not URL, a form-based login was submitted to. For logins obtained from HTML forms, this field is the action attribute from the form element, with the path removed (for example, "https://www.site.com"). Forms with no action attribute default to submitting to their origin URL, so that is stored here. This field is null for logins attained from protocol authentications and "" means to match against any form action. hostname AString The origin, not hostname, to which the login applies (for example, "https://www.site.com"). A port number (":123") may be appended. httpRealm AString The HTTP Realm for which the login was requested. When an HTTP server sends a 401 result, the WWW-Authenticate header includes a realm to identify the "p...
nsILoginManager
ardless of the setting of the signon.autofillForms preference. boolean fillForm( in nsIDOMHTMLFormElement aForm ); Parameters aForm The HTMLform to attempt to fill out. Return value true if the form was successfully filled out; otherwise false. findLogins() Searches for logins matching the specified criteria. Called when looking for logins that might be applicable to a given form or authentication request. void findLogins( out unsigned long count, in AString aHostname, in AString aActionURL, in AString aHttpRealm, [retval, array, size_is(count)] out nsILoginInfo logins ); Parameters count The number of elements in the returned array. JavaScript callers can simply use the array's length property and supply a dummy argument for this parameter. aHostname The hostname to res...
nsILoginManagerStorage
or which the login applies. To match logins for any realm, specify an empty string. To not match any realm, specify null. Return value The number of logins that match the specified criteria. findLogins() Implement this method to search the login store for logins matching the specified criteria. This method is called by the Login Manager when looking for saved logins that might apply to a form or authentication request. void findLogins( out unsigned long count, in AString aHostname, in AString aActionURL, in AString aHttpRealm, [retval, array, size_is(count)] out nsILoginInfo logins ); Parameters count Return in this parameter the number of matching logins found by the search. aHostname The hostname to which to restrict the search. For example: "http://www.site.com". Specify an empty string ...
nsIMsgIncomingServer
eMessageSize boolean localPath nsILocalFile localStoreType ACString the schema for the local mail store, such as "mailbox", "imap", or "news" used to construct URIs. Read only. loginAtStartUp boolean logonFallback boolean maxMessageSize long offlineSupportLevel long password ACString passwordPromptRequired boolean If the password for the server is available either via authentication in the current session or from password manager stored entries, return false. Otherwise, return true. If password is obtained from password manager, set the password member variable. Read only. performingBiff boolean port long prettyName AString pretty name - should be "userid on hostname" if the pref is not set. realHostName ACString real hostname of the server (if server name is cha...
nsIRequest
ded it has already been validated (at least once) since the start of this session. Constant Value Description LOAD_ANONYMOUS 1 << 14 When set, this flag indicates that no user-specific data should be added to the request when opened. This means that things like authorization tokens or cookie headers should not be added. Note: This will prevent proxy authentications from working, so use this flag with caution. Methods cancel() Cancels the current request. This will close any open input or output streams and terminate any async requests. Users should normally pass NS_BINDING_ABORTED, although other errors may also be passed. The error passed in will become the value of the status attribute. Implementations must not send any notifications (for e...
nsIURI
lt port (for example -1 implies port 80 for HTTP URIs). Exceptions thrown NS_ERROR_FAILURE If port is not applicable to the URI scheme (e.g. about:blank) prePath AUTF8String The prePath returns the string before the path (such as "scheme://user:password@host:port"). This is related to the Web Origin Concept of RFC6454. This is useful for authentication, managing sessions, or for checking the origin of an URI to prevent cross-site scripting attacks while using methods such as window.postMessage(). Note: Some characters may be escaped. Read only. ref AUTF8String Returns the reference portion (the part after the "#") of the URI. If there is not one, an empty string is returned. Note: Some characters may be escaped. ...
Mozilla
ing work to implement infallible memory allocators. These are memory allocation routines that never return null; that is, they always successfully return the requested block of memory. This is in contrast to a traditional, fallible memory allocator that can return null indicating that the request failed. Integrated Authentication This entails support for the the Simple and Protected GSS-API Negotiation Mechanism (SPNEGO) internet standard (RFC 2478) to negotiate either Kerberos, NTLM, or other authentication protocols supported by the operating system. Internationalized Domain Names (IDN) Support in Mozilla Browsers Netscape 7.1 is the first commercial browse...
PKCS #11 Netscape Trust Objects - Network Security Services
the certificate serial number. Required for non-trust anchor objects. CKA_CERT_SHA1_HASH Byte array SHA1 hash of the DER-encoding of the certificate. Required for trust anchor objects. CKA_CERT_MD5_HASH Byte array MD5 hash of the DER-encoding of the certificate. Required for trust anchor objects. CKA_TRUST_SERVER_AUTH CK_TRUST Level of trust for server authentication purpose. CKA_TRUST_CLIENT_AUTH CK_TRUST Level of trust for client authentication purpose. CKA_TRUST_CODE_SIGNING CK_TRUST Level of trust for code signing purpose. CKA_TRUST_EMAIL_PROTECTION CK_TRUST Level of trust for email protection purpose. CKA_TRUST_IPSEC_END_SYSTEM CK_TRUST Level of trust for IPSec end system purpose. ...
Browser Side Plug-in API - Plugins
ork and Overview of Plug-in Structure sections in the introduction. Warning: You must only call these from the main thread; calling them from other threads is not supported and may have unpredictable results. Netscape Plug-in Method Summary << PreviousNext >> NPN_DestroyStream Closes and deletes a stream. NPN_ForceRedraw Forces a paint message for a windowless plug-in. NPN_GetAuthenticationInfo This function is called by plug-ins to get HTTP authentication information from the browser. NPN_GetURL Asks the browser to create a stream for the specified URL. NPN_GetURLNotify Requests creation of a new stream with the contents of the specified URL; gets notification of the result. NPN_GetValue Allows the plug-in to query the browser for information. NPN_GetValueForURL Provides...
Gecko Plugin API Reference - Plugins
se two sides of the plug-in API interact, see the How Plug-ins Work and Overview of Plug-in Structure sections in the introduction. Warning: You must only call these from the main thread; calling them from other threads is not supported and may have unpredictable results. NPN_DestroyStream Closes and deletes a stream. NPN_ForceRedraw Forces a paint message for a windowless plug-in. NPN_GetAuthenticationInfo This function is called by plug-ins to get HTTP authentication information from the browser. NPN_GetURL Asks the browser to create a stream for the specified URL. NPN_GetURLNotify Requests creation of a new stream with the contents of the specified URL; gets notification of the result. NPN_GetValue Allows the plug-in to query the browser for information. NPN_GetValueForURL Provides i...
AesGcmParams - Web APIs
match the original data, the decryption will throw an exception. This gives you a way to authenticate associated data without having to encrypt it. The bit length of additionalData must be <= 264-1. The additionalData property is optional and may be omitted without compromising the security of the encryption operation. tagLength Optional A Number. This determines the size in bits of the authentication tag generated in the encryption operation and used for authentication in the corresponding decryption. According to the Web Crypto specification this must have one of the following values: 32, 64, 96, 104, 112, 120, or 128. The AES-GCM specification recommends that it should be 96, 104, 112, 120 or 128, although 32 or 64 bits may be acceptable in some applications: Appendix C of the specificati...
AuthenticatorAssertionResponse.signature - Web APIs
clientDataJSON). Examples var options = { challenge: new Uint8Array(26), // will be another value, provided by the relying party server timeout: 60000 }; navigator.credentials.get({ publickey: options }) .then(function (assertionPKCred) { var signature = assertionPKCred.response.signature; // Send response and client extensions to the server so that it can // go on with the authentication }).catch(function (err) { console.error(err); }); Specifications Specification Status Comment Web Authentication: An API for accessing Public Key Credentials Level 1The definition of 'signature' in that specification. Recommendation Initial definition. ...
AuthenticatorAttestationResponse.attestationObject - Web APIs
Recommendation Initial definition. ...
AuthenticatorAttestationResponse.getTransports() - Web APIs
Recommendation Initial definition. ...
AuthenticatorResponse.clientDataJSON - Web APIs
Recommendation Initial definition. ...
Credential Management API - Web APIs
of such a framework. PasswordCredential Provides information about a username/password pair. PublicKeyCredential Provides a credential for logging in using an un-phishable and data-breach resistant asymmetric key pair instead of a password. Specifications Specification Status Comment Credential Management Level 1 Working Draft Initial definition. Web Authentication: An API for accessing Public Key Credentials Level 1 Recommendation Initial definition. ...
CredentialsContainer.create() - Web APIs
describes the options for creating a WebAuthn credential. Returns A Promise that resolves with a Credential instance, such as PasswordCredential, FederatedCredential, or PublicKeyCredential. Specifications Specification Status Comment Credential Management Level 1The definition of 'get()' in that specification. Working Draft Initial definition. Web Authentication: An API for accessing Public Key Credentials Level 1 Recommendation Initial definition. ...
CredentialsContainer.get() - Web APIs
on. Returns A Promise that resolves with a Credential instance that matches the provided parameters. If a single Credential cannot be unambigiously obtained, the Promise will resolve to null. Specifications Specification Status Comment Credential Management Level 1The definition of 'get()' in that specification. Working Draft Initial definition. Web Authentication: An API for accessing Public Key Credentials Level 1 Recommendation Initial definition. ...
CredentialsContainer - Web APIs
eUserMediation(). See Browser compatibility for support details. CredentialsContainer.store()Secure context Stores a set of credentials for a user, inside a provided Credential instance and returns that instance in a Promise. Examples // TBD Specifications Specification Status Comment Credential Management Level 1 Working Draft Initial definition. Web Authentication: An API for accessing Public Key Credentials Level 1 Recommendation Initial definition. ...
Document.execCommand() - Web APIs
s the document background color. In styleWithCss mode, it affects the background color of the containing block instead. This requires a <color> value string to be passed in as a value argument. Note that Internet Explorer uses this to set the text background color. bold Toggles bold on/off for the selection or at the insertion point. Internet Explorer uses the <strong> tag instead of <b>. ClearAuthenticationCache Clears all authentication credentials from the cache. contentReadOnly Makes the content document either read-only or editable. This requires a boolean true/false as the value argument. (Not supported by Internet Explorer.) copy Copies the current selection to the clipboard. Conditions of having this behavior enabled vary from one browser to another, and have evolved over time. Check the...
PasswordCredential.iconURL - Web APIs
The iconURL read-only property of the PasswordCredential interface returns a USVString containing a URL pointing to an image for an icon. This image is intended for display in a credential chooser. The URL must be accessible without authentication. Syntax url =passwordCredential.iconURL Value A USVString containing a URL. Specifications Specification Status Comment Credential Management Level 1The definition of 'iconURL' in that specification. Working Draft Initial definition. ...
PasswordCredential - Web APIs
e context One of a FormData instance, a URLSearchParams instance, or null. The data in the objects will be added to the request body and sent to the remote endpoint with the credentials. PasswordCredential.iconURL Read only Secure context A USVString containing a URL pointing to an image for an icon. This image is intended for display in a credential chooser. The URL must be accessible without authentication. PasswordCredential.idName Secure context A USVString containing the name that will be used for the ID field when submitting the current object to a remote endpoint via fetch. This property defaults to 'username', but may be overridden to match whatever the backend service expects. PasswordCredential.name Read only Secure context A USVString containing a human-readable public name for displa...
PerformanceResourceTiming.connectEnd - Web APIs
Note: This feature is available in Web Workers. ...
PerformanceTiming.connectEnd - Web APIs
in miliseconds since the UNIX epoch, where the connection is opened network. If the transport layer reports an error and the connection establishment is started again, the last connection establisment end time is given. If a persistent connection is used, the value will be the same as PerformanceTiming.fetchStart. A connection is considered as opened when all secure connection handshake, or SOCKS authentication, is terminated. Syntax time = performanceTiming.connectEnd; Specifications Specification Status Comment Navigation TimingThe definition of 'PerformanceTiming.connectEnd' in that specification. Recommendation Initial definition. ...
PerformanceTiming - Web APIs
ormanceTiming.connectEnd Read only When the connection is opened network. If the transport layer reports an error and the connection establishment is started again, the last connection establishment end time is given. If a persistent connection is used, the value will be the same as PerformanceTiming.fetchStart. A connection is considered as opened when all secure connection handshake, or SOCKS authentication, is terminated. PerformanceTiming.secureConnectionStart Read only When the secure connection handshake starts. If no such connection is requested, it returns 0. PerformanceTiming.requestStart Read only When the browser sent the request to obtain the actual document, from the server or from a cache. If the transport layer fails after the start of the request and the connection is reope...
PublicKeyCredential.getClientExtensionResults() - Web APIs
Recommendation Initial definition. ...
PublicKeyCredential.id - Web APIs
Recommendation Specified in the context of PublicKeyCredential. Overrides the getter defined in Credential. Credential Management Level 1The definition of 'id' in that specification. Working Draft Initial definition. ...
PublicKeyCredential.rawId - Web APIs
Recommendation Initial definition. ...
PublicKeyCredential.response - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.attestation - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.challenge - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.excludeCredentials - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.pubKeyCredParams - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.rp - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.timeout - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialCreationOptions.user - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialRequestOptions.allowCredentials - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialRequestOptions.challenge - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialRequestOptions.rpId - Web APIs
Recommendation Initial definition. ...
PublicKeyCredentialRequestOptions.timeout - Web APIs
Recommendation Initial definition. ...
PushManager.subscribe() - Web APIs
userVisibleOnly: A boolean indicating that the returned push subscription will only be used for messages whose effect is made visible to the user. applicationServerKey: A Base64-encoded DOMString or ArrayBuffer containing an ECDSA P-256 public key that the push server will use to authenticate your application server. If specified, all messages from your application server must use the VAPID authentication scheme, and include a JWT signed with the corresponding private key. This key IS NOT the same ECDH key that you use to encrypt the data. For more information, see "Using VAPID with WebPush". Note: This parameter is required in some browsers like Chrome and Edge. Returns A Promise that resolves to a PushSubscription object. Example this.onpush = function(event) { console.log(event...
PushSubscription.getKey() - Web APIs
used in encrypting push message data. Syntax var key = subscription.getKey(name); Parameters name A DOMString representing the encryption method used to generate a client key. The value can be: p256dh: An Elliptic curve Diffie-Hellman public key on the P-256 curve (that is, the NIST secp256r1 elliptic curve). The resulting key is an uncompressed point in ANSI X9.62 format. auth: An authentication secret, as described in Message Encryption for Web Push. Returns An ArrayBuffer. Example reg.pushManager.getSubscription() .then(function(subscription) { // Enable any UI which subscribes / unsubscribes from // push messages. subBtn.disabled = false; if (!subscription) { console.log('Not yet subscribed to Push') // We aren't subscribed to push, so set UI // to all...
RTCConfiguration.iceServers - Web APIs
ready active by calling the the RTCPeerConnection method setConfiguration(), no immediate effect occurs. However, the new list of servers is used for any future renegotiation, such as while handling an ICE restart. Examples The configuration below opens a new peer connection, specifying two servers for the ICE agent to use for negotiation. The first one, stun:stun.services.mozilla.com, requires authentication, so the username and password are provided. The second server has two URLs: stun:stun.example.com and stun:stun-1.example.com. var configuration = { iceServers: [{ urls: "stun:stun.services.mozilla.com", username: "louis@mozilla.com", credential: "webrtcdemo" }, { urls: [...
RTCIceCredentialType - Web APIs
Values oauth The RTCIceServer requires the use of OAuth 2.0 to authenticate in order to use the ICE server described. This process is detailed in RFC 7635. This property was formerly called token. password The RTCIceServer requires a username and password to authenticate prior to using the described ICE server. Obsolete values The following values are no longer part of the WebRTC specification, but were in the past. token Authenticating with the ICE server requires the use of an OAuth 2.0 token as defined in RFC 7635. ...
RTCIceServers.urls - Web APIs
Web › API › RTCIceServer › urls
Let's look a few examples of varying complexity. A single ICE server This example creates a new RTCPeerConnection which will use a STUN server at stunserver.example.org to negotiate connections. myPeerConnection = new RTCPeerConnection({ iceServers: [ { urls: "stun:stunserver.example.org" } ] }); Notice that only the urls property is provided; the STUN server doesn't require authentication, so this is all that's needed. A single ICE server with authentication The second example creates a new RTCPeerConnection which will use a TURN server at turnserver.example.org to negotiate connections. Logging into the TURN server will use the username "webrtc" and the creative password "turnpassword". myPeerConnection = new RTCPeerConnection({ iceServers: [ { urls: "turn:turnserv...
RTCIdentityErrorEvent - Web APIs
pec and implementation will have been stabilized. Properties A RTCIdentityErrorEvent being an Event, this event also implements these properties. RTCIdentityErrorEvent.idp Read only Is a DOMString describing the domain name of the identity provider (idp) generating the error response. RTCIdentityErrorEvent.loginUrl Read only Is a DOMString giving the URL where the user can complete the authentication. It can be null and is provided by the identity provider (idp). RTCIdentityErrorEvent.protocol Read only Is a DOMString describing the Idp protocol in use. Methods A RTCIdentityErrorEvent being an Event, this event also implements these properties. There is no specific RTCIdentityErrorEvent method. Examples pc.onidpassertionerror = function( ev ) { alert("The i...
RTCPeerConnection() - Web APIs
ration dictionary bundlePolicy Optional Specifies how to handle negotiation of candidates when the remote peer is not compatible with the SDP BUNDLE standard. This must be one of the values from the enum RTCBundlePolicy. If this value isn't included in the dictionary, "balanced" is assumed. certificates Optional An Array of objects of type RTCCertificate which are used by the connection for authentication. If this property isn't specified, a set of certificates is generated automatically for each RTCPeerConnection instance. Although only one certificate is used by a given connection, providing certificates for multiple algorithms may improve the odds of successfully connecting in some circumstances. See Using certificates below for additional information. This configuration option cannot be chang...
RTCPeerConnection - Web APIs
as begun gathering candidates (gathering), or has completed (complete). Also available using the onicegatheringstatechange event handler property. isolationchange Sent to the RTCPeerConnection when the isolated property on one of the MediaStreamTrack objects associated with the connection changes value. A track is isolated if its content cannot be accessed by the owning document due to lack of authentication or if the track comes from a cross-origin source. Also available through the onisolationchange event handler property. negotiationneeded Sent to the RTCPeerConnection when negotiation or renegotiation of the ICE connection needs to be performed; this can happen both when first opening a connection as well as when it's neccessary to adapt to changing network conditions. The receiver should resp...
Storage Access API - Web APIs
ore functionality is similar: cross-origin resources embedded in a third-party context are not given access to the same cookies and site storage that they would have access to when loaded in a first-party context. These cookie blocking policies are known to break embedded cross-origin content that requires access to its first-party storage. As an example, federated logins often require access to authentication cookies stored in first-party storage, and will require the user to sign in on each site separately (or completely break) if those cookies are not available. In the case of breakage, site owners have often encouraged users to add their site as an exception or to disable the policy entirely. As a consequence, users who wish to continue to interact with embedded content are forced to greatly relax ...
SubtleCrypto.digest() - Web APIs
applications. SHA-256 This algorithm is specified in FIPS 180-4, section 6.2, and produces an output 256 bits long. SHA-384 This algorithm is specified in FIPS 180-4, section 6.5, and produces an output 384 bits long. SHA-512 This algorithm is specified in FIPS 180-4, section 6.4, and produces an output 512 bits long. Hint: If you are looking here for how to create an keyed-hash message authentication code (HMAC), you need to use the SubtleCrypto.sign() instead. Examples Basic example This example encodes a message, then calculates its SHA-256 digest and logs the digest length: const text = 'An obscure body in the S-K System, your majesty. The inhabitants refer to it as the planet Earth.'; async function digestMessage(message) { const encoder = new TextEncoder(); const data = encoder...
SubtleCrypto.encrypt() - Web APIs
they're all based on the same underlying cipher, AES (Advanced Encryption Standard). The difference between them is the mode. The Web Crypto API supports three different AES modes: CTR (Counter Mode) CBC (Cipher Block Chaining) GCM (Galois/Counter Mode) It's strongly recommended to use authenticated encryption, which includes checks that the ciphertext has not been modified by an attacker. Authentication helps protect against chosen-ciphertext attacks, in which an attacker can ask the system to decrypt arbitrary messages, and use the result to deduce information about the secret key. While it's possible to add authentication to CTR and CBC modes, they do not provide it by default and when implementing it manually one can easily make minor, but serious mistakes. GCM does provide built-in authentic...
SubtleCrypto.sign() - Web APIs
Web › API › SubtleCrypto › sign
in the same signature each time. An extra property, defining the salt length, is passed into the sign() and verify() functions when they are invoked. ECDSA ECDSA (Elliptic Curve Digital Signature Algorithm) is a variant of the Digital Signature Algorithm, specified in FIPS-186, that uses Elliptic Curve Cryptography (RFC 6090). HMAC The HMAC algorithm calculates and verifies hash-based message authentication codes according to the FIPS 198-1 standard. The digest algorithm to use is specified in the HmacKeyGenParams object that you pass into generateKey(), or the HmacImportParams object that you pass into importKey(). Examples Note: You can try the working examples out on GitHub. RSASSA-PKCS1-v1_5 This code fetches the contents of a text box, encodes it for signing, and signs it with a private...
SubtleCrypto - Web APIs
algorithm. SubtleCrypto.unwrapKey() Returns a Promise that fulfills with a CryptoKey corresponding to the wrapped key given in the parameter. Using SubtleCrypto We can split the functions implemented by this API into two groups: cryptography functions and key management functions. Cryptography functions These are the functions you can use to implement security features such as privacy and authentication in a system. The SubtleCrypto API provides the following cryptography functions: * sign() and verify(): create and verify digital signatures. * encrypt() and decrypt(): encrypt and decrypt data. * digest(): create a fixed-length, collision-resistant digest of some data. Key management functions Except for digest(), all the cryptography functions in the API use cryptographic keys. In the Subt...
XMLHttpRequest.mozAnon - Web APIs
...
XMLHttpRequest.mozBackgroundRequest - Web APIs
Note: This method is not available from Web content. It requires elevated privileges to access. XMLHttpRequest.mozBackgroundRequest is a Boolean, indicating if the object represents a background service request. If true, no load group is associated with the request, with security dialogs prevented from being shown to the user. In cases in where a security dialog (such as authentication or a bad certificate notification) would normally be shown, this request fails instead. Note: This property must be set before calling open(). ...
XMLHttpRequest.open() - Web APIs
ers. This must be true if the multipart attribute is true, or an exception will be thrown. Note: Synchronous requests on the main thread can be easily disruptive to the user experience and should be avoided; in fact, many browsers have deprecated synchronous XHR support on the main thread entirely. Synchronous requests are permitted in Workers. user Optional The optional user name to use for authentication purposes; by default, this is the null value. password Optional The optional password to use for authentication purposes; by default, this is the null value. Specifications Specification Status Comment XMLHttpRequestThe definition of 'open()' in that specification. Living Standard WHATWG living standard ...
XMLHttpRequest - Web APIs
als Is a Boolean that indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies or authorization headers. Non-standard properties XMLHttpRequest.channelRead only Is a nsIChannel. The channel used by the object when performing the request. XMLHttpRequest.mozAnonRead only Is a boolean. If true, the request will be sent without cookie and authentication headers. XMLHttpRequest.mozSystemRead only Is a boolean. If true, the same origin policy will not be enforced on the request. XMLHttpRequest.mozBackgroundRequest Is a boolean. It indicates whether or not the object represents a background service request. XMLHttpRequest.mozResponseArrayBuffer Obsolete since Gecko 6 Read only ArrayBuffer. The response to the request, as a JavaScript typed ...
Web APIs
Web › API
A ANGLE_instanced_arrays AbortController AbortSignal AbsoluteOrientationSensor AbstractRange AbstractWorker Accelerometer AddressErrors AesCbcParams AesCtrParams AesGcmParams AesKeyG...
Operable - Accessibility
3 No time limits (AAA) This builds on criteria 2.2.1, stating that content that wants to pass AAA conformance should have no time limits. 2.2.4 Surpress interruptions (AAA) Any interruptions such as alerts or interstitial adverts should have functionality available to suppress or postpone them, unless it is an emergency alert. 2.2.5 Re-authenticating (AAA) If an authentication session expires during usage of a web app, the user can re-authenticate and continue their usage without losing any data. 2.2.6 Timeouts (AAA) added in 2.1 If there is a timeout (caused by user inactivity) warn users at the start of a process so they will not be surprised that a timeout exists (or only allow the timeout to occur after 20 hours of inactivity. Understan...
Event reference
d. mozbrowsershowmodalprompt Firefox OS Browser API-specific Sent when alert(), confirm() or prompt() are called within a browser <iframe> mozbrowsertitlechange Firefox OS Browser API-specific Sent when the document.title changes within a browser iframe. mozbrowserusernameandpasswordrequired Firefox OS Browser API-specific Sent when an HTTP authentication is requested. mozbrowservisibilitychange Firefox OS Browser API-specific Sent when the visibility state of the current browser iframe <iframe> changes, for example due to a call to setVisible(). MozGamepadButtonDown To be specified A gamepad button is pressed down. MozGamepadButtonUp To be specified A gamepad button is released. Mo...
Guide to Web APIs - Developer guides
Web › Guide › API
m RecordingNNavigation TimingNetwork Information API PPage Visibility APIPayment Request APIPerformance APIPerformance Timeline APIPermissions APIPointer EventsPointer Lock APIProximity Events Push API RResize Observer APIResource Timing APISServer Sent EventsService Workers APIStorageStorage Access APIStreams TTouch EventsUURL APIVVibration APIVisual Viewport WWeb AnimationsWeb Audio APIWeb Authentication APIWeb Crypto APIWeb NotificationsWeb Storage APIWeb Workers APIWebGLWebRTCWebVTTWebXR Device APIWebsockets API ...
The HTML autocomplete attribute - HTML: Hypertext Markup Language
ested values is generally up to the browser; typically values come from past values entered by the user, but they may also come from pre-configured values. For instance, a browser might let the user save their name, address, phone number, and email addresses for autocomplete purposes. Perhaps the browser offers the ability to save encrypted credit card information, for autocompletion following an authentication procedure. If an <input>, <select> or <textarea> element has no autocomplete attribute, then browsers use the autocomplete attribute of the element's form owner, which is either the <form> element that the element is a descendant of, or the <form> whose id is specified by the form attribute of the element. For more information, see the autocomplete attribute in <form>. In order to provide aut...
HTML attribute: crossorigin - HTML: Hypertext Markup Language
ement will have the credentials flag set to 'include'. "" Setting the attribute name to an empty value, like crossorigin or crossorigin="", is the same as anonymous. By default (that is, when the attribute is not specified), CORS is not used at all. The "anonymous" keyword means that there will be no exchange of user credentials via cookies, client-side SSL certificates or HTTP authentication as described in the Terminology section of the CORS specification, unless it is in the same origin. An invalid keyword and an empty string will be handled as the anonymous keyword. Example: crossorigin with the script element You can use the following <script> element to tell a browser to execute the https://example.com/example-framework.js script without sending user-credentials. <script src...
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
Web › HTML › Element › audio
playback. crossorigin This enumerated attribute indicates whether to use CORS to fetch the related audio file. CORS-enabled resources can be reused in the <canvas> element without being tainted. The allowed values are: anonymous Sends a cross-origin request without a credential. In other words, it sends the Origin: HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the Access-Control-Allow-Origin: HTTP header), the image will be tainted, and its usage restricted. use-credentials Sends a cross-origin request with a credential. In other words, it sends the Origin: HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credent...
<link>: The External Resource Link element - HTML: Hypertext Markup Language
Web › HTML › Element › link
er, SharedWorker crossorigin This enumerated attribute indicates whether CORS must be used when fetching the resource. CORS-enabled images can be reused in the <canvas> element without being tainted. The allowed values are: anonymous A cross-origin request (i.e. with an Origin HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the Access-Control-Allow-Origin HTTP header) the resource will be tainted and its usage restricted. use-credentials A cross-origin request (i.e. with an Origin HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not giv...
<video>: The Video Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › video
the control). crossorigin This enumerated attribute indicates whether to use CORS to fetch the related image. CORS-enabled resources can be reused in the <canvas> element without being tainted. The allowed values are: anonymous Sends a cross-origin request without a credential. In other words, it sends the Origin: HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the Access-Control-Allow-Origin: HTTP header), the image will be tainted, and its usage restricted. use-credentials Sends a cross-origin request with a credential. In other words, it sends the Origin: HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credent...
HTTP caching - HTTP
Web › HTTP › Caching
quest is sent to the server and a full response is downloaded each and every time. Cache-Control: no-store Cache but revalidate A cache will send the request to the origin server for validation before releasing a cached copy. Cache-Control: no-cache Private and public caches The "public" directive indicates that the response may be cached by any cache. This can be useful if pages with HTTP authentication, or response status codes that aren't normally cacheable, should now be cached. On the other hand, "private" indicates that the response is intended for a single user only and must not be stored by a shared cache. A private browser cache may store the response in this case. Cache-Control: private Cache-Control: public Expiration The most important directive here is "max-age=<seconds>" which ...
Access-Control-Allow-Headers - HTTP
der name no Syntax Access-Control-Allow-Headers: <header-name>[, <header-name>]* Access-Control-Allow-Headers: * Directives <header-name> The name of a supported request header. The header may list any number of headers, separated by commas. * (wildcard) The value "*" only counts as a special wildcard value for requests without credentials (requests without HTTP cookies or HTTP authentication information). In requests with credentials, it is treated as the literal header name "*" without special semantics. Note that the Authorization header can't be wildcarded and always needs to be listed explicitly. Examples A custom header Here's an example of what an Access-Control-Allow-Headers header might look like. It indicates that in addition to the CORS-safelisted request headers, a cus...
Access-Control-Allow-Methods - HTTP
Header type Response header Forbidden header name no Syntax Access-Control-Allow-Methods: <method>, <method>, ... Access-Control-Allow-Methods: * Directives <method> Comma-delimited list of the allowed HTTP request methods. * (wildcard) The value "*" only counts as a special wildcard value for requests without credentials (requests without HTTP cookies or HTTP authentication information). In requests with credentials, it is treated as the literal method name "*" without special semantics. Examples Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Allow-Methods: * Specifications Specification Status Comment FetchThe definition of 'Access-Control-Allow-Methods' in that specification. Living Standard Initial definiti...
Access-Control-Expose-Headers - HTTP
<header-name>, <header-name>, ... Access-Control-Expose-Headers: * Directives <header-name> A list of exposed headers consisting of zero or more header names other than the CORS-safelisted request headers that the resource might use and can be exposed. * (wildcard) The value "*" only counts as a special wildcard value for requests without credentials (requests without HTTP cookies or HTTP authentication information). In requests with credentials, it is treated as the literal header name "*" without special semantics. Note that the Authorization header can't be wildcarded and always needs to be listed explicitly. Examples To expose a non-CORS-safelisted request header, you can specify: Access-Control-Expose-Headers: Content-Length To additionally expose a custom header, like X-Kuma-Revision...
Clear-Site-Data - HTTP
Indicates that the server wishes to remove locally cached data (i.e. the browser cache, see HTTP caching) for the origin of the response URL. Depending on the browser, this might also clear out things like pre-rendered pages, script caches, WebGL shader caches, or address bar suggestions. "cookies" Indicates that the server wishes to remove all cookies for the origin of the response URL. HTTP authentication credentials are also cleared out. This affects the entire registered domain, including subdomains. So https://example.com as well as https://stage.example.com, will have cookies cleared. "storage" Indicates that the server wishes to remove all DOM storage for the origin of the response URL. This includes storage mechanisms such as: localStorage (executes localStorage.clear), sessionStorag...
Feature-Policy: publickey-credentials-get - HTTP
rowsing contexts (iframes) in the same origin. The feature is not allowed in cross-origin documents in nested browsing contexts. 'none': The feature is disabled in top-level and nested browsing contexts. Default policy The default allowlist is 'self'. Specifications Specification Status Comment Feature Policy Editor's Draft Initial definition. Web Authentication Level 2 Editor's draft. Definition of publickey-credentials-get directive, default allowlist. ...
Feature-Policy - HTTP
he current document is allowed to use the Payment Request API. When this policy is enabled, the PaymentRequest() constructor will throw a SecurityError DOMException. picture-in-picture Controls whether the current document is allowed to play a video in a Picture-in-Picture mode via the corresponding API. publickey-credentials-get Controls whether the current document is allowed to use the Web Authentication API to retreive already stored public-key credentials, i.e. via navigator.credentials.get({publicKey: ..., ...}). sync-xhr Controls whether the current document is allowed to make synchronous XMLHttpRequest requests. usb Controls whether the current document is allowed to use the WebUSB API. wake-lock Controls whether the current document is allowed to use Wake Lock API to indicate that dev...
From - HTTP
Web › HTTP › Headers › From
The From request header contains an Internet email address for a human user who controls the requesting user agent. If you are running a robotic user agent (e.g. a crawler), the From header should be sent, so you can be contacted if problems occur on servers, such as if the robot is sending excessive, unwanted, or invalid requests. You shouldn't use the From header for access control or authentication. Header type Request header Forbidden header name no Syntax From: <email> Directives <email> A machine-usable email address. Examples From: webmaster@example.org Specifications Specification Title RFC 7231, section 5.5.1: From Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content ...
Trailer - HTTP
Web › HTTP › Headers › Trailer
ame yes Syntax Trailer: header-names Directives header-names HTTP header fields which will be present in the trailer part of chunked messages. These header fields are disallowed: message framing headers (e.g., Transfer-Encoding and Content-Length), routing headers (e.g., Host), request modifiers (e.g., controls and conditionals, like Cache-Control, Max-Forwards, or TE), authentication headers (e.g., Authorization or Set-Cookie), or Content-Encoding, Content-Type, Content-Range, and Trailer itself. Examples Chunked transfer encoding using a trailing header In this example, the Expires header is used at the end of the chunked message and serves as a trailing header. HTTP/1.1 200 OK Content-Type: text/plain Transfer-Encoding: chunked Trailer: Expires 7\r\n Mozilla\r\n...
HTTP headers - HTTP
Web › HTTP › Headers
pient of the message: the server for a request, or the client for a response. Intermediate proxies must retransmit these headers unmodified and caches must store them. Hop-by-hop headers These headers are meaningful only for a single transport-level connection, and must not be retransmitted by proxies or cached. Note that only hop-by-hop headers may be set using the Connection general header. Authentication WWW-Authenticate Defines the authentication method that should be used to access a resource. Authorization Contains the credentials to authenticate a user-agent with a server. Proxy-Authenticate Defines the authentication method that should be used to access a resource behind a proxy server. Proxy-Authorization Contains the credentials to authenticate a user agent with a proxy server. ...
Proxy servers and tunneling - HTTP
on the World Wide Web. A proxy can be on the user's local computer, or anywhere between the user's computer and a destination server on the Internet. This page outlines some basics about proxies and introduces a few configuration options. There are two types of proxies: forward proxies (or tunnel, or gateway) and reverse proxies (used to control and protect access to a server for load-balancing, authentication, decryption or caching). Forward proxies A forward proxy, or gateway, or just "proxy" provides proxy services to a client or a group of clients. There are likely hundreds of thousands of open forward proxies on the Internet. They store and forward Internet services (like the DNS, or web pages) to reduce and control the bandwidth used by the group. Forward proxies can also be anonymous proxies ...
HTTP resources and specifications - HTTP
RFC 7233 Hypertext Transfer Protocol (HTTP/1.1): Range Requests Proposed Standard RFC 7234 Hypertext Transfer Protocol (HTTP/1.1): Caching Proposed Standard RFC 5861 HTTP Cache-Control Extensions for Stale Content Informational RFC 8246 HTTP Immutable Responses Proposed Standard RFC 7235 Hypertext Transfer Protocol (HTTP/1.1): Authentication Proposed Standard RFC 6265 HTTP State Management Mechanism Defines Cookies Proposed Standard Draft spec Cookie Prefixes IETF Draft Draft spec Same-Site Cookies IETF Draft Draft spec Deprecate modification of 'secure' cookies from non-secure origins IETF Draft RFC 2145 Use and Interpretation of HTTP Version Numbers I...
401 Unauthorized - HTTP
Web › HTTP › Status › 401
The HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. This status is sent with a WWW-Authenticate header that contains information on how to authorize correctly. This status is similar to 403, but in this case, authentication is possible. Status 401 Unauthorized Example response HTTP/1.1 401 Unauthorized Date: Wed, 21 Oct 2015 07:28:00 GMT WWW-Authenticate: Basic realm="Access to staging site" Specifications Specification Title RFC 7235, section 3.1: 401 Unauthorized HTTP/1.1: Authentication ...
Navigation and resource timings - Web Performance
ned is 0. connectEnd When the connection is opened network. If the transport layer reports an error and the connection establishment is started again, the last connection establishment end time is given. If a persistent connection is used, the value will be the same as PerformanceTiming.fetchStart. A connection is considered as opened when all secure connection handshake, or SOCKS authentication, is terminated. connectStart When the request to open a connection is sent to the network. If the transport layer reports an error and the connection establishment is started again, the last connection establishment start time is given. If a persistent connection is used, the value will be the same as PerformanceTiming.fetchStart. domainLookupEnd When the domain lookup is ...
Features restricted to secure contexts - Web security
st API (and Basic Card Payment). 61 15 11.1 In development (behind the dom.payments.request.enabled pref). ...
Secure contexts - Web security
A secure context is a Window or Worker for which certain minimum standards of authentication and confidentiality are met. Many Web APIs and features are accessible only in a secure context. The primary goal of secure contexts is to prevent MITM attackers from accessing powerful APIs that could further compromise the victim of an attack. Why should some features be restricted? Some APIs on the web are very powerful, giving an attacker the ability to do the following and more: Invade a user's privacy. Get low-level access to a user's computer. Get access to data such as user credentials. When is a context considered secure? A context is considered secure when it meets certain minimum standards of authentication and confidentiality defined in the Secure Contexts specification. A particula...
Web security
ed selector Before about 2010, the CSS :visited selector allowed websites to uncover a user's browsing history and figure out what sites the user had visited. To mitigate this problem, browsers have limited the amount of information that can be obtained from visited links. ...