diff --git a/.github/workflows/production-deploy-pipeline,yml b/.github/workflows/production-deploy-pipeline,yml new file mode 100644 index 0000000..07e4b9e --- /dev/null +++ b/.github/workflows/production-deploy-pipeline,yml @@ -0,0 +1,38 @@ +name: workflow — trigger production deployment + +on: + push: + branches: [master] + +jobs: + quality-assurance: + uses: ./.github/workflows/reusable-quality-assurance.yml + with: + service_path: Applications/Backend + + deploy: + needs: quality-assurance + runs-on: ubuntu-latest + + defaults: + run: + working-directory: Applications/Backend + + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: build docker image + run: docker build -t httpsrichardy/federation:latest . + + - name: login docker hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: push docker image + run: docker push httpsrichardy/federation:latest + + - name: deploy webhook + run: curl -X POST ${{ secrets.DEPLOY_WEBHOOK_URL }} \ No newline at end of file diff --git a/Applications/Backend/Source/HttpsRichardy.Federation.Application/Contracts/IAuthorizationFlowHandler.cs b/Applications/Backend/Source/HttpsRichardy.Federation.Application/Contracts/IAuthorizationFlowHandler.cs index 74e4d4f..43d6165 100644 --- a/Applications/Backend/Source/HttpsRichardy.Federation.Application/Contracts/IAuthorizationFlowHandler.cs +++ b/Applications/Backend/Source/HttpsRichardy.Federation.Application/Contracts/IAuthorizationFlowHandler.cs @@ -4,6 +4,7 @@ public interface IAuthorizationFlowHandler { public Grant Grant { get; } + public Task> HandleAsync( ClientAuthenticationCredentials parameters, CancellationToken cancellation = default diff --git a/Packages/Federation.Sdk.Contracts/Source/Clients/IConnectClient.cs b/Packages/Federation.Sdk.Contracts/Source/Clients/IConnectClient.cs index ff2dc97..5639ceb 100644 --- a/Packages/Federation.Sdk.Contracts/Source/Clients/IConnectClient.cs +++ b/Packages/Federation.Sdk.Contracts/Source/Clients/IConnectClient.cs @@ -6,4 +6,7 @@ public Task> AuthenticateAsync( ClientAuthenticationCredentials credentials, CancellationToken cancellation = default ); + + + } \ No newline at end of file