diff --git a/.github/workflows/buildwindowsimage.yml b/.github/workflows/buildwindowsimage.yml index 13816f66..99e70ec8 100644 --- a/.github/workflows/buildwindowsimage.yml +++ b/.github/workflows/buildwindowsimage.yml @@ -15,6 +15,11 @@ jobs: steps: - uses: actions/checkout@v2.3.4 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 + with: + dotnet-version: '9.0.x' + - name: Get the version id: get_version uses: battila7/get-version-action@v2 diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index f1bd3541..9c6fb0d2 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -14,6 +14,11 @@ jobs: steps: - uses: actions/checkout@v2.3.4 + + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 + with: + dotnet-version: '9.0.x' - name: Get the version id: get_version diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index 97ba47db..8f79a9e3 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -16,6 +16,11 @@ jobs: steps: - uses: actions/checkout@v2.3.4 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 + with: + dotnet-version: '9.0.x' + - name: Set Up Variables run: echo "action_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_ENV @@ -35,12 +40,7 @@ jobs: openssl pkcs12 -in "$certPath" -out temp.pem -nodes -password "pass:$password" sudo cp temp.pem /usr/local/share/ca-certificates/aspnetapp-web-api.crt - sudo update-ca-certificates - - - name: Install NET 8 - uses: actions/setup-dotnet@v2 - with: - dotnet-version: '8.0.x' + sudo update-ca-certificates - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} @@ -107,11 +107,11 @@ jobs: openssl pkcs12 -in "$certPath" -out temp.pem -nodes -password "pass:$password" sudo cp temp.pem /usr/local/share/ca-certificates/aspnetapp-web-api.crt sudo update-ca-certificates - - - name: Install NET 8 - uses: actions/setup-dotnet@v2 + + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} @@ -176,11 +176,11 @@ jobs: sudo cp temp.pem /usr/local/share/ca-certificates/aspnetapp-web-api.crt sudo update-ca-certificates - - name: Install NET 8 - uses: actions/setup-dotnet@v2 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 with: - dotnet-version: '8.0.x' - + dotnet-version: '9.0.x' + - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} @@ -248,11 +248,11 @@ jobs: openssl pkcs12 -in "$certPath" -out temp.pem -nodes -password "pass:$password" sudo cp temp.pem /usr/local/share/ca-certificates/aspnetapp-web-api.crt sudo update-ca-certificates - - - name: Install NET 8 - uses: actions/setup-dotnet@v2 + + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} @@ -298,10 +298,10 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - - name: Install NET 8 - uses: actions/setup-dotnet@v2 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 663a334a..c07fb823 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -16,6 +16,11 @@ jobs: steps: - uses: actions/checkout@v2.3.4 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 + with: + dotnet-version: '9.0.x' + - name: Trust Root Certificate run: | certPath="$GITHUB_WORKSPACE/Certificates/aspnetapp-root-cert.pfx" @@ -33,11 +38,6 @@ jobs: openssl pkcs12 -in "$certPath" -out temp.pem -nodes -password "pass:$password" sudo cp temp.pem /usr/local/share/ca-certificates/aspnetapp-web-api.crt sudo update-ca-certificates - - - name: Install NET 8 - uses: actions/setup-dotnet@v2 - with: - dotnet-version: '8.0.x' - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} @@ -93,10 +93,10 @@ jobs: sudo cp temp.pem /usr/local/share/ca-certificates/aspnetapp-web-api.crt sudo update-ca-certificates - - name: Install NET 8 - uses: actions/setup-dotnet@v2 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} @@ -150,10 +150,10 @@ jobs: sudo cp temp.pem /usr/local/share/ca-certificates/aspnetapp-web-api.crt sudo update-ca-certificates - - name: Install NET 8 - uses: actions/setup-dotnet@v2 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} @@ -207,10 +207,10 @@ jobs: sudo cp temp.pem /usr/local/share/ca-certificates/aspnetapp-web-api.crt sudo update-ca-certificates - - name: Install NET 8 - uses: actions/setup-dotnet@v2 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} diff --git a/.github/workflows/pushtomaster.yml b/.github/workflows/pushtomaster.yml index 241f575d..e92f5770 100644 --- a/.github/workflows/pushtomaster.yml +++ b/.github/workflows/pushtomaster.yml @@ -19,6 +19,11 @@ jobs: with: fetch-depth: 0 + - name: Install NET 9 + uses: actions/setup-dotnet@v4.0.1 + with: + dotnet-version: '9.0.x' + - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} diff --git a/SecurityService.BusinessLogic/RequestHandlers/UserRequestHandler.cs b/SecurityService.BusinessLogic/RequestHandlers/UserRequestHandler.cs index 78a4ac1d..ca6b84f7 100644 --- a/SecurityService.BusinessLogic/RequestHandlers/UserRequestHandler.cs +++ b/SecurityService.BusinessLogic/RequestHandlers/UserRequestHandler.cs @@ -253,14 +253,16 @@ public async Task>> Handle(SecurityServiceQueries.GetUs public async Task> Handle(SecurityServiceCommands.ChangeUserPasswordCommand command, CancellationToken cancellationToken){ + //Logger.LogWarning("In Handle ChangeUserPasswordCommand"); // Find the user based on the user name passed in ApplicationUser user = await this.UserManager.FindByNameAsync(command.UserName); if (user == null){ + //Logger.LogWarning("In Handle ChangeUserPasswordCommand - user is null"); // this prevents giving away info to a potential hacker... return Result.NotFound(); } - + //Logger.LogWarning("In Handle ChangeUserPasswordCommand - user is not null"); IdentityResult result = await this.UserManager.ChangePasswordAsync(user, command.CurrentPassword, command.NewPassword); @@ -275,10 +277,12 @@ public async Task> Handle(SecurityServiceComman return Result.Failure($"Errors during password change for user [{command.UserName} and Client [{command.ClientId}]"); } + //Logger.LogWarning("In Handle ChangeUserPasswordCommand - password changed"); // build the redirect uri Client client = await this.ConfigurationDbContext.Clients.SingleOrDefaultAsync(c => c.ClientId == command.ClientId, cancellationToken:cancellationToken); if (client == null){ + //Logger.LogWarning("In Handle ChangeUserPasswordCommand - client not found"); Logger.LogInformation($"Client not found for clientId {command.ClientId}"); return Result.Invalid($"Client not found for clientId {command.ClientId}"); } diff --git a/SecurityService.BusinessLogic/SecurityService.BusinessLogic.csproj b/SecurityService.BusinessLogic/SecurityService.BusinessLogic.csproj index a94695e3..2cc69031 100644 --- a/SecurityService.BusinessLogic/SecurityService.BusinessLogic.csproj +++ b/SecurityService.BusinessLogic/SecurityService.BusinessLogic.csproj @@ -1,23 +1,23 @@  - net8.0 + net9.0 - - - - - - + + + + + + - - - - - - + + + + + + diff --git a/SecurityService.Client/SecurityService.Client.csproj b/SecurityService.Client/SecurityService.Client.csproj index 0ebcd177..3c17bf36 100644 --- a/SecurityService.Client/SecurityService.Client.csproj +++ b/SecurityService.Client/SecurityService.Client.csproj @@ -1,13 +1,13 @@  - net8.0 + net9.0 $(TargetsForTfmSpecificBuildOutput);IncludeP2PAssets - - + + diff --git a/SecurityService.DataTransferObjects/SecurityService.DataTransferObjects.csproj b/SecurityService.DataTransferObjects/SecurityService.DataTransferObjects.csproj index f4313680..9e34a9b0 100644 --- a/SecurityService.DataTransferObjects/SecurityService.DataTransferObjects.csproj +++ b/SecurityService.DataTransferObjects/SecurityService.DataTransferObjects.csproj @@ -1,7 +1,7 @@  - net8.0;netstandard2.0 + net9.0 diff --git a/SecurityService.Database/SecurityService.Database.csproj b/SecurityService.Database/SecurityService.Database.csproj index 3a46379f..9ae71e04 100644 --- a/SecurityService.Database/SecurityService.Database.csproj +++ b/SecurityService.Database/SecurityService.Database.csproj @@ -1,28 +1,28 @@  - net8.0 + net9.0 None - - - - - - - + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/SecurityService.IntegrationTesting.Helpers/SecurityService.IntegrationTesting.Helpers.csproj b/SecurityService.IntegrationTesting.Helpers/SecurityService.IntegrationTesting.Helpers.csproj index 45e365d5..df5a962a 100644 --- a/SecurityService.IntegrationTesting.Helpers/SecurityService.IntegrationTesting.Helpers.csproj +++ b/SecurityService.IntegrationTesting.Helpers/SecurityService.IntegrationTesting.Helpers.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 enable enable @@ -18,8 +18,8 @@ - - + +