Skip to content

(feat): Auth for admin panel#185

Merged
bran0h merged 9 commits intofeature/manage-memosfrom
feat/admin-auth
Mar 5, 2025
Merged

(feat): Auth for admin panel#185
bran0h merged 9 commits intofeature/manage-memosfrom
feat/admin-auth

Conversation

@vikiival
Copy link
Copy Markdown
Collaborator

@vikiival vikiival commented Feb 28, 2025

Context

Adds ability to authorize yourself with your Polkadot wallet.
Useful for protected routes in the admin panel.

Note

Before merge we need to setup proper JWT secret :)

AdminAuth.mov
  • ➕ @talisman/siws
  • feat: add token management to account store
  • feat: add admin modal trigger to navigation for selected accounts without a token
  • feat: add admin modal component for account management and token signing
  • feat: add admin mode confirmation messages to localization
  • feat: add nonce generation and cookie setting for SIWS initialization
  • feat: implement SIWS verification endpoint with JWT token generation
  • feat: add JWT authentication to drop API endpoint

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dotpoap ❌ Failed (Inspect) Feb 28, 2025 7:31pm

Comment thread components/layout/nav.vue Outdated
}
};

const { open, close: _closeAdminModal } = useModal({
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Rename please to openModal

Comment thread components/modals/admin-modal.vue Outdated
const url = useRequestURL();

const proceed = async () => {
logger.info("proceed");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove log

@bran0h bran0h merged commit 6aac52c into feature/manage-memos Mar 5, 2025
@bran0h bran0h deleted the feat/admin-auth branch March 5, 2025 15:38
bran0h added a commit that referenced this pull request Mar 6, 2025
This reverts commit 6aac52c, reversing
changes made to f4cf3b8.
@vikiival vikiival restored the feat/admin-auth branch March 6, 2025 10:41
@vikiival vikiival deleted the feat/admin-auth branch October 15, 2025 09:25
@vikiival vikiival restored the feat/admin-auth branch October 15, 2025 09:25
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.

2 participants