Skip to content

fix(dev): use authn compatibility login flow#191

Open
bourgeoa wants to merge 2 commits into
stagingfrom
uvdsl
Open

fix(dev): use authn compatibility login flow#191
bourgeoa wants to merge 2 commits into
stagingfrom
uvdsl

Conversation

@bourgeoa

Copy link
Copy Markdown
Contributor

Replace direct authSession.handleIncomingRedirect usage with authn.checkUser in the dev entrypoint.\nUse a session-shape-safe logged-in check so both legacy and uvdsl-backed sessions work.

Replace direct authSession.handleIncomingRedirect usage with authn.checkUser in the dev entrypoint.\nUse a session-shape-safe logged-in check so both legacy and uvdsl-backed sessions work.
Copilot AI review requested due to automatic review settings May 23, 2026 21:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the dev entrypoint login finalization logic to use the authn compatibility flow, aiming to support both legacy and newer session shapes.

Changes:

  • Replaced authSession.handleIncomingRedirect() with authn.checkUser() in the dev login flow.
  • Added a “session-shape-safe” logged-in check using multiple possible session fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dev/index.js Outdated
Comment on lines 13 to 18
await authn.checkUser()
const session = authSession
if (session.info.isLoggedIn) {
const isLoggedIn = session?.info?.isLoggedIn ?? session?.isActive ?? Boolean(session?.webId)
if (isLoggedIn) {
// Update the page with the status.
webId.innerHTML = 'Logged in as: ' + authn.currentUser().uri

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@bourgeoa this needs more work

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

resoved with 74e7aaa

@timea-solid timea-solid moved this to In progress in SolidOS NLNet UI May 26, 2026
@bourgeoa bourgeoa moved this from In progress to In review in SolidOS NLNet UI Jun 10, 2026
@bourgeoa bourgeoa moved this from In review to Ready in SolidOS NLNet UI Jun 10, 2026
@bourgeoa bourgeoa moved this from Ready to In review in SolidOS NLNet UI Jun 10, 2026
@timea-solid timea-solid moved this from In review to In progress in SolidOS NLNet UI Jun 12, 2026
@bourgeoa bourgeoa changed the base branch from main to staging June 13, 2026 18:01
@bourgeoa bourgeoa requested a review from timea-solid June 13, 2026 18:01
@bourgeoa bourgeoa moved this from In progress to In review in SolidOS NLNet UI Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

3 participants