ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.5k stars 3.34k forks source link

add OAuth2 config dump #15133

Open jessicamack opened 3 weeks ago

jessicamack commented 3 weeks ago
SUMMARY

dump_auth_config will now also dump OAuth2 config data.

ISSUE TYPE
COMPONENT NAME
AWX VERSION
awx: 24.2.1.
ADDITIONAL INFORMATION

if OAuth2 is not configured

    {
        "OAUTH2_missing_fields": [
            "KEY"
        ]
    }

if OAuth2 is configured

    {
        "type": "ansible_base.authentication.authenticator_plugins.google_oauth2",
        "name": "GOOGLE_OAUTH2",
        "enabled": true,
        "create_objects": true,
        "users_unique": false,
        "remove_users": true,
        "configuration": {
            "CALLBACK_URL": "https://towerhost/sso/complete/google-oauth2/",
            "KEY": "123456-gmabcdef.apps.googleusercontent.com",
            "SECRET": "test",
            "AUTH_EXTRA_ARGUMENTS": {
                "CUSTOM_PARAM": "custom field"
            }
        }
    }