Add `2fa_urls`
This commit is contained in:
parent
2b8e8e52a8
commit
c67499e555
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue