-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
102 changed files
with
32,734 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2013 | ||
VisualStudioVersion = 12.0.30723.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleWebSite", "SampleWebSite\SampleWebSite.csproj", "{DA7762F8-1A8B-452E-A20F-0F4BB5E072EC}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNet.Identity.Oracle", "AspNet.Identity.Oracle\AspNet.Identity.Oracle.csproj", "{26F6ECF9-4369-417B-8CF2-54FA92DF3660}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{D62A2A25-E163-4621-8169-B5A9CD55A3D3}" | ||
ProjectSection(SolutionItems) = preProject | ||
.nuget\NuGet.Config = .nuget\NuGet.Config | ||
.nuget\NuGet.exe = .nuget\NuGet.exe | ||
.nuget\NuGet.targets = .nuget\NuGet.targets | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{DA7762F8-1A8B-452E-A20F-0F4BB5E072EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{DA7762F8-1A8B-452E-A20F-0F4BB5E072EC}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{DA7762F8-1A8B-452E-A20F-0F4BB5E072EC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{DA7762F8-1A8B-452E-A20F-0F4BB5E072EC}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{26F6ECF9-4369-417B-8CF2-54FA92DF3660}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{26F6ECF9-4369-417B-8CF2-54FA92DF3660}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{26F6ECF9-4369-417B-8CF2-54FA92DF3660}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{26F6ECF9-4369-417B-8CF2-54FA92DF3660}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration /> |
115 changes: 115 additions & 0 deletions
115
Src/AspNet.Identity.Oracle/AspNet.Identity.Oracle.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{26F6ECF9-4369-417B-8CF2-54FA92DF3660}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>AspNet.Identity.Oracle</RootNamespace> | ||
<AssemblyName>AspNet.Identity.Oracle</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<SccProjectName> | ||
</SccProjectName> | ||
<SccLocalPath> | ||
</SccLocalPath> | ||
<SccAuxPath> | ||
</SccAuxPath> | ||
<SccProvider> | ||
</SccProvider> | ||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">.\</SolutionDir> | ||
<RestorePackages>true</RestorePackages> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> | ||
<DebugSymbols>true</DebugSymbols> | ||
<OutputPath>bin\x64\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<DebugType>full</DebugType> | ||
<PlatformTarget>x64</PlatformTarget> | ||
<ErrorReport>prompt</ErrorReport> | ||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> | ||
<OutputPath>bin\x64\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<Optimize>true</Optimize> | ||
<DebugType>pdbonly</DebugType> | ||
<PlatformTarget>x64</PlatformTarget> | ||
<ErrorReport>prompt</ErrorReport> | ||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Microsoft.AspNet.Identity.Core"> | ||
<HintPath>..\packages\Microsoft.AspNet.Identity.Core.2.0.0\lib\net45\Microsoft.AspNet.Identity.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\..\..\_ExternalLibrary\Oracle\Oracle.DataAccess.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.ComponentModel.DataAnnotations" /> | ||
<Reference Include="System.Configuration" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Windows.Forms" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="IdentityRole.cs" /> | ||
<Compile Include="RoleStore.cs" /> | ||
<Compile Include="IdentityUser.cs" /> | ||
<Compile Include="ToDecimalExtentions.cs" /> | ||
<Compile Include="UserLoginsTable.cs" /> | ||
<Compile Include="UserClaimsTable.cs" /> | ||
<Compile Include="UserStore.cs" /> | ||
<Compile Include="OracleDatabase.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="RoleTable.cs" /> | ||
<Compile Include="UserRoleTable.cs" /> | ||
<Compile Include="UserTable.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="App.config" /> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="OracleIdentity.sql" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="Readme.txt" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using Microsoft.AspNet.Identity; | ||
using System; | ||
|
||
namespace AspNet.Identity.Oracle | ||
{ | ||
/// <summary> | ||
/// Class that implements the ASP.NET Identity | ||
/// IRole interface | ||
/// </summary> | ||
public class IdentityRole : IRole | ||
{ | ||
/// <summary> | ||
/// Default constructor for Role | ||
/// </summary> | ||
public IdentityRole() | ||
{ | ||
Id = Guid.NewGuid().ToString(); | ||
} | ||
/// <summary> | ||
/// Constructor that takes names as argument | ||
/// </summary> | ||
/// <param name="name"></param> | ||
public IdentityRole(string name) : this() | ||
{ | ||
Name = name; | ||
} | ||
|
||
public IdentityRole(string name, string id) | ||
{ | ||
Name = name; | ||
Id = id; | ||
} | ||
|
||
/// <summary> | ||
/// Role ID | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// Role name | ||
/// </summary> | ||
public string Name { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
using Microsoft.AspNet.Identity; | ||
using System; | ||
|
||
namespace AspNet.Identity.Oracle | ||
{ | ||
/// <summary> | ||
/// Class that implements the ASP.NET Identity | ||
/// IUser interface | ||
/// </summary> | ||
public class IdentityUser : IUser | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public IdentityUser() | ||
{ | ||
Id = Guid.NewGuid().ToString(); | ||
} | ||
|
||
/// <summary> | ||
/// Constructor that takes user name as argument | ||
/// </summary> | ||
/// <param name="userName"></param> | ||
public IdentityUser(string userName) | ||
: this() | ||
{ | ||
UserName = userName; | ||
} | ||
|
||
/// <summary> | ||
/// User ID | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// User's name | ||
/// </summary> | ||
public string UserName { get; set; } | ||
|
||
/// <summary> | ||
/// </summary> | ||
public virtual string Email { get; set; } | ||
|
||
/// <summary> | ||
/// True if the email is confirmed, default is false | ||
/// </summary> | ||
public virtual bool EmailConfirmed { get; set; } | ||
|
||
/// <summary> | ||
/// The salted/hashed form of the user password | ||
/// </summary> | ||
public virtual string PasswordHash { get; set; } | ||
|
||
/// <summary> | ||
/// A random value that should change whenever a users credentials have changed (password changed, login removed) | ||
/// </summary> | ||
public virtual string SecurityStamp { get; set; } | ||
|
||
/// <summary> | ||
/// PhoneNumber for the user | ||
/// </summary> | ||
public virtual string PhoneNumber { get; set; } | ||
|
||
/// <summary> | ||
/// True if the phone number is confirmed, default is false | ||
/// </summary> | ||
public virtual bool PhoneNumberConfirmed { get; set; } | ||
|
||
/// <summary> | ||
/// Is two factor enabled for the user | ||
/// </summary> | ||
public virtual bool TwoFactorEnabled { get; set; } | ||
|
||
/// <summary> | ||
/// DateTime in UTC when lockout ends, any time in the past is considered not locked out. | ||
/// </summary> | ||
public virtual DateTime? LockoutEndDateUtc { get; set; } | ||
|
||
/// <summary> | ||
/// Is lockout enabled for this user | ||
/// </summary> | ||
public virtual bool LockoutEnabled { get; set; } | ||
|
||
/// <summary> | ||
/// Used to record failures for the purposes of lockout | ||
/// </summary> | ||
public virtual int AccessFailedCount { get; set; } | ||
} | ||
} |
Oops, something went wrong.