Skip to content

Add service class to generate Duo Workflow token

Jessie Young requested to merge jy-duo-workflow-oauth-application-id 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. In rails console enable the Duo Workflow feature flag

    Feature.enable(:duo_workflow)
  2. Invoke the class

    Ai::DuoWorkflows::CreateOauthAccessTokenService.new(current_user: User.first).execute
  3. Response should be a ServiceResponse with an http status of ok. The response also should have a Doorkeeper OAuth token with an ai_workflows scope

Edited by Surabhi Suman

Merge request reports

Loading