Repository navigation
Live Chat widget tag with verified signed-in users - #6
Merged
Merged
Conversation
{% hibira_live_chat %} renders the chat.hibira.io widget for
HIBIRA["LIVECHAT_WORKSPACE"]; with LIVECHAT_IDENTITY_SECRET the signed-in
user's ID is signed (HMAC-SHA256) so they chat as themselves.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SHtsCCKScUUX9khSrU2wij
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Danny · project thread
Brings Hibira Live Chat to Django, matching what
hibira-io/laravel-live-chatdoes for Laravel.{% hibira_live_chat %}renders thechat.hibira.io/w/v1.jswidget forHIBIRA["LIVECHAT_WORKSPACE"](envHIBIRA_LIVECHAT_WORKSPACE); optionscolor,lang,launcher=False. Renders nothing without a workspace.HIBIRA["LIVECHAT_IDENTITY_SECRET"], a signed-inrequest.userbecomes a verified visitor:data-user-id,data-user-hash= hex(HMAC-SHA256(secret, user.pk)), name and email. Values are HTML-escaped.django_hibira.livechat.identity(user)/user_hash()for SPAs (HibiraLiveChat.identify()).Testing
pytest: 64 passed (6 new: hash, anonymous, options, no secret, verified + escaping, env fallback).Generated by Claude Code