Fix double authentication and Matrix-Signal bridge issues
Authentication fixes: - Removed auth.js from all HTML pages (was causing double prompts) - Removed .htaccess and .htpasswd files (redundant with Caddy) - Now using only Caddy basic auth: langmem / langmem2025 Signal bridge fixes: - Found Signal bridge bot: @signalbot:matrix.klas.chat - Created DM room between Claude user and bridge bot - Sent login command to register Claude with Signal bridge - Claude should now be able to bridge messages to Signal 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
AuthType Basic
|
||||
AuthName "LangMem Documentation - Restricted Access"
|
||||
AuthUserFile /home/klas/langmem/docs/.htpasswd
|
||||
Require valid-user
|
||||
@@ -1 +0,0 @@
|
||||
langmem:$apr1$MHaGZU8y$g4T2jHQLcypx6lJ9pnWY./
|
||||
@@ -6,7 +6,6 @@
|
||||
<title>API Documentation - LangMem Fact-Based Memory System</title>
|
||||
<meta name="description" content="Complete API documentation for LangMem fact-based memory system with individual fact extraction, deduplication, memory updates, and precision search capabilities.">
|
||||
<link rel="stylesheet" href="../assets/css/style.css">
|
||||
<script src="../auth.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-core.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.css">
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<title>Architecture - LangMem Documentation</title>
|
||||
<meta name="description" content="Detailed architecture documentation for LangMem showing system components, data flow, and integration patterns.">
|
||||
<link rel="stylesheet" href="../assets/css/style.css">
|
||||
<script src="../auth.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
32
docs/auth.js
32
docs/auth.js
@@ -1,32 +0,0 @@
|
||||
// Simple authentication for LangMem Documentation
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
// Check if user is already authenticated
|
||||
if (sessionStorage.getItem('langmem_authenticated') === 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
// Simple authentication check
|
||||
function authenticate() {
|
||||
const username = prompt('Username:');
|
||||
const password = prompt('Password:');
|
||||
|
||||
if (username === 'langmem' && password === 'langmem2025') {
|
||||
sessionStorage.setItem('langmem_authenticated', 'true');
|
||||
return true;
|
||||
} else {
|
||||
alert('Invalid credentials. Access denied.');
|
||||
window.location.href = 'about:blank';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Show authentication dialog
|
||||
if (!authenticate()) {
|
||||
// Block access if authentication fails
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.body.innerHTML = '<h1>Access Denied</h1><p>Authentication required.</p>';
|
||||
});
|
||||
}
|
||||
})();
|
||||
@@ -6,7 +6,6 @@
|
||||
<title>Implementation Guide - LangMem Documentation</title>
|
||||
<meta name="description" content="Step-by-step implementation guide for building the LangMem long-term memory system with detailed phases and instructions.">
|
||||
<link rel="stylesheet" href="../assets/css/style.css">
|
||||
<script src="../auth.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-core.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<title>LangMem - Fact-Based AI Memory System</title>
|
||||
<meta name="description" content="mem0-inspired fact-based memory system with individual fact extraction, deduplication, and AI-powered memory updates using Ollama, Neo4j, and PostgreSQL.">
|
||||
<link rel="stylesheet" href="assets/css/style.css">
|
||||
<script src="auth.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-core.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user