ansible/awx

Enable use of a cookiejar by awxkit

Open

#9,709 opened on Mar 25, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (3,333 forks)batch import
component:clihelp wantedtype:enhancement

Repository metrics

Stars
 (13,071 stars)
PR merge metrics
 (Avg merge 24d 6h) (30 merged PRs in 30d)

Description

ISSUE TYPE
  • Feature Idea
SUMMARY

2FA is required for accessing the network where our AWX is located. If the MFA portal is navigated through the browser, then we have a session token in the browser cookiejar and can access the AWX UI or API browser, log in, and use it. In order to use the AWXKIT CLI, we would need to access that cookiejar.

So I request that the awx cli add support for the following parameters:

--cookie "TOKEN=Onsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfY"

--cookie-jar /path/to/cookies.txt

The cookie-jar should be a "standard" Netscape cookiejar or whatever format is most compatible.

Contributor guide