Skip to content

Address upcoming GitHub API deprecations #5970

Closed

Description

@ryanpetrello
ISSUE TYPE
  • Bug Report
SUMMARY

GitHub is deprecating certain types of API authentication: https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#authenticating-using-query-parameters

GitHub is deprecating authentication to the GitHub API using query parameters, such as using a access_token query parameter for OAuth user authentication or a client_id/client_secret query parameter for OAuth application authentication. All authentication to the GitHub API should be done using HTTP basic authentication.

ENVIRONMENT
  • AWX version: all
  • AWX install method: all
  • Ansible version: all
STEPS TO REPRODUCE

At the very least, we'll need to update to the latest social auth for GitHub SSO logins to continue to work. See:

python-social-auth/social-core#430
python-social-auth/social-core#428

@jbradberry will this have any side effects for your recent addition of GitHub webhook support?

Activity

  1. jbradberry commented on Feb 20, 2020

    @jbradberry
    Contributor

    @ryanpetrello I think, if I'm reading this right, that it is not an issue for the webhook support. We are using Basic Authentication with a personal access token.

  2. self-assigned this
    on Mar 25, 2020
  3. kdelee commented on Mar 26, 2020

    @kdelee
    Member

    @appuk assigned you since you have experience w/ the social auth testing w/ Github.

    I know that @ryanpetrello and @elyezer did some testing before merge. Might want to check with them about that.

  4. appuk commented on Mar 30, 2020

    @appuk
    Member

    Working as expected, hence closing the issue:
    Screen Shot 2020-03-30 at 12 01 31 PM
    Screen Shot 2020-03-30 at 11 41 27 AM
    Screen Shot 2020-03-30 at 11 54 54 AM

  5. ryanpetrello commented on Mar 30, 2020

    @ryanpetrello
    ContributorAuthor

    @appuk can we also verify that the other SSO integrations still work (to make sure our upgraded library version doesn't affect them)?

  6. appuk commented on Mar 30, 2020

    @appuk
    Member

    will do 👍

  7. appuk commented on Mar 30, 2020

    @appuk
    Member

    Google OAuth:
    Screen Shot 2020-03-30 at 3 31 08 PM
    Screen Shot 2020-03-30 at 6 01 04 PM

    Screen Shot 2020-03-30 at 6 05 03 PM

    LDAP:
    Screen Shot 2020-03-30 at 5 58 41 PM

    Couldn't verify the Azure auth since we do not have the shared account anymore

  8. ryanpetrello commented on Mar 30, 2020

    @ryanpetrello
    ContributorAuthor

    Awesome, thank you @appuk 🙏!

  9. jomach commented on Jul 21, 2020

    @jomach

    How can I login to awx having a app token ? Like the token that comes from: POSTs https://api.github.com/app/installations/<installation_id>/access_tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions