|
78 | 78 | type: str
|
79 | 79 | required: False
|
80 | 80 | default: /etc/gitea/app.ini
|
| 81 | + custom_tenant_id: |
| 82 | + description: |
| 83 | + - Use custom Tenant ID for OAuth endpoints |
| 84 | + - Only used if I(type) is C(oauth) and I(state) is C(present). |
| 85 | + type: str |
| 86 | + required: False |
81 | 87 | custom_auth_url:
|
82 | 88 | description:
|
83 | 89 | - Use a custom Authorization URL (option for GitLab/GitHub).
|
@@ -332,6 +338,7 @@ def run_module():
|
332 | 338 | client_id=dict(type='str'),
|
333 | 339 | client_secret=dict(type='str', no_log=True),
|
334 | 340 | config=dict(type='str', default='/etc/gitea/app.ini'),
|
| 341 | + custom_tenant_id=dict(type='str'), |
335 | 342 | custom_auth_url=dict(type='str'),
|
336 | 343 | custom_email_url=dict(type='str'),
|
337 | 344 | custom_profile_url=dict(type='str'),
|
@@ -442,6 +449,8 @@ def run_module():
|
442 | 449 | cmd += ['--auto-discover-url', module.params['auto_discover_url']]
|
443 | 450 | if module.params['use_custom_urls']:
|
444 | 451 | cmd += ['--use-custom-urls', str(module.params['use_custom_urls'])]
|
| 452 | + if module.params['custom_tenant_id']: |
| 453 | + cmd += ['--custom-tenant-id', module.params['custom_tenant_id']] |
445 | 454 | if module.params['custom_auth_url']:
|
446 | 455 | cmd += ['--custom-auth-url', module.params['custom_auth_url']]
|
447 | 456 | if module.params['custom_token_url']:
|
|
0 commit comments