2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-13 21:17:33 +00:00

Add 2fa_urls

This commit is contained in:
Matthias Mair
2024-06-04 23:12:31 +02:00
parent 2b8e8e52a8
commit c67499e555
2 changed files with 10 additions and 1 deletions
@@ -1,11 +1,14 @@
"""InvenTree API version information.""" """InvenTree API version information."""
# InvenTree API version # 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.""" """Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """ 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 v205 - 2024-06-03 : https://github.com/inventree/InvenTree/pull/7284
- Added model_type and model_id fields to the "NotesImage" serializer - Added model_type and model_id fields to the "NotesImage" serializer
@@ -183,6 +183,12 @@ class SocialProviderListView(ListAPI):
'password_forgotten_enabled': InvenTreeSetting.get_setting( 'password_forgotten_enabled': InvenTreeSetting.get_setting(
'LOGIN_ENABLE_PWD_FORGOT' '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) return Response(data)