Configuring Kabel .NET
Open
this document in seperate window
| Quick-Jump to a section: |
Kabel .NET offers several configuration options, which affect the behavior and operation of the base module, including ticket generation and validation, the authentication cache and HTTP Digest-specific options. These settings are specified in a custom section of the web.config file: <uthentic.HttpDigest> as documented below.
A First Example
The following snippet from a web.config shows a possible configuration, which explicitly specifies all possible settings for the Kabel .NET module:
| web.config |
| <configuration>
</system.web>
</configuration> |
No attributes at this level.
<uthentic.HttpDigest> : <authentication>
Attributes: Possible Values: Default Value: realm [text] WebApplication The Realm to be used for the Web Application.
Clients will use this string to hash their passwords so that the hash is only valid for the current application.
<uthentic.HttpDigest> : <authentication> : <cache>
| Attributes: | Possible Values: | Default Value: | |
| mode | none |
none | The use mode
of the the Authentication Cache.
|
| expiration | absolute |
sliding | The cache expiration option for the enabled AC; to be used with minutes attribute.
|
| minutes | [number > 0] |
20 | "Minutes" as related to the expiration attribute. |
<uthentic.HttpDigest> : <tickets>
| Attributes: | Possible Values: | Default Value: | |
| timeout | [number > 0] |
300 (5 minutes) |
The number
of seconds for which an issued ticket is valid. |
| maxReuseCount | [any number] |
5 | The number of requests for which a valid ticket can be used.
|
| resourceDependent | true |
false | Should tickets be bound
to the original resource that was requested when they were generated? An example: The Client received a ticket with reference to resource A but an intruder snatched this ticket and wants to access resource B with it; when employing resource-dependent tickets, the Server will require re-authentication for B, so that the intruder is denied and his harm effectively contained. |
| useOpaque | true |
false | HTTP Digest-specific:
When returning an initial challenge, should the Server generate an opque
identifier for the subsequent authentication session? Important: When overriding Opaque Value Generation, each opaque value must be unique and must only be generated once. The use of GUIDs or other such identifiers for this purpose is highly recommended. |
<uthentic.HttpDigest> : <tickets> : <machineKey>
| Attributes: | Possible Values: | Default Value: | |
| validationKey | autogenerate or [hexadecimal |
autogenerate | The cryptographic validation key to be used for signing and verifying server-issued tickets. autogenerate - Kabel .NET will generate a strong, random key within the scope of the current web application (recommended). [hexadecimal key data] - Specify a custom key string when using a web farm/multi-server environment. |
<uthentic.HttpDigest> : <license>
| Attributes: | Possible Values: | Default Value: | |
| location | registry [Virtual Path] or [Directory Path] |
registry | The location of the active License for Kabel .NET. registry - Kabel .NET will attempt to load an installed License from the Registry. Virtual Path -
Must start with ~/ which
will resolve the virtual path relative to the web application's root directory
on the physical hard drive. (Server.MapPath
is used internally here). Directory Path - Example: C:\production.lic If <license> is omitted - Kabel .NET will look in the Registry for a globally installed license or license file path; use the Licensing Utility to write a license to the Registry. |
Feedback
on Help
Copyright © 2002, uthentic.net
All Rights Reserved