Skip to content

feat: hide auth details from listNetwork and mint self-signed token server-side#1872

Merged
mjuchli-da merged 8 commits into
mainfrom
mjuchli/list-networks-restricted
May 27, 2026
Merged

feat: hide auth details from listNetwork and mint self-signed token server-side#1872
mjuchli-da merged 8 commits into
mainfrom
mjuchli/list-networks-restricted

Conversation

@mjuchli-da
Copy link
Copy Markdown
Contributor

@mjuchli-da mjuchli-da commented May 22, 2026

Closes #1802

Since we want to hide sensitive information such as the clientSecret to be exposed via the API, we need to handle the self-signed login server-side. This PR therefore introduces a new endpoint selfSignedAccessToken to issue an access token.

In a follow-up, one could think of combining this call with the creation of a Session (currently the workflow is: selfSignedAccessToken + addSession) and return the session object to the frontend.

The absence of the clientSecret also implies that the self-signed login
can no longer be done on the frontend. Instead, the backend now must
mint a self-signed token.

Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
@mjuchli-da mjuchli-da self-assigned this May 22, 2026
@mjuchli-da mjuchli-da marked this pull request as draft May 22, 2026 16:52
Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
@mjuchli-da mjuchli-da marked this pull request as ready for review May 26, 2026 09:05
mjuchli-da and others added 3 commits May 26, 2026 13:11
Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
@mjuchli-da mjuchli-da requested a review from alexmatson-da May 26, 2026 12:07
Copy link
Copy Markdown
Contributor

@alexmatson-da alexmatson-da left a comment

Choose a reason for hiding this comment

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

nice!

@mjuchli-da mjuchli-da merged commit 1c9b4bb into main May 27, 2026
27 checks passed
@mjuchli-da mjuchli-da deleted the mjuchli/list-networks-restricted branch May 27, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove auth details from listNetworks response

2 participants