• 沒有找到結果。

Web Box

N/A
N/A
Protected

Academic year: 2022

Share "Web Box"

Copied!
26
0
0

加載中.... (立即查看全文)

全文

(1)

Web Box

HSIN-I,WU 、 CHANG-NING,TSAI 、 JING-YEU,CHEN、 CHUNG-LIN,CHAN

(2)

OUTLINE

Motivation

Dropbox API

Chrome extension

(3)

Motivation

(4)

Motivation

在 dropbox 內聽音樂無法使用播放清單

(5)

Dropbox API

(6)

OAuth 2.0 是什麼?

(7)

OAuth 2.0

全名 The Oauth 2.0 Authorization Framework

(8)

OAuth 2.0

(9)

Old-School way

App 要求輸入帳號密碼並且聲明不會亂搞

自己要去信任 App

就算 App 沒有亂搞但是漏洞一堆,密碼被幹走一樣 GG

(10)

OAuth 的方式

網站提供官方的 interface ,讓你可以授權程式使用 資料

程式存的是官方給的 Token 非帳號密碼

Token 可規定存取範圍

Token 有期限而且可以隨時撤銷

(11)

OAuth 2.0 的角色

Resource Owner- 資料擁有者 (user)

Client- 即 App ,要存取 User 資料的程式

Authorization Server- 總管一切授權的 server

Resource Server-Client 從這個 server 撈資料 (AP I)

(12)

OAuth 2.0

(13)

Client 需要註冊

Client ID

Client Secret( 視為密碼 )

Redirect URI

(14)

OAuth 2.0 Flowchart

(15)

OAuth 2.0 Flowchart

(16)

OAuth 2.0 Flowchart

(17)

OAuth 2.0 Flowchart

(18)

OAuth 2.0 Flowchart

(19)

OAuth 2.0 Flowchart

(20)

Our App

Write by python-using flask web framework and dropbox SDK

Flow OAuth 2.0 protocol

Get Music from your dropbox directory

Web based Music player

(21)

Chrome extension

(22)

Background Pages

There are two types of background pages: persi stent background pages, and event pages.

(23)

Extension UIs

Browser Action

Page Action

Content Script

(24)

Extension UIs

icon in the toolbar, icon in the address bar ,

when clicked, shows a p opup.

Chrome App

(25)

Demo

(26)

Q&A

參考文獻

相關文件

Holographic effect of Chern-Simons term in 5d RN-AdS background to magnetic conductivity and photo emission rate..

教育統籌局 第 15頁 二零零三年二月. 諮詢文件內的建議

4.6 現時日間育嬰園及日間幼兒園的幼兒工作員與兒童的法定比例,分 別是 1:8 及

Students can understand there are different types of pollution (air pollution/land pollution/noise pollution/water pollution). Students can understand why there is

This paper briefs Members on the way forward for harmonisation of kindergartens (KGs) and child care centres (CCCs) in the light of the public and operators’ views on the

5 Longest domain token length Integer 6 Longest path token length Integer 7∼9 Spam, phishing and malware SLD hit ratio Real.. 10 Brand name

There is no general formula for counting the number of transitive binary relations on A... The poset A in the above example is not

“Ad-Hoc On Demand Distance Vector Routing”, Proceedings of the IEEE Workshop on Mobile Computing Systems and Applications (WMCSA), pages 90-100, 1999.. “Ad-Hoc On Demand