跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 用一个小故事给萌新讲透 OAuth 的实现原理(解释放评论区)

发表于
你住在一个贼安全的小区,进出都要门禁卡。

某天,你出门了。恰好一个快递员来了,要送你的包裹 📦

他站在门口半天进不去,就去找保安了。

“保安大哥,我要送个包裹,但没有门禁卡进不去呀。”快递员说。

保安立马打电话给你:“有个快递员要送包裹,你同意他进来吗?”

你回答:“可以啊,让他放到公共楼层就行”

保安对快递员说:“住户同意了,这是临时通行证,你用这个进门,只能去公共楼层。”

快递员拿着通行证,顺利进门,把包裹放在公共楼层,离开的时候把通信证也揣兜里带走了。

第二天,快递员又来了,发现通行证还没过期,就直接进小区,把包裹放在公共楼层。

第三天,他再次来送包裹,发现通行证过期了,又去找保安。

“保安大哥,我的通行证过期了,能给我一张新的吗?”

保安查了记录,说:“好的,这是新的通行证,你还是只能进公共楼层。”

这次保安没有再联系你,因为你之前已经同意了。

快递员拿着新的通行证,顺利进门,完成了投递。

Featured Replies

没有可显示的帖子

创建帐户或登录来提出意见

Account

导航

搜索

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.