Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Security / PassportAuthenticationEventArgs.cs / 1 / PassportAuthenticationEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * PassportAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// The /// event argument passed to the PassportAuthentication_OnAuthenticate event by the /// PassportAuthentication module. /// Since there is already an identity at this point, this is useful mainly /// for attaching a custom IPrincipal object to the context using the supplied /// identity. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class PassportAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; private PassportIdentity _Identity; ////// IPrincipal /// object to be associated with the request. /// The user object should be attached to the context. If User is non null and Context.User is /// null, the PassportAuthenticationModule will initialize Context.User with /// PassportAuthenticationEventArgs.User. /// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ////// The /// HttpContext intrinsic - most notably provides access to Request, Response, and /// User objects. /// public HttpContext Context { get { return _Context;}} ////// An authenticated Passport identity. /// public PassportIdentity Identity { get { return _Identity;}} ////// Constructor /// public PassportAuthenticationEventArgs(PassportIdentity identity, HttpContext context) { _Identity = identity; _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * PassportAuthenticationEventArgs class * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// The /// event argument passed to the PassportAuthentication_OnAuthenticate event by the /// PassportAuthentication module. /// Since there is already an identity at this point, this is useful mainly /// for attaching a custom IPrincipal object to the context using the supplied /// identity. /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class PassportAuthenticationEventArgs : EventArgs { private IPrincipal _User; private HttpContext _Context; private PassportIdentity _Identity; ////// IPrincipal /// object to be associated with the request. /// The user object should be attached to the context. If User is non null and Context.User is /// null, the PassportAuthenticationModule will initialize Context.User with /// PassportAuthenticationEventArgs.User. /// public IPrincipal User { get { return _User;} [SecurityPermission(SecurityAction.Demand, ControlPrincipal=true)] set { _User = value; } } ////// The /// HttpContext intrinsic - most notably provides access to Request, Response, and /// User objects. /// public HttpContext Context { get { return _Context;}} ////// An authenticated Passport identity. /// public PassportIdentity Identity { get { return _Identity;}} ////// Constructor /// public PassportAuthenticationEventArgs(PassportIdentity identity, HttpContext context) { _Identity = identity; _Context = context; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HostedNamedPipeTransportManager.cs
- WindowsImpersonationContext.cs
- ToolStripContentPanelRenderEventArgs.cs
- DesignerForm.cs
- EndPoint.cs
- MessageQueueTransaction.cs
- CLRBindingWorker.cs
- MatrixStack.cs
- FieldNameLookup.cs
- CommandValueSerializer.cs
- ValidationErrorInfo.cs
- ConsumerConnectionPointCollection.cs
- TextDecorationCollectionConverter.cs
- TextTreeFixupNode.cs
- ServiceOperationParameter.cs
- HttpRuntimeSection.cs
- DictionaryBase.cs
- Group.cs
- DispatcherHookEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- TaskbarItemInfo.cs
- FontFamily.cs
- IISMapPath.cs
- UnaryQueryOperator.cs
- SpellerStatusTable.cs
- EmptyImpersonationContext.cs
- CollectionConverter.cs
- Binding.cs
- CTreeGenerator.cs
- AuthenticationServiceManager.cs
- ListView.cs
- ApplicationDirectory.cs
- HtmlValidationSummaryAdapter.cs
- ActionFrame.cs
- WaitForChangedResult.cs
- NamespaceEmitter.cs
- WindowsGraphicsCacheManager.cs
- EntityDescriptor.cs
- ButtonChrome.cs
- BindingsSection.cs
- CheckedPointers.cs
- MetadataConversionError.cs
- ErrorProvider.cs
- SqlPersistenceProviderFactory.cs
- FrameDimension.cs
- WebPartManager.cs
- DefaultValueAttribute.cs
- MiniLockedBorderGlyph.cs
- BookmarkUndoUnit.cs
- ReachPageContentCollectionSerializer.cs
- ToolBarOverflowPanel.cs
- SafeEventLogWriteHandle.cs
- glyphs.cs
- X509ChainElement.cs
- PlatformNotSupportedException.cs
- SynchronizationLockException.cs
- AdRotator.cs
- streamingZipPartStream.cs
- CqlLexerHelpers.cs
- CallbackValidatorAttribute.cs
- UIPropertyMetadata.cs
- ValueCollectionParameterReader.cs
- IdentityHolder.cs
- ContentPlaceHolder.cs
- IntegerValidatorAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- DbBuffer.cs
- Path.cs
- VisualStyleElement.cs
- Variant.cs
- MessagePropertyAttribute.cs
- ManipulationCompletedEventArgs.cs
- TextStore.cs
- RewritingValidator.cs
- BitmapEffectGroup.cs
- ImageSourceConverter.cs
- FilterEventArgs.cs
- GcSettings.cs
- MsmqChannelListenerBase.cs
- TypeExtension.cs
- Viewport3DAutomationPeer.cs
- unitconverter.cs
- MetadataCacheItem.cs
- InternalDuplexChannelListener.cs
- XmlSchemaComplexType.cs
- SqlPersistenceProviderFactory.cs
- AbstractSvcMapFileLoader.cs
- HttpModulesSection.cs
- TypeSystemHelpers.cs
- PerformanceCounters.cs
- StandardBindingElement.cs
- URLMembershipCondition.cs
- x509store.cs
- SurrogateDataContract.cs
- PointHitTestResult.cs
- ServiceDesigner.cs
- Subtree.cs
- PackWebRequestFactory.cs
- UserPreferenceChangingEventArgs.cs
- ResourceContainer.cs