Skip to content

Commit

Permalink
chores: migrate ABAC pkg (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasisnes authored Dec 2, 2024
1 parent 6369f06 commit e714b58
Show file tree
Hide file tree
Showing 75 changed files with 7,986 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/pr-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ name: "PR: Libs"
on:
pull_request: {}

env:
DIR: src/pkgs

jobs:
find-verticals:
uses: ./.github/workflows/_find-verticals.yml
with:
type: lib

ci:
name: CI
pr:
name: PR
runs-on: ubuntu-latest
needs: find-verticals
strategy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
with:
type: pkg

ci:
name: CI
pr:
name: PR
runs-on: ubuntu-latest
needs: find-verticals
strategy:
Expand Down
23 changes: 23 additions & 0 deletions Altinn.Authorization.sln
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{355D903B
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Altinn.Authorization.PEP.Tests", "src\pkgs\Altinn.Authorization.PEP\tests\Altinn.Authorization.PEP.Tests\Altinn.Authorization.PEP.Tests.csproj", "{6CD7B4EE-5AE6-4940-9EC9-3000E5F3E9D0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Altinn.Authorization.ABAC", "Altinn.Authorization.ABAC", "{E696D780-0F61-4E9C-B14B-EE23DBEE08B0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2560AB0B-D9C7-4732-8073-F716A7E6FCA1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Altinn.Authorization.ABAC", "src\pkgs\Altinn.Authorization.ABAC\src\Altinn.Authorization.ABAC\Altinn.Authorization.ABAC.csproj", "{2B4AE35C-05E8-4E0C-8E2B-4F7C3A4B8787}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{8115F64C-90F2-4066-8847-885F9A657B5E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Altinn.Authorization.ABAC.Tests", "src\pkgs\Altinn.Authorization.ABAC\tests\Altinn.Authorization.ABAC.Tests\Altinn.Authorization.ABAC.Tests.csproj", "{0256E9EA-F368-4BEA-A875-8DE3AE401A92}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -150,6 +160,14 @@ Global
{6CD7B4EE-5AE6-4940-9EC9-3000E5F3E9D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6CD7B4EE-5AE6-4940-9EC9-3000E5F3E9D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6CD7B4EE-5AE6-4940-9EC9-3000E5F3E9D0}.Release|Any CPU.Build.0 = Release|Any CPU
{2B4AE35C-05E8-4E0C-8E2B-4F7C3A4B8787}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B4AE35C-05E8-4E0C-8E2B-4F7C3A4B8787}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B4AE35C-05E8-4E0C-8E2B-4F7C3A4B8787}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B4AE35C-05E8-4E0C-8E2B-4F7C3A4B8787}.Release|Any CPU.Build.0 = Release|Any CPU
{0256E9EA-F368-4BEA-A875-8DE3AE401A92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0256E9EA-F368-4BEA-A875-8DE3AE401A92}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0256E9EA-F368-4BEA-A875-8DE3AE401A92}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0256E9EA-F368-4BEA-A875-8DE3AE401A92}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{E9D041A5-2AB6-45FD-8D24-EF552025539E} = {2891B160-9E46-42E5-95FF-08523A3192EF}
Expand Down Expand Up @@ -188,5 +206,10 @@ Global
{874B5EF3-BA5F-41F3-B97D-3EC6DF383BA2} = {A6AC78FE-D74C-4759-9467-087DFB70D5B6}
{355D903B-A1F0-4640-A528-2DB546AA76AE} = {B1E3ACAE-89C4-4693-95D0-A71DDFA728C7}
{6CD7B4EE-5AE6-4940-9EC9-3000E5F3E9D0} = {355D903B-A1F0-4640-A528-2DB546AA76AE}
{E696D780-0F61-4E9C-B14B-EE23DBEE08B0} = {CA323293-CA35-413A-8EE2-F33902239D11}
{2560AB0B-D9C7-4732-8073-F716A7E6FCA1} = {E696D780-0F61-4E9C-B14B-EE23DBEE08B0}
{2B4AE35C-05E8-4E0C-8E2B-4F7C3A4B8787} = {2560AB0B-D9C7-4732-8073-F716A7E6FCA1}
{8115F64C-90F2-4066-8847-885F9A657B5E} = {E696D780-0F61-4E9C-B14B-EE23DBEE08B0}
{0256E9EA-F368-4BEA-A875-8DE3AE401A92} = {8115F64C-90F2-4066-8847-885F9A657B5E}
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<PackageVersion Include="Microsoft.Extensions.Azure" Version="1.9.0" />
<PackageVersion Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Http" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="3.1.24" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
Expand Down
36 changes: 36 additions & 0 deletions src/pkgs/Altinn.Authorization.ABAC/Altinn.Authorization.ABAC.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{FE957A62-8B01-4434-B6BF-E0F05D87675E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Altinn.Authorization.ABAC", "src\Altinn.Authorization.ABAC\Altinn.Authorization.ABAC.csproj", "{E405027C-908E-4D09-8ED7-E04AD763B06B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{A168CA2A-C3B8-40E1-BE28-688D56C13300}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Altinn.Authorization.ABAC.Tests", "tests\Altinn.Authorization.ABAC.Tests\Altinn.Authorization.ABAC.Tests.csproj", "{124CB4D1-FD82-4BF7-975C-893394B62E92}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E405027C-908E-4D09-8ED7-E04AD763B06B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E405027C-908E-4D09-8ED7-E04AD763B06B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E405027C-908E-4D09-8ED7-E04AD763B06B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E405027C-908E-4D09-8ED7-E04AD763B06B}.Release|Any CPU.Build.0 = Release|Any CPU
{124CB4D1-FD82-4BF7-975C-893394B62E92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{124CB4D1-FD82-4BF7-975C-893394B62E92}.Debug|Any CPU.Build.0 = Debug|Any CPU
{124CB4D1-FD82-4BF7-975C-893394B62E92}.Release|Any CPU.ActiveCfg = Release|Any CPU
{124CB4D1-FD82-4BF7-975C-893394B62E92}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{E405027C-908E-4D09-8ED7-E04AD763B06B} = {FE957A62-8B01-4434-B6BF-E0F05D87675E}
{124CB4D1-FD82-4BF7-975C-893394B62E92} = {A168CA2A-C3B8-40E1-BE28-688D56C13300}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- NuGet package properties -->
<IsPackageProject>true</IsPackageProject>
<PackageId>Altinn.Authorization.ABAC</PackageId>
<PackageTags>Altinn;Authorization;ABAC</PackageTags>
<Description>
Attribute Based Access Control library for .Net Core implementing XACML 3.0 xml and JSON Profile.
See details at https://docs.altinn.studio.
</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="all" />
<PackageReference Include="DotNet.ReproducibleBuilds" PrivateAssets="all" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace Altinn.Authorization.ABAC.Constants
{
/// <summary>
/// Constants for XACML 3.0 Constants.
/// </summary>
public class Xacml30Constants
{
/// <summary>
/// Namespace constants.
/// </summary>
public sealed class NameSpaces
{
/// <summary>
/// Namespace for policy in XACML 3.0.
/// </summary>
public const string Policy = "urn:oasis:names:tc:xacml:3.0:core:schema:wd-17";
}
}
}
Loading

0 comments on commit e714b58

Please sign in to comment.