-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exceptions have removed Code cleanup and format Some methods re-written Fixed some bugs/issues
- Loading branch information
Showing
190 changed files
with
1,551 additions
and
2,334 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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<BaseOutputPath>C:\Users\kkass\source\build\easme</BaseOutputPath> | ||
<Version>1.0.0</Version> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<Title>EasMe.Authorization</Title> | ||
<Authors>bberka</Authors> | ||
<Description>AspNetCore authorization extender library. Easily manage and apply required roles for desired endpoints.</Description> | ||
<PackageProjectUrl>https://github.com/bberka/EasMe/tree/master</PackageProjectUrl> | ||
<PackageLicenseUrl>https://github.com/bberka/EasMe/blob/master/LICENSE.txt</PackageLicenseUrl> | ||
<RepositoryUrl>https://github.com/bberka/EasMe/tree/master</RepositoryUrl> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<BaseOutputPath>C:\Users\kkass\source\build\easme</BaseOutputPath> | ||
<Version>1.0.0</Version> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<Title>EasMe.Authorization</Title> | ||
<Authors>bberka</Authors> | ||
<Description>AspNetCore authorization extender library. Easily manage and apply required roles for desired endpoints.</Description> | ||
<PackageProjectUrl>https://github.com/bberka/EasMe/tree/master</PackageProjectUrl> | ||
<PackageLicenseUrl>https://github.com/bberka/EasMe/blob/master/LICENSE.txt</PackageLicenseUrl> | ||
<RepositoryUrl>https://github.com/bberka/EasMe/tree/master</RepositoryUrl> | ||
|
||
</PropertyGroup> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0"/> | ||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5"/> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/> | ||
</ItemGroup> | ||
|
||
</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
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
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
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
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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
# EasMe.Authorization | ||
|
||
Permission Authorization helper for AsNetCore.Mvc. | ||
Uses base HttpContext.User authentication and verifies permissions initialized by server | ||
|
||
### Table of Contents | ||
|
||
- Filters > HasPermissionAttribute | ||
- Middlewares > HttpMethodAuthorizationMiddleware | ||
- AuthorizationHelper | ||
- Enums | ||
|
||
### HasPermissionAttribute | ||
|
||
1. Add "EasMeClaimType.EndPointPermissions" to User claims | ||
2. Set value as list of permissions separeted by "," | ||
3. Add HasPermission("PermissionName") to Controller or Endpoint Action | ||
|
||
### HttpMethodAuthorizationMiddleware | ||
|
||
1. Add "EasMeClaimType.HttpMethodPermissions" to User claims | ||
2. Set value as list of permissions separeted by "," | ||
3. Get permission values from "EasMe.Authorization.HttpMethod" enum |
2 changes: 1 addition & 1 deletion
2
...EasMe.Authorization/obj/Release/net6.0/EasMe.Authorization.csproj.CoreCompileInputs.cache
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 |
---|---|---|
@@ -1 +1 @@ | ||
4fafd1b16d689fcdf2c18739c1f9c50f9f85f4fa | ||
aeedc4284f04e07a61c4999a2ba39b935d430ab2 |
Binary file modified
BIN
+0 Bytes
(100%)
src/EasMe.Authorization/obj/Release/net6.0/EasMe.Authorization.dll
Binary file not shown.
Binary file modified
BIN
-76 Bytes
(99%)
src/EasMe.Authorization/obj/Release/net6.0/EasMe.Authorization.pdb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
src/EasMe.Authorization/obj/Release/net6.0/ref/EasMe.Authorization.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
src/EasMe.Authorization/obj/Release/net6.0/refint/EasMe.Authorization.dll
Binary file not shown.
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
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 |
---|---|---|
@@ -1,46 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" 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>{A34014DE-E353-44E7-874F-CFD7E3F16137}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>EasMe.MessageBox</RootNamespace> | ||
<AssemblyName>EasMe.MessageBox</AssemblyName> | ||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
</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\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Windows.Forms" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Box.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="README.md" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<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>{A34014DE-E353-44E7-874F-CFD7E3F16137}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>EasMe.MessageBox</RootNamespace> | ||
<AssemblyName>EasMe.MessageBox</AssemblyName> | ||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
</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\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System"/> | ||
<Reference Include="System.Core"/> | ||
<Reference Include="System.Windows.Forms"/> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Box.cs"/> | ||
<Compile Include="Properties\AssemblyInfo.cs"/> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="README.md"/> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets"/> | ||
</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
36 changes: 18 additions & 18 deletions
36
src/EasMe.EntityFrameworkCore/EasMe.EntityFrameworkCore.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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<BaseOutputPath>C:\Users\kkass\source\build\easme</BaseOutputPath> | ||
<Version>2.0.0</Version> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Title>EasMe.EntityFrameworkCore</Title> | ||
<Description>EntityFrameworkCore extender library with built in repository pattern interfaces and more.</Description> | ||
<PackageProjectUrl>https://github.com/bberka/EasMe/tree/master</PackageProjectUrl> | ||
<PackageLicenseUrl>https://github.com/bberka/EasMe/blob/master/LICENSE.txt</PackageLicenseUrl> | ||
<RepositoryUrl>https://github.com/bberka/EasMe/tree/master</RepositoryUrl> | ||
<Authors>bberka</Authors> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<BaseOutputPath>C:\Users\kkass\source\build\easme</BaseOutputPath> | ||
<Version>2.0.0</Version> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Title>EasMe.EntityFrameworkCore</Title> | ||
<Description>EntityFrameworkCore extender library with built in repository pattern interfaces and more.</Description> | ||
<PackageProjectUrl>https://github.com/bberka/EasMe/tree/master</PackageProjectUrl> | ||
<PackageLicenseUrl>https://github.com/bberka/EasMe/blob/master/LICENSE.txt</PackageLicenseUrl> | ||
<RepositoryUrl>https://github.com/bberka/EasMe/tree/master</RepositoryUrl> | ||
<Authors>bberka</Authors> | ||
|
||
|
||
</PropertyGroup> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5"/> | ||
</ItemGroup> | ||
|
||
</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
Oops, something went wrong.