Skip to content

Add client for fetching token from Duo Workflow Service

Jessie Young requested to merge jy-duo-workflow-service-client into master

What does this MR do and why?

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Run Gitlab rails server via GDK
  2. If you are not running GitLab Rails on localhost:3000, update DUO_WORKFLOW_AUTH__OIDC_GITLAB_URL value in the .env file on your Duo Workflow Service
  3. Update .env in the Duo Workflow service so that DUO_WORKFLOW_AUTH__ENABLED=true
  4. Run Duo Workflow Service server (poetry run python -m duo_workflow_service.server)
  5. If you are not running the Duo Workflow Service at localhost:50052, pass in a different localhost value in the rails console command below.
  6. In gitlab rails console, run: Ai::DuoWorkflow::DuoWorkflowService::Client.new(duo_workflow_service_url: "localhost:50052", current_user: User.first).generate_token 1.The returned token can be used to authenticate requests to the Duo Workflow Service
Edited by Jessie Young

Merge request reports

Loading