<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nchan_authorize_request on 戲中話</title><link>https://blog.iphpo.com/tags/nchan_authorize_request/</link><description>Recent content in nchan_authorize_request on 戲中話</description><generator>Hugo</generator><language>zh-tw</language><managingEditor>herb09638@gmail.com (Herb)</managingEditor><webMaster>herb09638@gmail.com (Herb)</webMaster><lastBuildDate>Mon, 09 Apr 2018 08:00:00 +0800</lastBuildDate><atom:link href="https://blog.iphpo.com/tags/nchan_authorize_request/index.xml" rel="self" type="application/rss+xml"/><item><title>Nchan - 訂閱與發佈時的驗證</title><link>https://blog.iphpo.com/blog/2018/04/nchan-%E8%A8%82%E9%96%B1%E8%88%87%E7%99%BC%E4%BD%88%E6%99%82%E7%9A%84%E9%A9%97%E8%AD%89/</link><pubDate>Mon, 09 Apr 2018 08:00:00 +0800</pubDate><author>herb09638@gmail.com (Herb)</author><guid>https://blog.iphpo.com/blog/2018/04/nchan-%E8%A8%82%E9%96%B1%E8%88%87%E7%99%BC%E4%BD%88%E6%99%82%E7%9A%84%E9%A9%97%E8%AD%89/</guid><description>&lt;h1 id="訂閱與發佈時的驗證"&gt;訂閱與發佈時的驗證&lt;/h1&gt;
&lt;p&gt;這是一個滿重要的應用，想像一個場景，在聊天室裡，每個人有自己的channel id，如果沒有經過身份驗證，任何一個人都可以訂閱別人的channel，代表大家的聊天訊息會被監聽，或是沒有經過驗證，就可以隨意發送訊息給任意的人，這都是很危險的情況。&lt;/p&gt;
&lt;p&gt;在Nchan裡它提供了&lt;code&gt;nchan_authorize_request&lt;/code&gt;的設定，這不管是訂閱的路徑還是發佈的路徑都可以使用。&lt;/p&gt;</description></item></channel></rss>