Copyright 2006-2007 JanRain, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
VERSION | = | "2.2.0" | ||
DefaultNegotiator | = | AssociationNegotiator.new([['HMAC-SHA1', 'DH-SHA1'], ['HMAC-SHA1', 'no-encryption'], ['HMAC-SHA256', 'DH-SHA256'], ['HMAC-SHA256', 'no-encryption']]) | ||
EncryptedNegotiator | = | AssociationNegotiator.new([['HMAC-SHA1', 'DH-SHA1'], ['HMAC-SHA256', 'DH-SHA256']]) | ||
OPENID_1_0_NS | = | 'http://openid.net/xmlns/1.0' | ||
OPENID_IDP_2_0_TYPE | = | 'http://specs.openid.net/auth/2.0/server' | ||
OPENID_2_0_TYPE | = | 'http://specs.openid.net/auth/2.0/signon' | ||
OPENID_1_1_TYPE | = | 'http://openid.net/signon/1.1' | ||
OPENID_1_0_TYPE | = | 'http://openid.net/signon/1.0' | ||
OPENID_1_0_MESSAGE_NS | = | OPENID1_NS | ||
OPENID_2_0_MESSAGE_NS | = | OPENID2_NS | ||
REMOVED_RE | = | / # Comments <!--.*?--> # CDATA blocks | <!\[CDATA\[.*?\]\]> # script blocks | <script\b # make sure script is not an XML namespace (?!:) [^>]*>.*?<\/script> /mix | Stuff to remove before we start looking for tags | |
IDENTIFIER_SELECT | = | 'http://specs.openid.net/auth/2.0/identifier_select' | ||
SREG_URI | = | 'http://openid.net/sreg/1.0' | URI for Simple Registration extension, the only commonly deployed OpenID 1.x extension, and so a special case. | |
OPENID1_NS | = | 'http://openid.net/signon/1.0' | The OpenID 1.x namespace URIs | |
OPENID11_NS | = | 'http://openid.net/signon/1.1' | ||
OPENID1_NAMESPACES | = | [OPENID1_NS, OPENID11_NS] | ||
OPENID2_NS | = | 'http://specs.openid.net/auth/2.0' | The OpenID 2.0 namespace URI | |
NULL_NAMESPACE | = | :null_namespace | The namespace consisting of pairs with keys that are prefixed with "openid." but not in another namespace. | |
OPENID_NS | = | :openid_namespace | The null namespace, when it is an allowed OpenID namespace | |
BARE_NS | = | :bare_namespace | The top-level namespace, excluding all pairs with keys that start with "openid." | |
OPENID1_URL_LIMIT | = | 2047 | Limit, in bytes, of identity provider and return_to URLs, including response payload. See OpenID 1.1 specification, Appendix D. | |
OPENID_PROTOCOL_FIELDS | = | [ 'ns', 'mode', 'error', 'return_to', 'contact', 'reference', 'signed', 'assoc_type', 'session_type', 'dh_modulus', 'dh_gen', 'dh_consumer_public', 'claimed_id', 'identity', 'realm', 'invalidate_handle', 'op_endpoint', 'response_nonce', 'sig', 'assoc_handle', 'trust_root', 'openid', ] | All OpenID protocol fields. Used to check namespace aliases. | |
NO_DEFAULT | = | :no_default | Sentinel used for Message implementation to indicate that getArg should raise an exception instead of returning a default. |
Set the default fetcher to use the HTTP proxy defined in the environment variable ‘http_proxy’.