Skip to content

Use specific route for login validation instead of systeminfo #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marceloduplicati
Copy link
Contributor

Instead of using a call to /systeminfo which is resource intensive to test the authentication status, this would use a new backend route /auth/validate which has near zero resource cost.

The backend implementation is on PR 6123 meaning the ngclient would only work on with that once its merged and released, hence why this PR will remain in draft.

Instead of using a call to /systeminfo which is resource intensive to test the authentication status, this would use a new backend route /auth/validate which has near zero resource cost.

The backend implementation is on [PR 6123](duplicati/duplicati#6123) meaning the ngclient would only work on with that once its merged and released.
@marceloduplicati marceloduplicati added the enhancement New feature or request label Apr 3, 2025
@@ -31,7 +31,7 @@ export class AppAuthState {
})
.pipe(
take(1),
tap((res) => res.AccessToken && this.#token.set(res.AccessToken))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should infer the type automatically

@@ -48,7 +48,7 @@ export class AppAuthState {

return this.#dupServer.postApiV1AuthRefresh().pipe(
take(1),
tap((res) => res.AccessToken && this.#token.set(res.AccessToken))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants