-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
1 parent
9c70c40
commit 743e119
Showing
4 changed files
with
56 additions
and
57 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
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
95 changes: 47 additions & 48 deletions
95
src/WopiHost.FileSystemProvider/WopiHost.FileSystemProvider.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,54 +1,53 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<Description>WopiHost.FileSystemProvider Class Library</Description> | ||
<Authors>Petr Svihlik</Authors> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<AssemblyName>WopiHost.FileSystemProvider</AssemblyName> | ||
<PackageId>WopiHost.FileSystemProvider</PackageId> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageTags>WOPI;MS-WOPI;MS-FSSHTTP;Office Online Server;Office Web Apps;Web Application Open Platform Interface</PackageTags> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>https://github.com/petrsvihlik/WopiHost.git</RepositoryUrl> | ||
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> | ||
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute> | ||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="" /> | ||
<None Include="..\..\img\logo.png" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<Description>WopiHost.FileSystemProvider Class Library</Description> | ||
<Authors>Petr Svihlik</Authors> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<AssemblyName>WopiHost.FileSystemProvider</AssemblyName> | ||
<PackageId>WopiHost.FileSystemProvider</PackageId> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageTags>WOPI;MS-WOPI;MS-FSSHTTP;Office Online Server;Office Web Apps;Web Application Open Platform Interface</PackageTags> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>https://github.com/petrsvihlik/WopiHost.git</RepositoryUrl> | ||
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> | ||
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute> | ||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" /> | ||
<PackageReference Include="Mono.Unix" Version="7.1.0-final.1.21458.1" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="8.0.2" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" /> | ||
<PackageReference Include="System.Diagnostics.FileVersionInfo" Version="4.3.0" /> | ||
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" /> | ||
<PackageReference Include="System.Security.Claims" Version="4.3.0" /> | ||
<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.3.1" /> | ||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="" /> | ||
<None Include="..\..\img\logo.png" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\WopiHost.Abstractions\WopiHost.Abstractions.csproj" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="8.0.2" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" /> | ||
<PackageReference Include="System.Diagnostics.FileVersionInfo" Version="4.3.0" /> | ||
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" /> | ||
<PackageReference Include="System.Security.Claims" Version="4.3.0" /> | ||
<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.3.1" /> | ||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\WopiHost.Abstractions\WopiHost.Abstractions.csproj" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,12 +43,12 @@ private SymmetricSecurityKey Key | |
new ClaimsPrincipal( | ||
new ClaimsIdentity(new List<Claim> | ||
{ | ||
new Claim(ClaimTypes.NameIdentifier, "12345"), | ||
new Claim(ClaimTypes.Name, "Anonymous"), | ||
new Claim(ClaimTypes.Email, "[email protected]"), | ||
new(ClaimTypes.NameIdentifier, "12345"), | ||
new(ClaimTypes.Name, "Anonymous"), | ||
new(ClaimTypes.Email, "[email protected]"), | ||
|
||
//TDOO: this needs to be done per file | ||
new Claim(WopiClaimTypes.USER_PERMISSIONS, (WopiUserPermissions.UserCanWrite | WopiUserPermissions.UserCanRename | WopiUserPermissions.UserCanAttend | WopiUserPermissions.UserCanPresent).ToString()) | ||
new(WopiClaimTypes.USER_PERMISSIONS, (WopiUserPermissions.UserCanWrite | WopiUserPermissions.UserCanRename | WopiUserPermissions.UserCanAttend | WopiUserPermissions.UserCanPresent).ToString()) | ||
}) | ||
) | ||
} | ||
|