diff --git a/src/backend/InvenTree/InvenTree/api_version.py b/src/backend/InvenTree/InvenTree/api_version.py index be2e321f6e..921aac7903 100644 --- a/src/backend/InvenTree/InvenTree/api_version.py +++ b/src/backend/InvenTree/InvenTree/api_version.py @@ -1,11 +1,14 @@ """InvenTree API version information.""" # InvenTree API version -INVENTREE_API_VERSION = 205 +INVENTREE_API_VERSION = 206 """Increment this API version number whenever there is a significant change to the API that any clients need to know about.""" INVENTREE_API_TEXT = """ +v206 - 2024-06-04 : ### + - Added 2fa urls to the SSO provider API endpoint + v205 - 2024-06-03 : https://github.com/inventree/InvenTree/pull/7284 - Added model_type and model_id fields to the "NotesImage" serializer diff --git a/src/backend/InvenTree/InvenTree/social_auth_urls.py b/src/backend/InvenTree/InvenTree/social_auth_urls.py index 79f6bed08b..9fb5aaf781 100644 --- a/src/backend/InvenTree/InvenTree/social_auth_urls.py +++ b/src/backend/InvenTree/InvenTree/social_auth_urls.py @@ -183,6 +183,12 @@ class SocialProviderListView(ListAPI): 'password_forgotten_enabled': InvenTreeSetting.get_setting( 'LOGIN_ENABLE_PWD_FORGOT' ), + '2fa_urls': { + 'setup': request.build_absolute_uri('two-factor-setup'), + 'authenticate': request.build_absolute_uri('two-factor-authenticate'), + 'backup_tokens': request.build_absolute_uri('two-factor-backup-tokens'), + 'remove': request.build_absolute_uri('two-factor-remove'), + }, } return Response(data)