mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 03:30:02 -03:30
Fix social auth callback URLs to depend on TOWER_URL_BASE so they are updated when it changes.
This commit is contained in:
@@ -510,6 +510,7 @@ register(
|
|||||||
'callback URL for your application.'),
|
'callback URL for your application.'),
|
||||||
category=_('Google OAuth2'),
|
category=_('Google OAuth2'),
|
||||||
category_slug='google-oauth2',
|
category_slug='google-oauth2',
|
||||||
|
depends_on=['TOWER_URL_BASE'],
|
||||||
)
|
)
|
||||||
|
|
||||||
register(
|
register(
|
||||||
@@ -600,6 +601,7 @@ register(
|
|||||||
'as the callback URL for your application.'),
|
'as the callback URL for your application.'),
|
||||||
category=_('GitHub OAuth2'),
|
category=_('GitHub OAuth2'),
|
||||||
category_slug='github',
|
category_slug='github',
|
||||||
|
depends_on=['TOWER_URL_BASE'],
|
||||||
)
|
)
|
||||||
|
|
||||||
register(
|
register(
|
||||||
@@ -662,6 +664,7 @@ register(
|
|||||||
'Provide this URL as the callback URL for your application.'),
|
'Provide this URL as the callback URL for your application.'),
|
||||||
category=_('GitHub Organization OAuth2'),
|
category=_('GitHub Organization OAuth2'),
|
||||||
category_slug='github-org',
|
category_slug='github-org',
|
||||||
|
depends_on=['TOWER_URL_BASE'],
|
||||||
)
|
)
|
||||||
|
|
||||||
register(
|
register(
|
||||||
@@ -735,6 +738,7 @@ register(
|
|||||||
'Provide this URL as the callback URL for your application.'),
|
'Provide this URL as the callback URL for your application.'),
|
||||||
category=_('GitHub Team OAuth2'),
|
category=_('GitHub Team OAuth2'),
|
||||||
category_slug='github-team',
|
category_slug='github-team',
|
||||||
|
depends_on=['TOWER_URL_BASE'],
|
||||||
)
|
)
|
||||||
|
|
||||||
register(
|
register(
|
||||||
@@ -810,6 +814,7 @@ register(
|
|||||||
'and this callback URL for your application.'),
|
'and this callback URL for your application.'),
|
||||||
category=_('SAML'),
|
category=_('SAML'),
|
||||||
category_slug='saml',
|
category_slug='saml',
|
||||||
|
depends_on=['TOWER_URL_BASE'],
|
||||||
)
|
)
|
||||||
|
|
||||||
register(
|
register(
|
||||||
|
|||||||
Reference in New Issue
Block a user