Skip to content

Commit

Permalink
Merge pull request ansible#1086 from ryanpetrello/fix-enabled-sso-auth
Browse files Browse the repository at this point in the history
fix a bug which causes /api/v2/auth/ to list disabled auth backends
  • Loading branch information
ryanpetrello authored Jan 30, 2018
2 parents 20a999f + 81af34f commit c32c3db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions awx/sso/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,25 @@ class AuthenticationBackendsField(fields.StringListField):
('awx.sso.backends.RADIUSBackend', [
'RADIUS_SERVER',
]),
('social.backends.google.GoogleOAuth2', [
('social_core.backends.google.GoogleOAuth2', [
'SOCIAL_AUTH_GOOGLE_OAUTH2_KEY',
'SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET',
]),
('social.backends.github.GithubOAuth2', [
('social_core.backends.github.GithubOAuth2', [
'SOCIAL_AUTH_GITHUB_KEY',
'SOCIAL_AUTH_GITHUB_SECRET',
]),
('social.backends.github.GithubOrganizationOAuth2', [
('social_core.backends.github.GithubOrganizationOAuth2', [
'SOCIAL_AUTH_GITHUB_ORG_KEY',
'SOCIAL_AUTH_GITHUB_ORG_SECRET',
'SOCIAL_AUTH_GITHUB_ORG_NAME',
]),
('social.backends.github.GithubTeamOAuth2', [
('social_core.backends.github.GithubTeamOAuth2', [
'SOCIAL_AUTH_GITHUB_TEAM_KEY',
'SOCIAL_AUTH_GITHUB_TEAM_SECRET',
'SOCIAL_AUTH_GITHUB_TEAM_ID',
]),
('social.backends.azuread.AzureADOAuth2', [
('social_core.backends.azuread.AzureADOAuth2', [
'SOCIAL_AUTH_AZUREAD_OAUTH2_KEY',
'SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET',
]),
Expand Down

0 comments on commit c32c3db

Please sign in to comment.