Skip to content

Commit

Permalink
rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Jan 9, 2024
1 parent d95a648 commit acfdbba
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Privileged.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authorizone", "src\Authorizone\Authorizone.csproj", "{9CE78075-9509-4113-B645-45A082C68839}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Privileged", "src\Privileged\Privileged.csproj", "{9CE78075-9509-4113-B645-45A082C68839}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authorizone.Tests", "test\Authorizone.Tests\Authorizone.Tests.csproj", "{DA3CCF24-533A-436A-9929-28AF83D29B32}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Privileged.Tests", "test\Privileged.Tests\Privileged.Tests.csproj", "{DA3CCF24-533A-436A-9929-28AF83D29B32}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{4F71B12A-605F-48FE-94F5-FF3B776FEA6D}"
ProjectSection(SolutionItems) = preProject
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Authorizone
# Privileged

Authorizone is an isomorphic authorization library for restricting resources by action, subjct and fields.
Privileged is an isomorphic authorization library for restricting resources by action, subjct and fields.
It's designed to be incrementally adoptable and can easily scale between a simple claim based and fully featured
subject and action based authorization. It makes it easy to manage and share permissions across UI components,
API services, and database queries.

Inspired by [CASL](https://github.com/stalniy/casl)

[![Build Project](https://github.com/loresoft/Authorizone/actions/workflows/dotnet.yml/badge.svg)](https://github.com/loresoft/Authorizone/actions/workflows/dotnet.yml)
[![Build Project](https://github.com/loresoft/Privileged/actions/workflows/dotnet.yml/badge.svg)](https://github.com/loresoft/Privileged/actions/workflows/dotnet.yml)

[![Coverage Status](https://coveralls.io/repos/github/loresoft/Authorizone/badge.svg?branch=main)](https://coveralls.io/github/loresoft/Authorizone?branch=main)
[![Coverage Status](https://coveralls.io/repos/github/loresoft/Privileged/badge.svg?branch=main)](https://coveralls.io/github/loresoft/Privileged?branch=main)

[![Authorizone](https://img.shields.io/nuget/v/Authorizone.svg)](https://www.nuget.org/packages/Authorizone/)
[![Privileged](https://img.shields.io/nuget/v/Privileged.svg)](https://www.nuget.org/packages/Privileged/)

## Features

Expand All @@ -21,7 +21,7 @@ Inspired by [CASL](https://github.com/stalniy/casl)

## General

Authorizone operates on rules for what a user can actually do in the application. A rule itself depends on the 3 parameters:
Privileged operates on rules for what a user can actually do in the application. A rule itself depends on the 3 parameters:

1. **Action** Describes what user can actually do in the app. User action is a word (usually a verb) which depends on the business logic (e.g., `update`, `read`). Very often it will be a list of words from CRUD - `create`, `read`, `update` and `delete`.
2. **Subject** The subject which you want to check user action on. Usually this is a business (or domain) entity name (e.g., `Subscription`, `Post`, `User`).
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<NeutralLanguage>en-US</NeutralLanguage>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>authorization;auth</PackageTags>
<PackageProjectUrl>https://github.com/loresoft/Authorizone</PackageProjectUrl>
<PackageProjectUrl>https://github.com/loresoft/Privileged</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/loresoft/Authorizone</RepositoryUrl>
<RepositoryUrl>https://github.com/loresoft/Privileged</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Privileged/AuthorizationActions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Authorizone;
namespace Privileged;

public static class AuthorizationActions
{
Expand Down
2 changes: 1 addition & 1 deletion src/Privileged/AuthorizationBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Authorizone;
namespace Privileged;

public class AuthorizationBuilder
{
Expand Down
2 changes: 1 addition & 1 deletion src/Privileged/AuthorizationBuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Authorizone;
namespace Privileged;

public static class AuthorizationBuilderExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion src/Privileged/AuthorizationContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Authorizone;
namespace Privileged;

public class AuthorizationContext(IReadOnlyCollection<AuthorizationRule> rules, StringComparer? stringComparer = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Privileged/AuthorizationRule.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Authorizone;
namespace Privileged;

public record AuthorizationRule(
string Action,
Expand Down
2 changes: 1 addition & 1 deletion src/Privileged/AuthorizationSubjects.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Authorizone;
namespace Privileged;

public static class AuthorizationSubjects
{
Expand Down
2 changes: 1 addition & 1 deletion test/Privileged.Tests/AuthorizationContextTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Authorizone.Tests;
namespace Privileged.Tests;

public class AuthorizationContextTests
{
Expand Down
2 changes: 1 addition & 1 deletion test/Privileged.Tests/Privileged.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Authorizone\Authorizone.csproj" />
<ProjectReference Include="..\..\src\Privileged\Privileged.csproj" />
</ItemGroup>

</Project>

0 comments on commit acfdbba

Please sign in to comment.