Skip to content

Commit fa7633f

Browse files
authored
merge pull request #16 from vinder-io/refactor/change-project-name
refactor/change project name
2 parents 0755119 + 24dc7dc commit fa7633f

259 files changed

Lines changed: 477 additions & 473 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
# mongo database environment variables
2+
23
MONGO_INITDB_ROOT_USERNAME=admin
34
MONGO_INITDB_ROOT_PASSWORD=admin
4-
5-
# web application environment variables
6-
MONGO_CONNECTIONSTRING=mongodb://admin:admin@localhost:27017
7-
MONGO_DATABASENAME=identity
8-
9-
# web application admin credentials
10-
VINDER_IDENTITY_PROVIDER_ADMIN_USERNAME=admin
11-
VINDER_IDENTITY_PROVIDER_ADMIN_PASSWORD=admin

.github/workflows/publish-image-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
password: ${{ secrets.DOCKER_PASSWORD }}
2020

2121
- name: build docker image
22-
run: docker build -t vinderio/identity.provider:latest .
22+
run: docker build -t vinderio/federation:latest .
2323

2424
- name: push docker image
25-
run: docker push vinderio/identity.provider:latest
25+
run: docker push vinderio/federation:latest

.github/workflows/staging-pipeline.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# this pipeline deploys the application to the staging environment on every push to main branch
2-
# it uses FTP to upload the published files to the somee.com server
3-
41
# we stop the application by uploading an app_offline.htm file
52
# then we wait for a few seconds to let IIS unload the application and release file locks
63

@@ -27,7 +24,7 @@ jobs:
2724

2825
- name: publish application
2926
run: |
30-
dotnet publish Source/Vinder.Identity.WebApi \
27+
dotnet publish Source/Vinder.Federation.WebApi \
3128
-c Release \
3229
-r win-x64 \
3330
-o ./publish
@@ -44,8 +41,8 @@ jobs:
4441
- name: upload app_offline.htm
4542
run: |
4643
sudo apt-get install -y lftp
47-
lftp -u ${{ secrets.FTP_USER }},${{ secrets.FTP_PASSWORD }} vinder-io-identity-provider.somee.com <<EOF
48-
cd /www.vinder-io-identity-provider.somee.com/
44+
lftp -u ${{ secrets.FTP_USER }},${{ secrets.FTP_PASSWORD }} vinder-federation.somee.com <<EOF
45+
cd /www.vinder-federation.somee.com/
4946
put app_offline.htm
5047
quit
5148
EOF
@@ -55,13 +52,13 @@ jobs:
5552

5653
- name: deploy publish via FTP (no delete)
5754
run: |
58-
lftp -u ${{ secrets.FTP_USER }},${{ secrets.FTP_PASSWORD }} vinder-io-identity-provider.somee.com <<EOF
55+
lftp -u ${{ secrets.FTP_USER }},${{ secrets.FTP_PASSWORD }} vinder-federation.somee.com <<EOF
5956
set ftp:ssl-allow no
6057
set ftp:chmod false
6158
set mirror:set-permissions false
6259
set mirror:use-pget-n false
6360
64-
mirror -R ./publish /www.vinder-io-identity-provider.somee.com \
61+
mirror -R ./publish /www.vinder-federation.somee.com \
6562
--only-newer \
6663
--verbose
6764
@@ -70,8 +67,8 @@ jobs:
7067
7168
- name: remove app_offline.htm
7269
run: |
73-
lftp -u ${{ secrets.FTP_USER }},${{ secrets.FTP_PASSWORD }} vinder-io-identity-provider.somee.com <<EOF
74-
cd /www.vinder-io-identity-provider.somee.com/
70+
lftp -u ${{ secrets.FTP_USER }},${{ secrets.FTP_PASSWORD }} vinder-federation.somee.com <<EOF
71+
cd /www.vinder-federation.somee.com/
7572
rm app_offline.htm
7673
quit
7774
EOF

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
88
WORKDIR /src
99

1010
# copy project files to restore dependencies
11-
COPY ["Source/Vinder.Identity.WebApi/Vinder.Identity.WebApi.csproj", "Vinder.Identity.WebApi/"]
11+
COPY ["Source/Vinder.Federation.WebApi/Vinder.Federation.WebApi.csproj", "Vinder.Federation.WebApi/"]
1212

1313
# copy the entire solution 'n related projects
14-
COPY ["Vinder.Identity.sln", "./"]
14+
COPY ["Vinder.Federation.sln", "./"]
1515

1616
# restore dependencies for the project
17-
RUN dotnet restore "Vinder.Identity.WebApi/Vinder.Identity.WebApi.csproj"
17+
RUN dotnet restore "Vinder.Federation.WebApi/Vinder.Federation.WebApi.csproj"
1818

1919
# copy all source code into the container
2020
COPY Source/ ./Source/
2121

2222
# set working directory to the web project
23-
WORKDIR "/src/Source/Vinder.Identity.WebApi"
23+
WORKDIR "/src/Source/Vinder.Federation.WebApi"
2424

2525
# build in Release mode
26-
RUN dotnet build "Vinder.Identity.WebApi.csproj" -c Release -o /app/build
26+
RUN dotnet build "Vinder.Federation.WebApi.csproj" -c Release -o /app/build
2727

2828
# publish the project for production
2929
FROM build AS publish
30-
RUN dotnet publish "Vinder.Identity.WebApi.csproj" -c Release -o /app/publish /p:UseAppHost=false
30+
RUN dotnet publish "Vinder.Federation.WebApi.csproj" -c Release -o /app/publish /p:UseAppHost=false
3131

3232
# final image to run the app
3333
FROM base AS final
@@ -37,4 +37,4 @@ WORKDIR /app
3737
COPY --from=publish /app/publish .
3838

3939
# set the command to start the application
40-
ENTRYPOINT ["dotnet", "Vinder.Identity.WebApi.dll"]
40+
ENTRYPOINT ["dotnet", "Vinder.Federation.WebApi.dll"]

Source/Vinder.Identity.Application/Handlers/Group/AssignPermissionToGroupHandler.cs renamed to Source/Vinder.Federation.Application/Handlers/Group/AssignPermissionToGroupHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Vinder.Identity.Application.Handlers.Group;
1+
namespace Vinder.Federation.Application.Handlers.Group;
22

33
public sealed class AssignPermissionToGroupHandler(IGroupCollection groupCollection, IPermissionCollection permissionCollection) :
44
IMessageHandler<AssignGroupPermissionScheme, Result<GroupDetailsScheme>>

Source/Vinder.Identity.Application/Handlers/Group/FetchGroupsHandler.cs renamed to Source/Vinder.Federation.Application/Handlers/Group/FetchGroupsHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Vinder.Identity.Application.Handlers.Group;
1+
namespace Vinder.Federation.Application.Handlers.Group;
22

33
public sealed class FetchGroupsHandler(IGroupCollection collection) :
44
IMessageHandler<GroupsFetchParameters, Result<Pagination<GroupDetailsScheme>>>

Source/Vinder.Identity.Application/Handlers/Group/GroupCreationHandler.cs renamed to Source/Vinder.Federation.Application/Handlers/Group/GroupCreationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Vinder.Identity.Application.Handlers.Group;
1+
namespace Vinder.Federation.Application.Handlers.Group;
22

33
public sealed class GroupCreationHandler(IGroupCollection groupCollection, ITenantProvider tenantProvider) :
44
IMessageHandler<GroupCreationScheme, Result<GroupDetailsScheme>>

Source/Vinder.Identity.Application/Handlers/Group/GroupDeletionHandler.cs renamed to Source/Vinder.Federation.Application/Handlers/Group/GroupDeletionHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Vinder.Identity.Application.Handlers.Group;
1+
namespace Vinder.Federation.Application.Handlers.Group;
22

33
public sealed class GroupDeletionHandler(IGroupCollection collection) : IMessageHandler<GroupDeletionScheme, Result>
44
{

Source/Vinder.Identity.Application/Handlers/Group/GroupUpdateHandler.cs renamed to Source/Vinder.Federation.Application/Handlers/Group/GroupUpdateHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Vinder.Identity.Application.Handlers.Group;
1+
namespace Vinder.Federation.Application.Handlers.Group;
22

33
public sealed class GroupUpdateHandler(IGroupCollection collection) :
44
IMessageHandler<GroupUpdateScheme, Result<GroupDetailsScheme>>

Source/Vinder.Identity.Application/Handlers/Group/ListGroupAssignedPermissionsHandler.cs renamed to Source/Vinder.Federation.Application/Handlers/Group/ListGroupAssignedPermissionsHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Vinder.Identity.Application.Handlers.Group;
1+
namespace Vinder.Federation.Application.Handlers.Group;
22

33
public sealed class ListGroupAssignedPermissionsHandler(IGroupCollection collection) :
44
IMessageHandler<ListGroupAssignedPermissionsParameters, Result<IReadOnlyCollection<PermissionDetailsScheme>>>

0 commit comments

Comments
 (0)