资源简介
CAS实现单点登录,使用c#实现!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
代码片段和文件信息
/*
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you 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.
*/
using System;
using System.IO;
using System.Threading;
using System.Web;
using System.Web.Configuration;
using System.Web.Security;
using System.xml;
using DotNetCasClient.Configuration;
using DotNetCasClient.Logging;
using DotNetCasClient.Security;
using DotNetCasClient.State;
using DotNetCasClient.Utils;
using DotNetCasClient.Validation;
using DotNetCasClient.Validation.Schema.Cas20;
using DotNetCasClient.Validation.TicketValidator;
namespace DotNetCasClient
{
///
/// CasAuthentication exposes a public API for use in working with CAS Authentication
/// in the .NET framework. It also exposes all configured CAS client configuration
/// parameters as public static properties.
///
/// Marvin S. Addison
/// Scott Holodak
/// William G. Thompson Jr.
/// Catherine D. Winfrey
public sealed class CasAuthentication
{
#region Constants
private const string xml_SESSION_INDEX_ELEMENT_NAME = “samlp:SessionIndex“;
private const string PARAM_PROXY_GRANTING_TICKET_IOU = “pgtIou“;
private const string PARAM_PROXY_GRANTING_TICKET = “pgtId“;
#endregion
#region Fields
// Loggers
private static readonly Logger configLogger = new Logger(Category.Config);
private static readonly Logger protoLogger = new Logger(Category.Protocol);
private static readonly Logger securityLogger = new Logger(Category.Security);
// Thread-safe initialization
private static readonly object Lockobject;
private static bool initialized;
// System.Web/Authentication and System.Web/Authentication/Forms static classes
internal static AuthenticationSection AuthenticationConfig;
internal static CasClientConfiguration CasClientConfig;
// Ticket validator fields
private static string ticketValidatorName;
private static AbstractUrlTicketValidator ticketValidator;
// Ticket manager fields
private static string serviceTicketManagerProvider;
private stat
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 192512 2017-10-25 16:34 CAS.NET-client-1.0-Src\DotNetCasClient\bin\Debug\DotNetCasClient.dll
文件 179712 2017-10-25 16:34 CAS.NET-client-1.0-Src\DotNetCasClient\bin\Debug\DotNetCasClient.pdb
文件 129472 2017-10-25 16:34 CAS.NET-client-1.0-Src\DotNetCasClient\bin\Debug\DotNetCasClient.xm
....... 64847 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\CasAuthentication.cs
....... 11089 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\CasAuthenticationModule.cs
....... 9717 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\CasAuthenticationTicket.cs
....... 14582 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Configuration\CasClientConfiguration.cs
....... 1700 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Configuration\CasConfigurationException.cs
文件 19069 2013-11-20 17:50 CAS.NET-client-1.0-Src\DotNetCasClient\DotNetCasClient.csproj
....... 1812 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\GatewayStatus.cs
....... 10352 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\LICENSE.txt
....... 2566 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Logging\Category.cs
....... 3567 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Logging\Logger.cs
....... 970 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\NOTICE.txt
文件 6298 2017-10-25 15:55 CAS.NET-client-1.0-Src\DotNetCasClient\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 1043 2017-10-25 16:34 CAS.NET-client-1.0-Src\DotNetCasClient\obj\Debug\DotNetCasClient.csproj.FileListAbsolute.txt
文件 192512 2017-10-25 16:34 CAS.NET-client-1.0-Src\DotNetCasClient\obj\Debug\DotNetCasClient.dll
文件 179712 2017-10-25 16:34 CAS.NET-client-1.0-Src\DotNetCasClient\obj\Debug\DotNetCasClient.pdb
文件 1526 2013-11-20 19:30 CAS.NET-client-1.0-Src\DotNetCasClient\Properties\AssemblyInfo.cs
....... 5173 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Security\Assertion.cs
....... 5509 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Security\CasPrincipal.cs
....... 2121 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Security\IAssertion.cs
....... 2755 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Security\ICasPrincipal.cs
....... 3710 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\State\CacheProxyTicketManager.cs
....... 17494 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\State\CacheServiceTicketManager.cs
....... 2861 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\State\IProxyTicketManager.cs
....... 7509 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\State\IServiceTicketManager.cs
....... 2686 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Utils\CommonUtils.cs
....... 12222 2010-12-06 17:13 CAS.NET-client-1.0-Src\DotNetCasClient\Utils\EnhancedUriBuilder.cs
文件 4357 2013-11-20 20:14 CAS.NET-client-1.0-Src\DotNetCasClient\Utils\HttpUtil.cs
............此处省略301个文件信息
- 上一篇:实测 C# USB口 打印机和开钱箱
- 下一篇:C#代码生成器源码
评论
共有 条评论