-
- Downloads
Add client for fetching token from Duo Workflow Service
* This will be used by the API endpoint being added in: !159569 * Using RPC added in gitlab-org/duo-workflow/duo-workflow-service!12 * Ruby client here is copied over from files added in gitlab-org/duo-workflow/duo-workflow-service!29 * To test: * Run Gitlab via GDK * Run Duo Workflow Service server (`poetry run python -m duo_workflow_service.server`) * In gitlab rails console, run: `Ai::DuoWorkflow::DuoWorkflowService::Client.new(duo_workflow_service_url: "localhost:50052", current_user: User.first).generate_token` * The returned token can be used to authenticate requests to the Duo Workflow Service * Fixes #471898
Showing
- .gitlab/ci/vendored-gems.gitlab-ci.yml 4 additions, 0 deletions.gitlab/ci/vendored-gems.gitlab-ci.yml
- Gemfile 5 additions, 0 deletionsGemfile
- Gemfile.lock 7 additions, 0 deletionsGemfile.lock
- ee/lib/ai/duo_workflow/duo_workflow_service/client.rb 61 additions, 0 deletionsee/lib/ai/duo_workflow/duo_workflow_service/client.rb
- ee/spec/lib/ai/duo_workflow/duo_workflow_service/client_spec.rb 66 additions, 0 deletions...c/lib/ai/duo_workflow/duo_workflow_service/client_spec.rb
- vendor/gems/gitlab-duo-workflow-service-client/.gitlab-ci.yml 5 additions, 0 deletions...or/gems/gitlab-duo-workflow-service-client/.gitlab-ci.yml
- vendor/gems/gitlab-duo-workflow-service-client/CODEOWNERS 1 addition, 0 deletionsvendor/gems/gitlab-duo-workflow-service-client/CODEOWNERS
- vendor/gems/gitlab-duo-workflow-service-client/GITLAB.md 5 additions, 0 deletionsvendor/gems/gitlab-duo-workflow-service-client/GITLAB.md
- vendor/gems/gitlab-duo-workflow-service-client/Gemfile 6 additions, 0 deletionsvendor/gems/gitlab-duo-workflow-service-client/Gemfile
- vendor/gems/gitlab-duo-workflow-service-client/Gemfile.lock 137 additions, 0 deletionsvendor/gems/gitlab-duo-workflow-service-client/Gemfile.lock
- vendor/gems/gitlab-duo-workflow-service-client/gitlab-duo-workflow-service-client.gemspec 24 additions, 0 deletions...service-client/gitlab-duo-workflow-service-client.gemspec
- vendor/gems/gitlab-duo-workflow-service-client/lib/gitlab/duo_workflow_service.rb 5 additions, 0 deletions...orkflow-service-client/lib/gitlab/duo_workflow_service.rb
- vendor/gems/gitlab-duo-workflow-service-client/lib/gitlab/duo_workflow_service/version.rb 7 additions, 0 deletions...service-client/lib/gitlab/duo_workflow_service/version.rb
- vendor/gems/gitlab-duo-workflow-service-client/lib/proto/contract_pb.rb 24 additions, 0 deletions...tlab-duo-workflow-service-client/lib/proto/contract_pb.rb
- vendor/gems/gitlab-duo-workflow-service-client/lib/proto/contract_services_pb.rb 23 additions, 0 deletions...workflow-service-client/lib/proto/contract_services_pb.rb
Loading
Please register or sign in to comment