This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
Added ability to generate login links for a user. #9054
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
In ProfileMenu, there's a new button to generate a login link for the current user. This should help when logging into multiple devices for multi-camera purposes.
🤖 Generated by Copilot at 5ea0f77
This pull request adds a feature to generate and copy a login link for a user account in the client-core package, using a new service and a new hook in the server-core package. It also simplifies an import and updates the translations in the user.json file. The affected files are
ProfileMenu.tsx
,AuthService.ts
,login-token.class.ts
,login-token.hooks.ts
, anduser.json
.References
closes #insert number here
Explanation
🤖 Generated by Copilot at 5ea0f77
config
object andloginTokenPath
constant to access server URL and login-token service (link, link)loginLink
hookstate variable to store generated login link (link)createLoginLink
function to callAuthService.createLoginToken
method and setloginLink
variable (link)createLoginLink
function (link)loginLink
variable (link)createLoginToken
method toAuthService
class to create login token using login-token service (link)KnexAdapterParams
type tologin-token.class.ts
and remove redundant import (link, link)login-token.hooks.ts
to check identity provider and set data fields for login token creation (link, link, link, link)🤖 Generated by Copilot at 5ea0f77
QA Steps
List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.
Checklist