Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / PassportAuthentication.cs / 1305376 / PassportAuthentication.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /***************************************************************************** From machine.config******************************************************************************/ namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; [Obsolete("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")] public sealed class PassportAuthentication : ConfigurationElement { private static readonly ConfigurationElementProperty s_elemProperty = new ConfigurationElementProperty(new CallbackValidator(typeof(PassportAuthentication), Validate)); private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propRedirectUrl = new ConfigurationProperty("redirectUrl", typeof(string), "internal", ConfigurationPropertyOptions.None); static PassportAuthentication() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propRedirectUrl); } public PassportAuthentication() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("redirectUrl", DefaultValue = "internal")] [StringValidator()] public string RedirectUrl { get { return (string)base[_propRedirectUrl]; } set { base[_propRedirectUrl] = value; } } protected override ConfigurationElementProperty ElementProperty { get { return s_elemProperty; } } private static void Validate(object value) { if (value == null) { throw new ArgumentNullException("passport"); } Debug.Assert(value is PassportAuthentication); PassportAuthentication elem = (PassportAuthentication)value; if (StringUtil.StringStartsWith(elem.RedirectUrl, "\\\\") || (elem.RedirectUrl.Length > 1 && elem.RedirectUrl[1] == ':')) { throw new ConfigurationErrorsException(SR.GetString(SR.Auth_bad_url)); } } } // class PassportAuthentication } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlInputRadioButton.cs
- HideDisabledControlAdapter.cs
- ItemDragEvent.cs
- VBIdentifierNameEditor.cs
- WebPartUserCapability.cs
- XmlSchemaDatatype.cs
- OletxEnlistment.cs
- ConfigurationPropertyCollection.cs
- PnrpPermission.cs
- SendMessageRecord.cs
- ScriptingWebServicesSectionGroup.cs
- regiisutil.cs
- HtmlInputReset.cs
- ResponseBodyWriter.cs
- FormsAuthenticationEventArgs.cs
- ExtractedStateEntry.cs
- XmlHierarchicalDataSourceView.cs
- MappedMetaModel.cs
- AppSettingsReader.cs
- WebHeaderCollection.cs
- AttributeSetAction.cs
- HttpPostedFileWrapper.cs
- SelectionHighlightInfo.cs
- XmlSchemaSimpleContentRestriction.cs
- SqlBulkCopy.cs
- updatecommandorderer.cs
- DataGridHeaderBorder.cs
- XmlSchemaSimpleContent.cs
- SByteConverter.cs
- HttpInputStream.cs
- CornerRadius.cs
- DrawTreeNodeEventArgs.cs
- TaskFormBase.cs
- WmfPlaceableFileHeader.cs
- RegexCompiler.cs
- HttpResponseInternalWrapper.cs
- MsmqQueue.cs
- ValueQuery.cs
- LinkUtilities.cs
- Pair.cs
- JumpItem.cs
- BlobPersonalizationState.cs
- Header.cs
- ZipIOLocalFileHeader.cs
- LockedHandleGlyph.cs
- PropertyCondition.cs
- TraceInternal.cs
- ParseNumbers.cs
- DBDataPermissionAttribute.cs
- FileDetails.cs
- PeerCollaboration.cs
- Graphics.cs
- CompilerGeneratedAttribute.cs
- CodeRemoveEventStatement.cs
- UnknownWrapper.cs
- DomainUpDown.cs
- DocobjHost.cs
- DispatcherEventArgs.cs
- IResourceProvider.cs
- WindowInteropHelper.cs
- DecimalAnimationUsingKeyFrames.cs
- VirtualDirectoryMappingCollection.cs
- Viewport3DAutomationPeer.cs
- InputManager.cs
- DataGridViewRowCancelEventArgs.cs
- SafeHandles.cs
- IntSumAggregationOperator.cs
- WsatConfiguration.cs
- SchemaCollectionPreprocessor.cs
- StackSpiller.Generated.cs
- AssemblyGen.cs
- ProcessingInstructionAction.cs
- OleDbInfoMessageEvent.cs
- FixedDocument.cs
- BindStream.cs
- ExtractCollection.cs
- Win32MouseDevice.cs
- DataPointer.cs
- FaultDescriptionCollection.cs
- ColumnMapCopier.cs
- SharedDp.cs
- Operand.cs
- TextFormatterContext.cs
- WebPartDesigner.cs
- PropertyEmitter.cs
- ListMarkerSourceInfo.cs
- TraceHandler.cs
- SerializationInfo.cs
- RpcResponse.cs
- MembershipPasswordException.cs
- WindowsImpersonationContext.cs
- HMACRIPEMD160.cs
- controlskin.cs
- ProfessionalColors.cs
- StringSorter.cs
- ManifestResourceInfo.cs
- IndexExpression.cs
- WebPartDisplayModeCollection.cs
- MachineKeyConverter.cs
- WebMessageEncodingBindingElement.cs