OAuth 2.0系列教程(四) 客户端类型

2014-6-17 liyangweb.com 李杨 Web周边

原文地址:http://tutorials.jenkov.com/oauth2/client-types.html

OAuth 2.0客户端角色被细分为一系列类型和配置,本节将阐述这些类型和配置。

OAuth 2.0规范定义了两种客户端类型:

  • 保密的
  • 公有的

保密的客户端能够对外部保持客户端密码保密。该客户端密码是由授权服务器分配给客户端应用的。为了避免欺骗,该密码是授权服务器用来识别客户端的。例如一个保密的客户端可以是web应用,除了管理员,没有任何人能够访问服务器和看到该密码。

公有的客户端不能使客户端密码保密。比如移动手机应用或桌面应用会将密码嵌入在内部。这样的应用可能被破解,并且泄漏密码。这同于在用户的浏览器上运行的JavaScript应用。用户可以使用一个JavaScript调试器来寻找到应用程序,并查看客户端密码。

客户端配置

OAuth 2.0规范也提到了一系列客户端配置文件。这些配置文件是具体类型的应用程序,这可以是保密或公开的。这些配置文件有:

  • web应用
  • 用户代理
  • 原生

Web应用

Web应用是指运行在Web服务器内的应用。实际上,Web应用典型地由浏览器部分和服务端部分组成。如果Web应用需要访问资源服务器(如Facebook账号),然后客户端密码被保存在服务器上。因此密码是保密的。

这里阐释了一个保密的客户端应用:

overview-client-types-1.png

保密的客户端:web应用

用户代理应用

用户代理应用比如运行在浏览器上的的JavaScript应用。浏览器是用户代理。用户代理应用可以保存在web服务器上,但应用程序只运行一次下载的用户代理。一个例子就像一个JavaScript游戏只能运行在浏览器里。

这里阐释了一个客户端用户代理应用:

overview-client-types-2.png

公有客户端:用户代理应用

原生应用

原生应用比如桌面应用或移动手机应用。原生应用典型地被安装在用户计算机或设备(手机,平板等)上。因此客户端密码也被存储在用户计算机或设备上。

这里阐释了客户端原生应用:

overview-client-types-3.png

公有客户端:本地应用

混合应用

有些应用是这些配置的混合使用。比如本地应用也可以有服务器部分,来做一些工作(如数据存储)。OAuth2.0规范没有提及这种混合型。然而,在大多数情况下,混合型将能够使用这些配置文件的认证模型。

标签: OAuth 2.0系列教程

评论:

beckyobrien
2019-01-27 19:42
<a href="http://www.caninewingman.net/nike-air-presto-se-naranja-plata-kurpesd">nike air presto se naranja plata</a> <a href="http://www.caqueta.net/nike-kobe-11-flyknit-gr%C3%A5-eyes-schuhec">nike kobe 11 flyknit gr氓 eyes</a> <a href="http://www.clubcombo.net/adidas-superstar-dam%C3%A4nner-wei%C3%9F-and-gr%C3%BCn-butyg">adidas superstar dam盲nner wei脽 and gr眉n</a> <a href="http://www.cometwifi.net/nike-zoom-vomero-12-gull-brun-scarpec">nike zoom vomero 12 gull brun</a> <a href="http://www.communityfm.net/herren-nike-flyknit-lunar-3-wei%C3%9F-schwarz-chaussuresf">herren nike flyknit lunar 3 wei脽 schwarz</a> <a href="http://www.coralbayconsulting.net/adidas-climacool-ride-vi-bianca-butya">adidas climacool ride vi bianca</a>
beckyobrien http://www.beckyobrien.net/
moldedeps
2019-01-26 07:58
<a href="http://www.nollerlincoln.com/nike-shox-turbo-21-blanco-marr%C3%B3n-butya">nike shox turbo 21 blanco marr贸n</a> <a href="http://www.wimpley.com/jordan-horizon-schwarz-grade-school-chaussuresf">jordan horizon schwarz grade school</a> <a href="http://www.noumetpatrice.com/jordan-5-fire-rosso-nicekicks-butya">jordan 5 fire rosso nicekicks</a> <a href="http://www.sennaparisllc.com/nike-air-max-lunar-90-jacquard-brave-bleu-schuheg">nike air max lunar 90 jacquard brave bleu</a> <a href="http://www.stylejinx.com/ralph-lauren-crewneck-sweater-in-rot-poloz">ralph lauren crewneck sweater in rot</a> <a href="http://www.threeoaksmi.com/nike-air-max-thea-electric-p%C3%BArpura-flors-chaussuresa">nike air max thea electric p煤rpura flors</a>
moldedeps http://www.moldedeps.com/
freizeittrend
2019-01-18 01:51
<a href="http://www.ntygadget.com/nike-kd-8-commercial-runninge">nike kd 8 commercial</a> <a href="http://www.purchasetulsa.com/nike-lebron-barn-brun-bl%C3%A5-schuhea">nike lebron barn brun bl氓</a> <a href="http://www.pennywave.com/nike-air-max-95-all-svart-on-feet-scarpeb">nike air max 95 all svart on feet</a> <a href="http://www.scoptix.com/nike-air-max-95-green-spain-shoeso">nike air max 95 green spain</a> <a href="http://www.domodrzwi.com/nike-free-3.0-v5-schwarz-volt-flashing-kurpesc">nike free 3.0 v5 schwarz volt flashing</a> <a href="http://www.magneticduo.com/nike-sneakers-air-griffey-max-1-sneaker-zapatost">nike sneakers air griffey max 1 sneaker</a>
freizeittrend http://www.freizeittrend.com/
r33plfry
2019-01-11 04:14
<a href="http://www.80hhid24.com/adidas-porsche-design-v-vert-orange-chaussuresa">adidas porsche design v vert orange</a> <a href="http://www.ia085owq.com/nike-hypervenom-lime-vert-and-noir-butya">nike hypervenom lime vert and noir</a> <a href="http://www.pbco924y.com/femminile-air-yeezy-ii-2-sp-max-90-rosa-scarpef">femminile air yeezy ii 2 sp max 90 rosa</a> <a href="http://www.x264x2xm.com/air-max-90-sort-and-lyser%C3%B8d-butyf">air max 90 sort and lyser酶d</a> <a href="http://www.ghyez348.com/kvinders-nike-flyknit-roshe-run-khaki-butyf">kvinders nike flyknit roshe run khaki</a> <a href="http://www.2cxikp05.com/femminile-nike-air-huarache-nm-grigio-schuhea">femminile nike air huarache nm grigio</a>
r33plfry http://www.r33plfry.com/
coypon
2019-01-06 20:03
<a href="http://www.shipmancomm.com/nike-mercurial-vapor-viii-fg-negroout-schuhef">nike mercurial vapor viii fg negroout</a> <a href="http://www.ywutube.com/adidas-climacool-ride-iv-oransje-scarpef">adidas climacool ride iv oransje</a> <a href="http://www.bettytatar.com/kobe-9-gr%C3%B8n-quarters-kurpese">kobe 9 gr酶n quarters</a> <a href="http://www.eringjewels.com/air-jordan-horizon-low-off-court-scarpe-to-wear-schuheg">air jordan horizon low off court scarpe to wear</a> <a href="http://www.foremostgold.com/flyknit-lunar-3-electric-verde-zone-schuheb">flyknit lunar 3 electric verde zone</a> <a href="http://www.galletasmia.com/jordan-12-gamma-blau-paris-chaussuresd">jordan 12 gamma blau paris</a>
coypon http://www.coypon.com/
cmetechnology
2019-01-05 13:33
<a href="http://www.prorilpumpna.com/nike-chicago-bears-34-walter-payton-orange-game-jersey-nflg">nike chicago bears 34 walter payton orange game jersey</a> <a href="http://www.grafiscar.com/nike-kaishi-blue-kaishi-philippines-skoa">nike kaishi blue kaishi philippines</a> <a href="http://www.virtualxbox.com/jordan-superfly-2-university-blue-runningd">jordan superfly 2 university blue</a> <a href="http://www.cumbrepyme.com/billig-air-jordan-jumpman-team-dam%C3%A4nner-silber-runninge">billig air jordan jumpman team dam盲nner silber</a> <a href="http://www.tiresbg.com/royalblue-black-houston-astros-new-era-mlb-bt-9fifty-snapback-cap-hata">royalblue black houston astros new era mlb bt 9fifty snapback cap</a> <a href="http://www.moviezluv.com/nike-hyperdunk-gamma-blue-jordans-trainersg">nike hyperdunk gamma blue jordans</a>
cmetechnology http://www.cmetechnology.com/
lasdamas
2019-01-03 18:43
<a href="http://www.dreamybelize.net/air-jordan-future-low-schwarz-queen-kurpesa">air jordan future low schwarz queen</a> <a href="http://www.drspa.net/nike-hyperdunk-2014-verde-negro-chaussuresb">nike hyperdunk 2014 verde negro</a> <a href="http://www.dumaworks.net/herre-asics-gel-kinsei-4-lyser%C3%B8d-bl%C3%A5-obuvd">herre asics gel kinsei 4 lyser酶d bl氓</a> <a href="http://www.dylanhassinger.net/nike-hyperdunk-2014-low-p%C3%BArpura-gris-chaussuresa">nike hyperdunk 2014 low p煤rpura gris</a> <a href="http://www.emergexplanning.net/nike-jordan-cp3-vi-ae-noir-butya">nike jordan cp3 vi ae noir</a> <a href="http://www.emtecsolution.net/nike-free-run-5-junior-sort-scarpef">nike free run 5 junior sort</a>
lasdamas http://www.lasdamas.net/
compressmyjs
2019-01-02 19:22
<a href="http://www.kainjipark.com/nike-air-max-2014-red-sale-skoa">nike air max 2014 red sale</a> <a href="http://www.lapthelakes.com/nike-air-zoom-90-it-mens-blue-gold-sneakere">nike air zoom 90 it mens blue gold</a> <a href="http://www.delmaroffice.com/kvinners-adidas-zx-flux-gr%C3%B8nn-kurpesa">kvinners adidas zx flux gr酶nn</a> <a href="http://www.medieneinsatz.com/air-jordan-4-voltage-cherry-release-date-sneakerb">air jordan 4 voltage cherry release date</a> <a href="http://www.linexcanton.com/nike-roshe-run-black-and-white-awesome-shoesg">nike roshe run black and white awesome</a> <a href="http://www.saskostomy.com/chicago-cubs-retro-hat-hats">chicago cubs retro hat</a>
compressmyjs http://www.compressmyjs.com/
gladatassen
2019-01-02 06:09
<a href="http://www.polurnetsucks.com/herre-asics-asics-gel-kayano-20-gul-obuvc">herre asics asics gel kayano 20 gul</a> <a href="http://www.taskanizerapp.com/nike-lebron-cork-for-venta-scarpea">nike lebron cork for venta</a> <a href="http://www.balloonpunkt.com/nike-hypervenom-bleu-orange-noir-chaussuresg">nike hypervenom bleu orange noir</a> <a href="http://www.biereaveyron.com/nike-basketbtout-inside-access-kyrie-irving-kurpesf">nike basketbtout inside access kyrie irving</a> <a href="http://www.churchatsea.com/nike-air-max-2011-gr%C3%B8nn-gr%C3%A5-obuva">nike air max 2011 gr酶nn gr氓</a> <a href="http://www.esmokecanada.com/ralph-lauren-solid-small-pony-down-jacket-green-polot">ralph lauren solid small pony down jacket green</a>
gladatassen http://www.gladatassen.com/
olgroupusainc
2018-12-30 13:49
<a href="http://www.hobbyfreaks.com/nfl-aj-bouye-black-21-jacksonville-jaguars-nike-name-number-logo-t-shirt-nflz">nfl aj bouye black 21 jacksonville jaguars nike name number logo t shirt</a> <a href="http://www.inselwasser.com/air-jordan-retro-30.5-oro-negro-kurpesa">air jordan retro 30.5 oro negro</a> <a href="http://www.naturalcitral.com/air-max-90-sneakerboot-schwarz-silber-butyg">air max 90 sneakerboot schwarz silber</a> <a href="http://www.sterneanswers.com/phil-taylor-washington-redskins-womens-limited-nike-jersey-white-nflw">phil taylor washington redskins womens limited nike jersey white</a> <a href="http://www.agrilover.com/dark-rosa-and-bianca-nike-blazers-butye">dark rosa and bianca nike blazers</a> <a href="http://www.alikexue.com/kvinners-nike-air-huarache-hvit-bl%C3%A5-kurpesc">kvinners nike air huarache hvit bl氓</a>
olgroupusainc http://www.olgroupusainc.com/
myfraimz
2018-12-29 09:51
<a href="http://www.miendiation.com/nike-air-max-zero-kvinners-hvit-himmelen-bl%C3%A5-schuhea">nike air max zero kvinners hvit himmelen bl氓</a> <a href="http://www.powfarm.com/air-jordan-14-gr%C3%A5-oransje-scarpeb">air jordan 14 gr氓 oransje</a> <a href="http://www.nongmobacon.com/nike-air-max-95-green-spain-shoeso">nike air max 95 green spain</a> <a href="http://www.rentalloka.com/nike-lunar-superbad-pro-td-bl%C3%A5-kurpesb">nike lunar superbad pro td bl氓</a> <a href="http://www.casamentosweb.com/jordan-latest-sneakers-zapatost">jordan latest sneakers</a> <a href="http://www.perheopas.com/custom-painted-converse-uk-shoesz">custom painted converse uk</a>
[url=http://www.myfraimz.com/]myfraimz[/url]
cockaweek
2018-12-27 20:16
<a href="http://www.rlhomestaging.com/air-jordan-retro-4-hvit-mint-gr%C3%B8nn-chaussuresf">air jordan retro 4 hvit mint gr酶nn</a> <a href="http://www.smprojetos.com/herren-nike-free-tr-flyknit-5.0-blau-gold-scarpef">herren nike free tr flyknit 5.0 blau gold</a> <a href="http://www.thespacovers.com/game-womens-tyrann-mathieu-navy-blue-home-jersey-nfl-nike-houston-texans-32-nfls">game womens tyrann mathieu navy blue home jersey nfl nike houston texans 32</a> <a href="http://www.veruccapedis.com/maschio-ralph-lauren-london-olympic-cachi-grigio-polot">maschio ralph lauren london olympic cachi grigio</a> <a href="http://www.cjcasteel.com/nike-jayon-brown-navy-blue-name-number-logo-tennessee-titans-nfl-55-pullover-hoodie-nflz">nike jayon brown navy blue name number logo tennessee titans nfl 55 pullover hoodie</a> <a href="http://www.cooealpin.com/adidas-zx-850-light-grigio-aluminum-rosso-exclusive-light-kurpesd">adidas zx 850 light grigio aluminum rosso exclusive light</a>
cockaweek http://www.cockaweek.com/

发表评论:

Powered by emlog 冀ICP备13011830号-1