diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-11 06:44:10 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-11 06:44:10 -0700 |
commit | 703dbe1ded342fbe45a9afbb2fc0106870f6ad9a (patch) | |
tree | 6989d0a63685edba6b75f9705c860eb0a15749eb | |
parent | 0e9289ebee04d58b2e39e9118a9dff0de125ea45 (diff) | |
download | DotNetOpenAuth-703dbe1ded342fbe45a9afbb2fc0106870f6ad9a.zip DotNetOpenAuth-703dbe1ded342fbe45a9afbb2fc0106870f6ad9a.tar.gz DotNetOpenAuth-703dbe1ded342fbe45a9afbb2fc0106870f6ad9a.tar.bz2 |
Updated OAuth v2.0 draft to 09.
-rw-r--r-- | doc/specs/draft-ietf-oauth.html | 5620 |
1 files changed, 2554 insertions, 3066 deletions
diff --git a/doc/specs/draft-ietf-oauth.html b/doc/specs/draft-ietf-oauth.html index a594581..7f89f70 100644 --- a/doc/specs/draft-ietf-oauth.html +++ b/doc/specs/draft-ietf-oauth.html @@ -1,12 +1,16 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<html lang="en"><head><title>The OAuth 2.0 Protocol</title> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> -<meta name="description" content="The OAuth 2.0 Protocol"> -<meta name="generator" content="xml2rfc v1.35 (http://xml.resource.org/)"> -<style type='text/css'><!-- +<!-- saved from url=(0052)http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html --> +<HTML lang="en"><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>The OAuth 2.0 Protocol</TITLE> + +<META name="description" content="The OAuth 2.0 Protocol"> +<META name="generator" content="xml2rfc v1.35 (http://xml.resource.org/)"> +<META name="viewport" content="width=600;"> +<STYLE type="text/css"><!-- body { font-family: verdana, charcoal, helvetica, arial, sans-serif; - font-size: small; color: #000; background-color: #FFF; + font-size: 85%; + max-width: 80ex; + color: #000; background-color: #FFF; margin: 2em; } h1, h2, h3, h4, h5, h6 { @@ -80,9 +84,13 @@ p { margin-left: 2em; margin-right: 2em; } p.copyright { font-size: x-small; } - p.toc { font-size: small; font-weight: bold; margin-left: 3em; } + p.toc { font-size: 85%; + max-width: 80ex; + font-weight: bold; margin-left: 3em; } table.toc { margin: 0 0 0 3em; padding: 0; border: 0; vertical-align: text-top; } - td.toc { font-size: small; font-weight: bold; vertical-align: text-top; } + td.toc { font-size: 85%; + max-width: 80ex; + font-weight: bold; vertical-align: text-top; } ol.text { margin-left: 2em; margin-right: 2em; } ul.text { margin-left: 2em; margin-right: 2em; } @@ -113,7 +121,9 @@ /* RFC-2629 <texttable>s. */ table.all, table.full, table.headers, table.none { - font-size: small; text-align: center; border-width: 2px; + font-size: 85%; + max-width: 80ex; + text-align: center; border-width: 2px; vertical-align: top; border-collapse: collapse; } table.all, table.full { border-style: solid; border-color: black; } @@ -136,53 +146,48 @@ width: 80%; border-style: none; border-width: 0; color: #CCC; background-color: #CCC; } ---></style> -</head> -<body> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<table summary="layout" width="66%" border="0" cellpadding="0" cellspacing="0"><tr><td><table summary="layout" width="100%" border="0" cellpadding="2" cellspacing="1"> -<tr><td class="header">Network Working Group</td><td class="header">E. Hammer-Lahav, Ed.</td></tr> -<tr><td class="header">Internet-Draft</td><td class="header">Yahoo!</td></tr> -<tr><td class="header">Intended status: Standards Track</td><td class="header">D. Recordon</td></tr> -<tr><td class="header">Expires: October 23, 2010</td><td class="header">Facebook</td></tr> -<tr><td class="header"> </td><td class="header">D. Hardt</td></tr> -<tr><td class="header"> </td><td class="header">April 21, 2010</td></tr> -</table></td></tr></table> -<h1><br />The OAuth 2.0 Protocol<br />draft-ietf-oauth-00</h1> - -<h3>Abstract</h3> - -<p> - This specification describes the OAuth 2.0 protocol. OAuth provides a method for making - authenticated HTTP requests using a token - an identifier used to denote an access grant - with specific scope, duration, and other attributes. Tokens are issued to third-party - clients by an authorization server with the approval of the resource owner. OAuth defines - multiple flows for obtaining a token to support a wide range of client types and user - experience. +--></STYLE> +</HEAD><STYLE type="text/css">#AdContainer,#RadAd_Skyscraper,#ad-frame,#bbccom_leaderboard,#bbccom_mpu,#center_banner,#footer_adcode,#hbBHeaderSpon,#header_adcode,#hiddenHeaderSpon,#navbar_adcode,#pagelet_adbox,#rightAds,#rightcolumn_adcode,#top-advertising,#topMPU,#tracker_advertorial,.ad-now,.adbox,.adspot,.dfpad,.prWrap,.sponsored,[id^="ad_block"],[id^="adbrite"],[id^="dclkAds"],[id^="konaLayer"],[id^="ew"][id$="_bannerDiv"],a.kLink span[id^="preLoadWrap"][class="preLoadWrap"],A[href^="http://adserver.adpredictive.com"],A[href^="http://ad."][href*=".doubleclick.net/"],div[class^="dms_ad_IDS"],DIV[id="adxLeaderboard"],DIV[id="rm_container"],div[id^="sponsorads"],div[id^="y5_direct"],DIV[id="FFN_Banner_Holder"],DIV[id="FFN_imBox_Container"],DIV[id="p360-format-box"],div[id="tooltipbox"][class^="itxt"],div[id^="adKontekst_"],div[id^="google_ads_div"],div[id^="kona_"][id$="_wrapper"],div[class="wnDVUtilityBlock"],embed[flashvars*="AdID"],embed[id="Advertisement"][name="Advertisement"],iframe[class="chitikaAdBlock"],iframe[id^="dapIfM"],iframe[name^="AdBrite"],iframe[name^="google_ads_"],iframe[src*="clicksor.com"],img[src*="clicksor.com"],IMG[src^="http://cdn.adnxs.com"],ispan#ab_pointer,object[id="flashad"],object[id="ve_threesixty_swf"][name="ve_threesixty_swf"],[src*="sixsigmatraffic.com"],div#dir_ads_site,div#tads table[align="center"][width="100%"],div#rhs div#rhs_block table#mbEnd,#A9AdsMiddleBoxTop,#A9AdsOutOfStockWidgetTop,#A9AdsServicesWidgetTop,#AD_CONTROL_22,.AD_MOVIE_ITEM,.AD_MOVIE_ITEMLIST,.AD_MOVIE_ITEMROW,#ADsmallWrapper,#Ad1,#Ad2,#Ad3Left,#Ad3Right,#AdBanner_F1,#AdBar1,#AdContainerTop,#AdHeader,#AdMiddle,#AdRectangle,#AdSenseDiv,#AdShowcase_F1,#AdSky23,#AdSkyscraper,#AdSponsor_SF,#AdTargetControl1_iframe,#AdText,#Ad_Block,#Ad_Center1,#Ad_Top,#Adbanner,#Adrectangle,#AdsContent,#AdsWrap,#AdvertMPU23b,#AdvertiseFrame,#Advertisement,#Advertorial,#BannerAdvert,#BigBoxAd,#CompanyDetailsNarrowGoogleAdsPresentationControl,#CompanyDetailsWideGoogleAdsPresentationControl,#ContentAd,#ContentAd1,#ContentAd2,#ContentAdPlaceHolder1,#ContentAdPlaceHolder2,#ContentAdXXL,#FooterAd,#FooterAdContainer,#GoogleAdsense,#HEADERAD,#HOME_TOP_RIGHT_BOXAD,#HeaderAdsBlock,#HeaderAdsBlockFront,#HeaderBannerAdSpacer,#HeaderTextAd,#HeroAd,#HomeAd1,#HouseAd,#Journal_Ad_125,#Journal_Ad_300,#LeftAd,#LeftAdF1,#LeftAdF2,#LowerContentAd,#PREFOOTER_LEFT_BOXAD,#PREFOOTER_RIGHT_BOXAD,#PageLeaderAd,#RightAd,#RightSponsoredAd,#SectionAd300-250,#SidebarAdContainer,#SkyAd,#SponsoredAd,#TOP_ADROW,#TOP_RIGHT_BOXAD,#TopAdPos,#VM-MPU-adspace,#VM-footer-adspace,#VM-header-adspace,#VM-header-adwrap,#XEadLeaderboard,#XEadSkyscraper,#_ads,#ad-120x600-sidebar,#ad-160x600,#ad-160x600-sidebar,#ad-250x300,#ad-300,#ad-300x250,#ad-300x250-sidebar,#ad-300x250Div,#ad-728,#ad-article,#ad-banner,#ad-bottom,#ad-bottom-wrapper,#ad-colB-1,#ad-column,#ad-container,#ad-footer,#ad-footprint-160x600,#ad-front-footer,#ad-front-sponsoredlinks,#ad-halfpage,#ad-label,#ad-leaderboard,#ad-leaderboard-bottom,#ad-leaderboard-spot,#ad-leaderboard-top,#ad-left,#ad-lrec,#ad-medium-rectangle,#ad-middlethree,#ad-middletwo,#ad-module,#ad-mpu,#ad-mpu1-spot,#ad-mpu2-spot,#ad-placard,#ad-rectangle,#ad-righttop,#ad-side-text,#ad-skyscraper,#ad-slug-wrapper,#ad-space,#ad-splash,#ad-target,#ad-target-Leaderbord,#ad-teaser,#ad-top,#ad-top-text-low,#ad-tower,#ad-trailerboard-spot,#ad-typ1,#ad-west,#ad-wrap,#ad-wrap-right,#ad-wrapper,#ad-wrapper1,#ad-yahoo-simple,#ad1,#ad125BL,#ad125BR,#ad125TL,#ad125TR,#ad125x125,#ad160x600,#ad160x600right,#ad1Sp,#ad2,#ad2Sp,#ad3,#ad300,#ad300-250,#ad300X250,#ad300_x_250,#ad300x150,#ad300x250,#ad300x250Module,#ad300x60,#ad336,#ad336x280,#ad375x85,#ad468,#ad526x250,#ad600,#ad7,#ad728,#ad728Wrapper,#ad728x90,#adB,#adBadges,#adBanner,#adBanner120x600,#adBannerTable,#adBannerTop,#adBar,#adBlock125,#adBlocks,#adBox,#adContainer,#adDiv,#adFps,#adFtofrs,#adGallery,#adGroup1,#adHeader,#adL,#adLB,#adMPU,#adMiddle0Frontpage,#adMiniPremiere,#adP,#adPlaceHolderRight,#adRight,#adSenseModule,#adServer_marginal,#adSidebar,#adSidebarSq,#adSky,#adSkyscraper,#adSlider,#adSpace3,#adSpace300_ifrMain,#adSpace4,#adSpace5,#adSpace6,#adSpace7,#adSpace_footer,#adSpace_top,#adSpecial,#adSpot-Leader,#adSpot-banner,#adSpot-mrec1,#adSpot-sponsoredlinks,#adSpot-textbox1,#adSpot-widestrip,#adSpotAdvertorial,#adSpotIsland,#adSpotSponsoredLinks,#adSquare,#adStaticA,#adStrip,#adSuperPremiere,#adTableCell,#adTag1,#adTag2,#adTop,#adTopboxright,#adUnit,#adWrapper,#adZoneTop,#ad_160x160,#ad_160x600,#ad_190x90,#ad_300,#ad_300_250,#ad_300x250,#ad_468_60,#ad_5,#ad_728_foot,#ad_728x90,#ad_A,#ad_B,#ad_Banner,#ad_C,#ad_C2,#ad_D,#ad_E,#ad_F,#ad_G,#ad_H,#ad_I,#ad_J,#ad_K,#ad_L,#ad_M,#ad_N,#ad_O,#ad_P,#ad_YieldManager-300x250,#ad_anchor,#ad_banner,#ad_banner_top,#ad_bar,#ad_block_1,#ad_block_2,#ad_bottom,#ad_box_colspan,#ad_branding,#ad_bs_area,#ad_center_monster,#ad_container,#ad_content_wrap,#ad_feature,#ad_footer,#ad_haha_1,#ad_haha_4,#ad_halfpage,#ad_head,#ad_header,#ad_horseshoe_left,#ad_horseshoe_right,#ad_horseshoe_spacer,#ad_horseshoe_top,#ad_hotpots,#ad_island,#ad_label,#ad_layer2,#ad_leader,#ad_leaderBoard,#ad_leaderboard,#ad_lwr_square,#ad_medium_rectangle,#ad_medium_rectangular,#ad_middle,#ad_mpu,#ad_overlay,#ad_play_300,#ad_rect,#ad_rect_body,#ad_rect_bottom,#ad_rectangle,#ad_related_links_div,#ad_related_links_div_program,#ad_replace_div_1,#ad_report_leaderboard,#ad_report_rectangle,#ad_right,#ad_right_main,#ad_ros_tower,#ad_rr_1,#ad_sidebar1,#ad_sidebar2,#ad_sidebar3,#ad_skyscraper,#ad_slot_livesky,#ad_space,#ad_square,#ad_ss,#ad_term_bottom_place,#ad_top,#ad_top_holder,#ad_tp_banner_1,#ad_tp_banner_2,#ad_vertical,#ad_window,#ad_wrapper,#adbanner,#adbnr,#adbottom,#adbox,#adbox2,#adclear,#adcode1,#adcode2,#adcode3,#adcode4,#adcolumnwrapper,#adcontainer,#adcontainsm,#adcontrolPushSite,#addiv-bottom,#addiv-top,#adframe:not(frameset),#adhead,#adhead_g,#adheader,#adhome,#adiframe1_iframe,#adiframe2_iframe,#adiframe3_iframe,#adimg,#adlabel,#adlabelFooter,#adleaderboard,#adlinks,#adlinkws,#admid,#admiddle3center,#admiddle3left,#adposition,#adposition-C,#adposition-FPMM,#adposition2,#adposition3,#adposition4,#adrectanglea,#adrectangleb,#adright,#adright2,#ads,#ads-468,#ads-area,#ads-block,#ads-bot,#ads-bottom,#ads-dell,#ads-horizontal,#ads-indextext,#ads-leaderboard1,#ads-lrec,#ads-prices,#ads-rhs,#ads-top,#ads160left,#ads2,#ads300,#ads336x280,#ads7,#ads728bottom,#ads728top,#ads790,#adsDisplay,#adsID,#ads_160,#ads_300,#ads_728,#ads_belowforumlist,#ads_belownav,#ads_bottom_outer,#ads_catDiv,#ads_footer,#ads_right,#ads_sidebar_roadblock,#ads_top,#adsbottom,#adscolumn,#adsense,#adsense-text,#adsenseWrap,#adsense_placeholder_2,#adsensetopplay,#adskyscraper,#adslot,#adsonar,#adspace,#adspace-300x250,#adspace300x250,#adspaceBox,#adspaceBox300,#adspace_header,#adspot-a,#adsright,#adstop,#adt,#adtech_takeover,#adtop,#adv-masthead,#adv_google_300,#adv_google_728,#adv_top_banner_wrapper,#adv_wide_banner,#adver1,#adver2,#adver3,#adver4,#advert,#advert-1,#advert-boomer,#advert-display,#advert-header,#advert-leaderboard,#advert-top,#advert1,#advertBanner,#advert_250x250,#advert_box,#advert_leaderboard,#advert_lrec_format,#advert_mpu,#advertbox,#advertbox2,#advertbox3,#advertbox4,#adverthome,#advertise,#advertise-now,#advertise1,#advertisement,#advertisement160x600,#advertisement728x90,#advertisementLigatus,#advertisementPrio2,#advertiser-container,#advertiserLinks,#advertising,#advertising-skyscraper,#advertisingModule160x600,#advertisingModule728x90,#advertorial,#adwhitepaperwidget,#adwin_rec,#adwith,#adwords-4-container,#adwrapper,#adxtop,#adzerk,#adzoneBANNER,#agi-ad300x250,#agi-ad300x250overlay,#agi-sponsored,#anchorAd,#annoying_ad,#ap_adframe,#araHealthSponsorAd,#article-ad-container,#article-box-ad,#articleAdReplacement,#articleSideAd,#article_ad,#article_box_ad,#atlasAdDivGame,#banner-ad,#banner-ad-container,#banner-ads,#banner468x60,#banner728x90,#bannerAd,#bannerAdTop,#bannerAd_ctr,#banner_ad,#banner_ads,#banner_topad,#bannerad,#bannerad2,#bbccom_mpu,#bbo_ad1,#bg_YieldManager-300x250,#bigAd,#bigBoxAd,#bigadbox,#bigadspot,#billboard_ad,#block-ad_cube-1,#block-thewrap_ads_250x300-0,#block_advert,#blox-big-ad,#blox-halfpage-ad,#blox-tile-ad,#botad,#bott_ad2,#bott_ad2_300,#bottom-ad-container,#bottom-ads,#bottomAd,#bottomAdCCBucket,#bottomAdContainer,#bottomAdSense,#bottomAdSenseDiv,#bottomAds,#bottomRightAd,#bottomRightAdSpace,#bottom_ad,#bottom_ad_area,#bottom_ads,#bottom_banner_ad,#bottom_overture,#bottom_sponsor_ads,#bottom_sponsored_links,#bottom_text_ad,#bottomad,#bottomadsense,#box-googleadsense-1,#box-googleadsense-r,#box1ad,#boxAd300,#boxAdContainer,#box_ad,#box_mod_googleadsense,#boxad1,#boxad2,#boxad3,#boxad4,#boxad5,#bps-header-ad-container,#btr_horiz_ad,#burn_header_ad,#button-ads-horizontal,#button-ads-vertical,#button_ad_container,#button_ad_wrap,#cellAd,#channel_ad,#channel_ads,#ciHomeRHSAdslot,#circ_ad,#cnnRR336ad,#cnnTopAd,#colRightAd,#column4-google-ads,#commercial_ads,#common_right_lower_player_adspace,#common_right_player_adspace,#common_top_adspace,#containerLocalAds,#containerMrecAd,#content-ad-header,#contentAd,#content_ad,#content_ad_square,#content_ad_top,#content_ads_content,#content_box_300body_sponsoredoffers,#content_box_adright300_google,#contentad,#contentad_imtext,#contentad_right,#contentads,#contentinlineAd,#contextual-ads-block,#contextualad,#coverads,#ctl00_BottomAd,#ctl00_LHTowerAd,#ctl00_LeftHandAd,#ctl00_MasterHolder_IBanner_adHolder,#ctl00_TopAd,#ctl00_TowerAd,#ctl00_VBanner_adHolder,#ctl00_adFooter,#ctl00_atop_bt,#ctl00_cphMain_hlAd1,#ctl00_cphMain_hlAd2,#ctl00_cphMain_hlAd3,#ctl00_ctl00_MainPlaceHolder_itvAdSkyscraper,#ctl00_ctl00_ctl00_Main_Main_PlaceHolderGoogleTopBanner_MPTopBannerAd,#ctl00_ctl00_ctl00_Main_Main_SideBar_MPSideAd,#ctl00_ctl00_ctl00_tableAdsTop,#ctl00_m_skinTracker_m_adLBL,#ctl00_phCrackerMain_ucAffiliateAdvertDisplayMiddle_pnlAffiliateAdvert,#ctl00_phCrackerMain_ucAffiliateAdvertDisplayRight_pnlAffiliateAdvert,#ctrlsponsored,#cubeAd,#cube_ads,#cube_ads_inner,#cubead,#cubead-2,#dc-display-right-ad-1,#defer-adright,#detail_page_vid_topads,#divAd,#divAdBox,#divWrapper_Ad,#div_video_ads,#dlads,#dni-header-ad,#download_ads,#ds-mpu,#editorsmpu,#evotopTen_advert,#exads,#featuread,#featuredAdContainer2,#featuredAds,#feed_links_ad_container,#first_ad_unit,#fl_hdrAd,#footer-ad,#footer-sponsored,#footerAd,#footerAdDiv,#footerAds,#footerAdverts,#footer_ad,#footer_ad_block,#footer_ads,#footer_adspace,#footer_text_ad,#footerad,#fr_ad_center,#frnContentAd,#from_our_sponsors,#front_advert,#front_mpu,#ft-ad,#ft-ad-1,#ft-ad-container,#ft_mpu,#fusionad,#fw-advertisement,#g_ad,#g_adsense,#ga_300x250,#gad,#gallery-ad-m0,#gallery_ads,#game-info-ad,#global_header_ad_area,#gmi-ResourcePageAd,#gmi-ResourcePageLowerAd,#google-ad,#google-ad-art,#google-ad-tower,#google-ads,#google-ads-bottom,#google-ads-left-side,#google-adsense-mpusize,#googleAd,#googleAds,#googleAdsense,#googleAdsenseBanner,#googleAdsenseBannerBlog,#googleAdwordsModule,#googleAfcContainer,#googleShoppingAdsRight,#googleShoppingAdsTop,#google_ad,#google_ad_test,#google_ads,#google_ads_frame1,#google_ads_test,#googlead,#googleads,#googlesponsor,#grid_ad,#gsyadrectangleload,#gsyadrightload,#gsyadtop,#gsyadtopload,#gtopadvts,#halfPageAd,#halfe-page-ad-box,#hdtv_ad_ss,#head-ad,#head_advert,#header-ad,#header-ads,#header-advert,#headerAd,#headerAdBackground,#headerAdContainer,#headerAdWrap,#headerAdsWrapper,#headerTopAd,#header_ad,#header_adcode,#header_ads,#header_advertisement_top,#header_leaderboard_ad_container,#headerad,#headeradbox,#headline_ad,#hiddenadAC,#homeTopRightAd,#home_ad,#home_contentad,#home_spensoredlinks,#homepage-ad,#homepage_right_ad,#homepage_right_ad_container,#hometop_234x60ad,#hor_ad,#horizontal-banner-ad,#horizontal_ad,#horizontal_ad_top,#horizontalads,#houseAd,#hp-store-ad,#hpV2_300x250Ad,#hpV2_googAds,#icePage_SearchLinks_AdRightDiv,#icePage_SearchLinks_DownloadToolbarAdRightDiv,#inlinead,#inlinegoogleads,#inner-advert-row,#insider_ad_wrapper,#instoryad,#int-ad,#interstitial_ad_wrapper,#islandAd,#j_ad,#jmp-ad-buttons,#joead,#joead2,#ka_adRightSkyscraperWide,#landing-adserver,#largead,#lateAd,#lb-sponsor-left,#lb-sponsor-right,#leader-board-ad,#leader-sponsor,#leaderAdContainer,#leaderad,#leaderad_section,#leaderboard-ad,#leaderboard-bottom-ad,#leaderboard_ad,#left-ad-skin,#leftAdContainer,#leftAd_rdr,#leftAdvert,#leftSectionAd300-100,#left_ad,#left_adspace,#leftad,#leftads,#lg-banner-ad,#linkAds,#live-ad,#longAdSpace,#lowerthirdad,#mBannerAd,#main-ad,#main-ad160x600,#main-ad160x600-img,#main-ad728x90,#mainAd,#mainAdUnit,#mainAdvert,#main_ad,#main_rec_ad,#mastAdvert,#mastad,#masthead_ad,#masthead_topad,#medRecAd,#media_ad,#menuAds,#mi_story_assets_ad,#mid-ad300x250,#mid-table-ad,#mid_ad_title,#mid_mpu,#middlead,#middleads,#midrect_ad,#midstrip_ad,#mini-ad,#module-google_ads,#module_ad,#module_box_ad,#moogleAd,#most_popular_ad,#mpu,#mpu-advert,#mpuAd,#mpuDiv,#mpuWrapper,#mpuWrapperAd,#mpu_banner,#mpu_holder,#mpu_text_ad,#mpuad,#mrecAdContainer,#ms_ad,#msad,#multiLinkAdContainer,#n_sponsor_ads,#namecom_ad_hosting_main,#narrow_ad_unit,#natadad300x250,#national_microlink_ads,#navi_banner_ad_780,#nba300Ad,#nbaMidAds,#nbaVid300Ad,#new_topad,#ng_rtcol_ad,#noresultsads,#northad,#oanda_ads,#onespot-ads,#p-googleadsense,#page-header-ad,#pageAds,#pageAdsDiv,#page_content_top_ad,#pcworldAdBottom,#pcworldAdTop,#pinball_ad,#player_ad,#player_ads,#portlet-advertisement-left,#portlet-advertisement-right,#post5_adbox,#post_ad,#priceGrabberAd,#print_ads,#printads,#product-adsense,#promo-ad,#promoAds,#ps-vertical-ads,#pub468x60,#publicidad,#pushdown_ad,#r1SoftAd,#rail_ad1,#rail_ad2,#realEstateAds,#rect_ad,#rectangle-ad,#rectangle_ad,#refine-300-ad,#region-top-ad,#rh-ad-container,#rh_tower_ad,#rhsadvert,#right-ad,#right-ad-skin,#right-box-ad,#rightAd,#rightAd300x250,#rightAdColumn,#rightAd_rdr,#rightColAd,#rightColumnMpuAd,#rightColumnSkyAd,#right_ad_wrapper,#right_ads,#right_advertisement,#right_advertising,#rightad,#rightadvertbar-doubleclickads,#rightbar-ad,#rightside_ad,#ros_ad,#rotatingads,#row2AdContainer,#rtMod_ad,#sAdsBox,#sb-ad-sq,#search-google-ads,#search_ads,#secondBoxAdContainer,#section-container-ddc_ads,#section_advertorial_feature,#servfail-ads,#sew-ad1,#shoppingads,#show-ad,#side-ad,#side-ad-container,#sideAd,#sideBarAd,#side_ad_wrapper,#side_ads_by_google,#sidead,#sidebar-125x125-ads,#sidebar-125x125-ads-below-index,#sidebar-ad-boxes,#sidebar-ad-space,#sidebar-ad-wrap,#sidebar-ads,#sidebar2ads,#sidebar_ad_widget,#sidebar_ads,#sidebar_sponsoredresult_body,#sidebarad,#sideline-ad,#single-mpu,#site-leaderboard-ads,#site_top_ad,#sky-ad,#skyAd,#skyScrapperAd,#sky_ad,#skyscraper-ad,#skyscraperAd,#skyscraper_ad,#skyscraper_advert,#sliderAdHolder,#slideshow_ad_300x250,#sm-banner-ad,#small_ad,#smallerAd,#speeds_ads,#speeds_ads_fstitem,#sphereAd,#splinks,#sponLinkDiv_1,#sponlink,#sponsAds,#sponsLinks,#spons_left,#sponseredlinks,#sponsor-search,#sponsorAd1,#sponsorAd2,#sponsorAdDiv,#sponsorLinks,#sponsorTextLink,#sponsor_banderole,#sponsor_box,#sponsor_deals,#sponsor_panSponsor,#sponsored,#sponsored-ads,#sponsored-features,#sponsored-links,#sponsored-resources,#sponsored1,#sponsoredBox1,#sponsoredBox2,#sponsoredLinks,#sponsoredList,#sponsoredResults,#sponsoredSiteMainline,#sponsoredSiteSidebar,#sponsored_ads_v4,#sponsored_content,#sponsored_game_row_listing,#sponsored_links,#sponsoredlinks,#sponsoredlinks_cntr,#sponsoredresults_top,#sponsorlink,#spotlightAds,#spotlightad,#squareAd,#squareAdSpace,#square_ad,#start_middle_container_advertisment,#sticky-ad,#stickyBottomAd,#story-ad-a,#story-ad-b,#story-sponsoredlinks,#storyAd,#storyAdWrap,#subpage-ad-right,#subpage-ad-top,#swads,#synch-ad,#tabAdvertising,#tblAd,#tbl_googlead,#template_ad_leaderboard,#tertiary_advertising,#text-ad,#textAd,#textAds,#text_ad,#text_advert,#the-last-ad-standing,#thefooterad,#themis-ads,#tile-ad,#tmglBannerAd,#top-ad,#top-ad-container,#top-ad-menu,#top-ads,#top-ads-tabs,#top-advertisement,#top-banner-ad,#top-search-ad-wrapper,#topAd,#topAd728x90,#topAdBanner,#topAdContainer,#topAdSenseDiv,#topAds,#topAdsContainer,#topAdvert,#topBannerAd,#topNavLeaderboardAdHolder,#top_ad,#top_ad_area,#top_ad_game,#top_ad_wrapper,#top_ads,#top_advertise,#top_advertising,#top_wide_ad,#topad,#topad_left,#topad_right,#topadblock,#topads,#topadzone,#topcustomad,#toprightAdvert,#toptextad,#towerad,#twogamesAd,#txt_link_ads,#undergameAd,#upperMpu,#upperad,#urban_contentad_article,#v_ad,#vert_ad,#vertical_ad,#vertical_ads,#video_cnv_ad,#video_overlay_ad,#walltopad,#welcomeAdsContainer,#welcome_ad_mrec,#welcome_advertisement,#wgtAd,#whatsnews_top_ad,#whitepaper-ad,#whoisRightAdContainer,#wide_ad_unit_top,#widget_advertisement,#wrapAdRight,#wrapAdTop,#y708-ad-expedia,#y708-ad-lrec,#y708-ad-partners,#y708-ad-ysm,#y708-advertorial-marketplace,#yahoo-ads,#yahoo-sponsors,#yahoo_ads,#yahoo_ads_2010,#yahooad-tbl,#yan-sponsored,#ybf-ads,#yfi_fp_ad_mort,#yfi_fp_ad_nns,#yfi_pf_ad_mort,#ygrp-sponsored-links,#ymap_adbanner,#yn-gmy-ad-lrec,#yreSponsoredLinks,#ysm_ad_iframe,#zoneAdserverMrec,#zoneAdserverSuper,.ADBAR,.ADPod,.Ad120x600,.Ad160x600,.Ad247x90,.Ad300x250,.Ad300x250L,.Ad728x90,.AdBox,.AdBox7,.AdContainerBox308,.AdHere,.AdInfo,.AdPlaceHolder,.AdRingtone,.AdSense,.AdSpace,.AdTitle,.AdUnit,.AdUnit300,.Ad_C,.Ad_D_Wrapper,.Ad_E_Wrapper,.Ad_Right,.Ads,.AdsBoxSection,.AdsLinks1,.AdsLinks2,.AdvertMidPage,.AdvertiseWithUs,.AdvertisementTextTag,.ArticleInlineAd,.BannerAd,.BlockAd,.BottomAffiliate,.CG_adkit_leaderboard,.CommentAd,.DeptAd,.FT_Ad,.FlatAds,.HPNewAdsBannerDiv,.HomeContentAd,.LeftTowerAd,.M2Advertisement,.MD_adZone,.MPU,.MPUHolder,.MiddleAdContainer,.OpenXad,.PU_DoubleClickAdsContent,.Post5ad,.RBboxAd,.RelatedAds,.RightRailTop300x250Ad,.RightSponsoredAdTitle,.RightTowerAd,.SidebarAd,.SponsoredAdTitle,.SponsoredContent,.SponsoredLinks,.SponsoredLinksGrayBox,.StandardAdLeft,.StandardAdRight,.TextAd,.TheEagleGoogleAdSense300x250,.TopAd,.TopAdL,.TopAdR,.UIStandardFrame_SidebarAds,.UIWashFrame_SidebarAds,.UnderAd,.VerticalAd,.WidgetAdvertiser,.ad-160x600,.ad-250,.ad-300,.ad-300-block,.ad-300-blog,.ad-300x100,.ad-300x250,.ad-600,.ad-728,.ad-adlink-bottom,.ad-adlink-side,.ad-background,.ad-banner,.ad-bigsize,.ad-block,.ad-blog2biz,.ad-bottom,.ad-box,.ad-break,.ad-btn,.ad-btn-heading,.ad-button,.ad-cell,.ad-container,.ad-div,.ad-feedback,.ad-filler,.ad-footer,.ad-footer-leaderboard,.ad-google,.ad-gray,.ad-hdr,.ad-head,.ad-holder,.ad-homeleaderboard,.ad-img,.ad-island,.ad-leaderboard,.ad-links,.ad-medium,.ad-medium-two,.ad-mpu,.ad-other,.ad-placeholder,.ad-postText,.ad-poster,.ad-rect,.ad-rectangle,.ad-rectangle-text,.ad-related,.ad-rh,.ad-ri,.ad-right,.ad-right-txt,.ad-section,.ad-sidebar300,.ad-slot,.ad-slot-234-60,.ad-slot-300-250,.ad-slot-728-90,.ad-space,.ad-space-mpu-box,.ad-spot,.ad-statement,.ad-text,.ad-tile,.ad-top,.ad-top-left,.ad-unit,.ad-unit-300,.ad-unit-300-wrapper,.ad-unit-anchor,.ad-vtu,.ad-wrap,.ad-wrapper,.ad0,.ad1,.ad10,.ad120,.ad160,.ad160x600,.ad18,.ad19,.ad2,.ad21,.ad250c,.ad3,.ad300,.ad300_250,.ad300x100,.ad300x250,.ad300x250Top,.ad300x250_container,.ad300x250box,.ad300x600,.ad310,.ad336x280,.ad343x290,.ad450,.ad468,.ad468_60,.ad468x60,.ad6,.ad620x70,.ad626X35,.ad7,.ad728,.ad728_90,.ad728x90,.ad728x90_container,.ad8,.adAgate,.adBanner,.adBannerTyp1,.adBannerTypSortableList,.adBannerTypW300,.adBgBottom,.adBgMId,.adBgTop,.adBox,.adBoxContent,.adBoxSidebar,.adBoxSingle,.adCMRight,.adColumn,.adContainer,.adContour,.adCreative,.adDiv,.adElement,.adFrame,.adFtr,.adFullWidthMiddle,.adGoogle,.adHeader,.adHeadline,.adHolder,.adHome300x250,.adInNews,.adLabel,.adLeader,.adLeaderForum,.adLeaderboard,.adLeft,.adMastheadLeft,.adMastheadRight,.adMkt2Colw,.adModule,.adNewsChannel,.adNoOutline,.adNoticeOut,.adObj,.adPageBorderL,.adPageBorderR,.adPanel,.adRect,.adRight,.adSelfServiceAdvertiseLink,.adServer,.adSlot,.adSpBelow,.adSpace,.adSpacer,.adSpot,.adSpot-searchAd,.adSpot-textBox,.adSpot-twin,.adSpotIsland,.adSquare,.adSummary,.adSuperboard,.adTag,.adText,.adTileWrap,.adTiler,.adTitle,.adTout,.adTxt,.adWithTab,.adWrap,.adWrapper,.ad_1,.ad_125,.ad_130x90,.ad_160,.ad_160x600,.ad_2,.ad_3,.ad_300,.ad_300_250,.ad_300x250,.ad_336,.ad_336x280,.ad_350x250,.ad_468,.ad_600,.ad_728,.ad_728x90,.ad_amazon,.ad_biz,.ad_block_338,.ad_bottom_leaderboard,.ad_box,.ad_box2,.ad_callout,.ad_caption,.ad_contain,.ad_container,.ad_content,.ad_content_wide,.ad_contents,.ad_descriptor,.ad_footer,.ad_framed,.ad_front_promo,.ad_header,.ad_hpm,.ad_info_block,.ad_label,.ad_launchpad,.ad_leader,.ad_leaderboard,.ad_left,.ad_linkunit,.ad_loc,.ad_lrec,.ad_medrect,.ad_mpu,.ad_mr,.ad_mrec,.ad_mrec_title_article,.ad_notice,.ad_p360,.ad_partner,.ad_partners,.ad_plus,.ad_post,.ad_power,.ad_rectangle,.ad_right,.ad_sidebar,.ad_skyscraper,.ad_slug_table,.ad_space,.ad_space_300_250,.ad_sponsor,.ad_sponsoredsection,.ad_spot_b,.ad_spot_c,.ad_square_r,.ad_square_top,.ad_text,.ad_title,.ad_top,.ad_top_leaderboard,.ad_tower,.ad_unit,.ad_unit_rail,.ad_warning,.ad_wide,.ad_wrap,.ad_wrapper,.ad_wrapper_fixed,.ad_zone,.adarea,.adbanner,.adbannerright,.adbar,.adborder,.adbot,.adbottom,.adbottomright,.adbox,.adbox-outer,.adbox_366x280,.adbox_468X60,.adbox_bottom,.adboxclass,.adcode,.adcolumn_wrapper,.adcontainer,.adcopy,.addiv,.adfoot,.adfootbox,.adframe,.adhead,.adheader,.adheader100,.adhere,.adhoriz,.adi,.adinfo,.adinside,.adjlink,.adkit,.adkit-advert,.adkit-lb-footer,.adlabel-horz,.adlabel-vert,.adleft,.adline,.adlink,.adlist,.adlnklst,.admarker,.admedrec,.admessage,.admodule,.admpu,.adnotice,.adops,.adpadding,.adpic,.adright,.adrow,.adrow-post,.adrule,.ads-banner,.ads-categories-bsa,.ads-favicon,.ads-links-general,.ads-mpu,.ads-profile,.ads-right,.ads-sidebar,.ads-sky,.ads-text,.ads2,.ads3,.ads:not(body),.adsArea,.adsBelowHeadingNormal,.adsBox,.adsImages,.adsTextHouse,.adsTower2,.adsTowerWrap,.adsWithUs,.ads_300,.ads_728x90,.ads_big,.ads_big-half,.ads_brace,.ads_catDiv,.ads_container,.ads_disc_anchor,.ads_disc_leader,.ads_disc_lwr_square,.ads_disc_skyscraper,.ads_disc_square,.ads_div,.ads_header,.ads_mpu,.ads_outer,.ads_right,.ads_sc_bl_i,.ads_sc_tl_i,.ads_side,.ads_takeover,.ads_tr,.adsborder,.adsbyyahoo,.adsc,.adscontainer,.adscreen,.adsection_a2,.adsection_c2,.adsense,.adsense-heading,.adsense-right,.adsense-title,.adsenseBlock,.adsenseContainer,.adsenseblock,.adsenselr,.adsensesq,.adsidebox,.adsingle,.adslogan,.adspace,.adspace-MR,.adspace_buysell,.adspace_rotate,.adspacer,.adspot,.adstrip,.adtag,.adtext,.adtext_gray,.adtext_onwhite,.adtop,.adtravel,.adv-mpu,.adverTag,.adver_cont_below,.advert,.advert-box,.advert-head,.advert-horizontal,.advert-mpu,.advert-skyscraper,.advert-text,.advertCont,.advertContainer,.advertHeadline,.advertRight,.advertText,.advert_468x60,.advert_box,.advert_cont,.advert_leaderboard,.advert_note,.advertise,.advertise-here,.advertise-homestrip,.advertise-horz,.advertise-leaderboard,.advertise-vert,.advertiseContainer,.advertiseText,.advertisement,.advertisement-728x90,.advertisement-block,.advertisement-top,.advertisement468,.advertisementColumnGroup,.advertisementContainer,.advertisementLabel,.advertisementPanel,.advertisement_caption,.advertisement_g,.advertisement_header,.advertisement_horizontal,.advertiser,.advertising,.advertising-header,.advertising2,.advertisingTable,.advertising_block,.advertisment,.advertisment_two,.advertize,.advertorial,.advertorial-promo-box,.adverts,.advt,.advt-banner-3,.advt300,.advt720,.adwordListings,.adwrapper,.adwrapper-lrec,.adwrapper948,.affiliate,.affiliate-link,.affiliate-sidebar,.affiliateAdvertText,.agi-adsaleslinks,.alt_ad,.anchorAd,.aolSponsoredLinks,.aopsadvert,.article-ads,.articleAd,.articleAds,.articleAdsL,.articleEmbeddedAdBox,.article_ad,.article_adbox,.article_mpu_box,.articleads,.aseadn,.aux-ad-widget-2,.b-astro-sponsored-links_horizontal,.b-astro-sponsored-links_vertical,.banner-ad,.banner-ads,.banner-adverts,.banner300x100,.banner300x250,.banner468,.bannerAd,.bannerAdWrapper300x250,.bannerAdWrapper730x86,.banner_300x250,.banner_728x90,.banner_ad,.banner_ad_footer,.banner_ad_leaderboard,.bannerad,.barkerAd,.base-ad-mpu,.bgnavad,.big-ads,.bigAd,.big_ad,.big_ads,.bigad,.billboard_ad,.block-ad,.block-adsense,.block_ad,.blocked-ads,.blog-ads-container,.blogAd,.blogAdvertisement,.blogBigAd,.blog_ad,.body_ad,.body_sponsoredresults_bottom,.body_sponsoredresults_middle,.body_sponsoredresults_top,.bookseller-header-advt,.bottomAd,.bottomAds,.bottom_ad_block,.bottom_sponsor,.bottomad,.bottomrightrailAd,.bottomvidad,.box-ad,.box-ads,.boxAd,.box_ad,.box_advertisment_62_border,.box_content_ad,.box_content_ads,.boxad,.bps-ad-wrapper,.bps-advertisement,.bps-advertisement-inline-ads,.bullet-sponsored-links,.bullet-sponsored-links-gray,.burstContentAdIndex,.buttonAd,.buttonAds,.buttonadbox,.bx_ad,.bx_ad_right,.cA-adStrap,.cColumn-TextAdsBox,.care2_adspace,.cb-ad-container,.cb_footer_sponsor,.cb_navigation_ad,.cbstv_ad_label,.cbzadvert,.cdAdTitle,.cdmainlineSearchAdParent,.cdsidebarSearchAdParent,.centerAd,.center_ad,.centerad,.clearerad,.cm_ads,.cms-Advert,.cnn160AdFooter,.cnnAd,.cnnMosaic160Container,.cnnStoreAd,.cnnStoryElementBoxAd,.cnnWCAdBox,.cnnWireAdLtgBox,.cnn_728adbin,.cnn_adcntr300x100,.cnn_adspc336cntr,.cnn_adtitle,.column2-ad,.conductor_ad,.confirm_ad_left,.confirm_ad_right,.confirm_leader_ad,.consoleAd,.container-adwords,.container_serendipity_plugin_google_adsense,.contentAd,.content_ad,.content_adsq,.contentad,.contenttextad,.contest_ad,.cp_ad,.cpmstarHeadline,.cpmstarText,.cs-mpu,.cspAd,.ct_ad,.cubeAd,.cube_ads,.currency_ad,.darla_ad,.dartAdImage,.dart_ad,.dart_tag,.dartadvert,.dartiframe,.dc-ad,.dcAdvertHeader,.deckAd,.deckads,.detail-ads,.detailMpu,.divAd,.divads,.divider_ad,.dmco_advert_iabrighttitle,.download_ad,.downloadad,.dynamic_ad,.e-ad,.ec-ads,.entryad,.ez-clientAd,.f_Ads,.featuredAds,.featuredadvertising,.flagads,.flash_advert,.flashad,.flexiad,.flipbook_v2_sponsor_ad,.footerAd,.footerAdModule,.footerTextAd,.footer_ad,.footer_ads,.footer_block_ad,.footer_line_ad,.footerad,.ft-ad,.ftdContentAd,.full_ad_box,.g3rtn-ad-site,.g_ggl_ad,.ga-textads-bottom,.ga-textads-top,.gads_cb,.gglAds,.googads,.google-ad-container,.google-ads,.google-ads-boxout,.google-ads-slim,.google-right-ad,.google-sponsored-ads,.google468_60,.googleAd,.googleAd-content,.googleAd-list,.googleAdBox,.googleAdSense,.googleAd_body,.googleAds,.googleAds_article_page_above_comments,.googleAdsense,.googleProfileAd,.google_ads_bom_title,.googlead,.googleaddiv,.googleaddiv2,.googleads,.googleads_300x250,.googleads_title,.gpAds,.gradientAd,.gsfAd,.gt_ad,.gt_ad_300x250,.gt_ad_728x90,.gt_adlabel,.gutter-ad-left,.gutter-ad-right,.h_Ads,.h_ad,.hd_advert,.header-ad,.header-advert,.headerAd,.headerAds,.headerAdvert,.header_ad,.header_ad_center,.header_advertisment,.hi5-ad,.highlightsAd,.hm_advertisment,.home-ad-links,.homeAd,.homeMediumAdGroup,.home_ad_bottom,.homead,.homepage-ad,.homepageFlexAdOuter,.homepageMPU,.hor_ad,.horizontalAd,.horizontal_ad,.hortad,.houseAdsStyle,.hp2-adtag,.hp_ad_cont,.hp_ad_text,.hp_t_ad,.hp_w_ad,.ic-ads,.ico-adv,.idMultiAd,.image-advertisement,.imageads,.in-page-ad,.in-story-text-ad,.indy_googleads,.inline-mpu-left,.inlineSideAd,.inline_ad_title,.inlinead,.inlist-ad,.inner-advt-banner-3,.innerAds,.innerad,.inpostad,.islandAd,.islandAdvert,.islandad,.jp-advertisment-promotional,.js-advert,.kw_advert,.kw_advert_pair,.l_ad_sub,.l_banner.ads_show_if,.largeRectangleAd,.leader_ad,.leaderboardAd,.left-ad,.leftAd,.left_ads,.leftad,.leftbar_ad_160_600,.leftnavad,.lgRecAd,.lg_ad,.linead,.link_advertise,.live-search-list-ad-container,.log_ads,.lowerAds,.m4-adsbygoogle,.m_banner_ads,.macAd,.macad,.main-ad,.main-tabs-ad-block,.main_ad,.main_adbox,.map_media_banner_ad,.marginadsthin,.marketing-ad,.mdl-ad,.media-advert,.mediaAd,.mediaAdContainer,.medium-rectangle-ad,.menuItemBannerAd,.messageBoardAd,.micro_ad,.mid_ad,.midad,.min_navi_ad,.miniad,.mobile-sponsoring,.mod-ad-lrec,.mod-ad-n,.mod-adopenx,.mod_admodule,.module-ad-small,.module-ads,.moduleAdvertContent,.modulegad,.moduletable-advert,.moduletablesquaread,.mpu,.mpu-ad,.mpu-footer,.mpu-fp,.mpu-title,.mpu-top-left,.mpu-top-right,.mpuAd,.mpuBox,.mpuContainer,.mpuTextAd,.mpu_ad,.mpu_gold,.mpu_holder,.mpu_platinum,.mpu_text_ad,.mpuholderportalpage,.mrec_advert,.ms-ads-link,.msfg-shopping-mpu,.mwaads,.nSponsoredLcContent,.nSponsoredLcTopic,.nadvt300,.narrow_ad_unit,.narrow_ads,.naviad,.nba300Ad,.nbaT3Ad160,.nbaTVPodAd,.nbaTwo130Ads,.nbc_ad_carousel_wrp,.newTopAdContainer,.newad,.nf-adbox,.nn-mpu,.noAdForLead,.normalAds,.nrAds,.oas-bottom-ads,.oio-banner-zone,.oio-link-sidebar,.oio-zone-position,.onethirdadholder,.openx,.openx-ad,.other_adv2,.ov_spns,.pageGoogleAd,.pageGoogleAdFlat,.pageLeaderAd,.pagead,.partnersTextLinks,.pencil_ad,.player_ad_box,.player_page_ad_box,.pnp_ad,.podSponsoredLink,.post-ad,.post_ad,.post_sponsor_unit,.postbit_adbit_register,.postbit_adcode,.prebodyads,.premium_ad_container,.promoAd,.promoAds,.promo_ad,.publication-ad,.publicidad,.puff-advertorials,.qa_ad_left,.quigo-ad,.qzvAdDiv,.r_ad_box,.rad_container,.rectad,.rectangleAd,.rectanglead,.redads_cont,.regularad,.relatedAds,.remads,.result_ad,.results_sponsor,.results_sponsor_right,.reviewMidAdvertAlign,.rght300x250,.rhads,.rhs-ad,.rhs-ads-panel,.right-ad,.right-ad-holder,.right-ad2,.right-ads2,.rightAd,.right_ad,.right_ad_text,.right_ads,.right_col_ad,.right_hand_advert_column,.rightad,.rightad_1,.rightad_2,.rightads,.rightadunit,.rightcol_boxad,.rightcoladvert,.rt_ad1_300x90,.rt_ad_300x250,.rt_ad_call,.savvyad_unit,.sb-ad-sq-bg,.sbAdUnitContainer,.sb_adsN,.sb_adsNv2,.sb_adsW,.sb_adsWv2,.scanAd,.sci-ad-main,.sci-ad-sub,.search-results-ad,.search-sponsor,.search-sponsored,.searchAd,.searchSponsoredResultsBox,.search_column_results_sponsored,.search_results_sponsored_top,.section-sponsor,.section_mpu_wrapper,.selfServeAds,.sidbaread,.side-ad,.side-ads,.side_ad,.side_ad2,.sidead,.sideadsbox,.sideadvert,.sidebar-ad,.sidebar-text-ad,.sidebarAd,.sidebarAdUnit,.sidebarAdvert,.sidebar_ad,.sidebar_ad_300_250,.sidebar_box_ad,.sidebarad,.sidebarad_bottom,.sideheadnarrowad,.sideheadsponsorsad,.singleAd,.singleAdsContainer,.singlead,.sitesponsor,.skinAd,.skin_ad_638,.sky-ad,.skyAd,.skyAdd,.sky_ad,.skyscraper-ad,.slideshow-ad,.slinks,.slpBigSlimAdUnit,.slpSquareAdUnit,.sm_ad,.smallSkyAd1,.smallSkyAd2,.small_ad,.small_ads,.smallad-left,.smallsponsorad,.specialAd175x90,.speedyads,.spl_ad,.spl_ad2,.spl_ad_plus,.splitAd,.spons-link,.sponslink,.sponsor-ad,.sponsor-links,.sponsorArea,.sponsorPost,.sponsorPostWrap,.sponsor_line,.sponsor_links,.sponsoradtitle,.sponsorbox,.sponsored,.sponsored-chunk,.sponsored-editorial,.sponsored-links,.sponsored-links-holder,.sponsored-post,.sponsored-results,.sponsored-text,.sponsoredLinks,.sponsoredLinksHeader,.sponsored_ads,.sponsored_box,.sponsored_box_search,.sponsored_by,.sponsored_links,.sponsored_links_title_container,.sponsored_links_title_container_top,.sponsored_links_top,.sponsored_results,.sponsoredibbox,.sponsoredlinks,.sponsoredtextlink_container,.sponsorlink,.sponsorlink2,.spotlightAd,.squareAd,.square_ad,.squared_ad,.ss-ad-mpu,.staticAd,.store-ads,.story_AD,.subad,.subcontent-ad,.supercommentad_left,.supercommentad_right,.supportAdItem,.surveyad,.t10ad,.tab_ad,.tab_ad_area,.tablebordersponsor,.tadsanzeige,.tadsbanner,.tadselement,.tallad,.tblTopAds,.tbl_ad,.teaser-sponsor,.teaserAdContainer,.teaser_adtiles,.text-ad-links,.text-g-advertisement,.text-g-group-short-rec-ad,.text-g-net-grp-google-ads-article-page,.textAd,.textAds,.text_ad,.text_ads,.textad,.textad_headline,.textadbox,.textads,.textlink-ads,.thisIsAd,.thisIsAnAd,.ticket-ad,.tileAds,.title-ad,.title_adbig,.tncms-region-ads,.toolad,.toolbar-ad,.top-ad,.top-ad-space,.top-ads,.top-menu-ads,.topAdWrap,.topAds,.topAdvertisement,.topBannerAd,.top_Ad,.top_ad,.top_ad_728_90,.top_ad_disclaimer,.top_ad_wrapper,.top_ads,.top_advert,.top_advertising_lb,.top_container_ad,.top_sponsor,.topad,.topadbox,.topads,.topadspot,.topcontentadvertisement,.topic_inad,.topstoriesad,.towerAd,.towerAdLeft,.towerAds,.tower_ad_disclaimer,.ts-ad_unit_bigbox,.ts-banner_ad,.ttlAdsensel,.tto-sponsored-element,.twoColumnAd,.twoadcoll,.twoadcolr,.tx_smartadserver_pi1,.txt-ads,.txtadvertise,.type_miniad,.type_promoads,.undertimyads,.usenext,.vertad,.videoAd,.videoBoxAd,.video_ad,.view-promo-mpu-right,.wide-ad,.wide-skyscraper-ad,.wideAdTable,.wide_ad_unit_top,.wide_ads,.widget-entry-ads-160,.wikia_ad_placeholder,.withAds,.wnMultiAd,.wp125ad,.wpn_ad_content,.wsSponsoredLinksRight,.wsTopSposoredLinks,.x03-adunit,.x04-adunit,.y-ads,.y-ads-wide,.y7-advertisement,.yahoo-sponsored,.yahoo_ads,.yan-sponsored,.ygrp-ad,.yrail_ad_wrap,.yrail_ads,.ysmsponsor,.ysponsor,a[href^="http://adserving.liveuniversenetwork.com/"],a[href^="http://latestdownloads.net/download.php?"],a[href^="http://secure.signup-page.com/"],a[href^="http://secure.signup-way.com/"],a[href^="http://www.FriendlyDuck.com/AF_"],a[href^="http://www.adbrite.com/mb/commerce/purchase_form.php?"],a[href^="http://www.friendlyduck.com/AF_"],a[href^="http://www.google.com/aclk?"],a[href^="http://www.liutilities.com/aff"],a[href^="http://www.my-dirty-hobby.com/?sub="],a[href^="http://www.ringtonematcher.com/"],#mbEnd[cellspacing="0"][style="padding: 0pt; white-space: nowrap;"],div#mclip_container:first-child:last-child,div#tads.c,table.ra[align="left"][width="30%"],table.ra[align="right"][width="30%"] { visibility:hidden !important; display:none !important; }</STYLE><BODY> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<TABLE summary="layout" width="66%" border="0" cellpadding="0" cellspacing="0"><TBODY><TR><TD><TABLE summary="layout" width="100%" border="0" cellpadding="2" cellspacing="1"> +<TBODY><TR><TD class="header">Network Working Group</TD><TD class="header">E. Hammer-Lahav, Ed.</TD></TR> +<TR><TD class="header">Internet-Draft</TD><TD class="header">Yahoo!</TD></TR> +<TR><TD class="header">Intended status: Standards Track</TD><TD class="header">D. Recordon</TD></TR> +<TR><TD class="header">Expires: December 31, 2010</TD><TD class="header">Facebook</TD></TR> +<TR><TD class="header"> </TD><TD class="header">D. Hardt</TD></TR> +<TR><TD class="header"> </TD><TD class="header">Microsoft</TD></TR> +<TR><TD class="header"> </TD><TD class="header">June 29, 2010</TD></TR> +</TBODY></TABLE></TD></TR></TBODY></TABLE> +<H1><BR>The OAuth 2.0 Protocol<BR>draft-ietf-oauth-v2-09</H1> + +<H3>Abstract</H3> + +<P> + This specification describes the OAuth 2.0 protocol. -</p> -<h3>Status of this Memo</h3> -<p> +</P> +<H3>Status of this Memo</H3> +<P> This Internet-Draft is submitted in full -conformance with the provisions of BCP 78 and BCP 79.</p> -<p> +conformance with the provisions of BCP 78 and BCP 79.</P> +<P> Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current -Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.</p> -<p> +Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.</P> +<P> Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite -them other than as “work in progress.”</p> -<p> -This Internet-Draft will expire on October 23, 2010.</p> +them other than as “work in progress.”</P> +<P> +This Internet-Draft will expire on December 31, 2010.</P> -<h3>Copyright Notice</h3> -<p> +<H3>Copyright Notice</H3> +<P> Copyright (c) 2010 IETF Trust and the persons identified as the -document authors. All rights reserved.</p> -<p> +document authors. All rights reserved.</P> +<P> This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of @@ -191,3229 +196,2712 @@ carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as -described in the Simplified BSD License.</p> -<a name="toc"></a><br /><hr /> -<h3>Table of Contents</h3> -<p class="toc"> -<a href="#anchor1">1.</a> -Authors<br /> -<a href="#anchor2">2.</a> -Introduction<br /> - <a href="#anchor3">2.1.</a> -Terminology<br /> - <a href="#anchor4">2.2.</a> -Overview<br /> - <a href="#anchor5">2.3.</a> -Example<br /> - <a href="#anchor6">2.4.</a> -Notational Conventions<br /> - <a href="#anchor7">2.5.</a> -Conformance<br /> -<a href="#get_token">3.</a> -Obtaining an Access Token<br /> - <a href="#anchor8">3.1.</a> -Authorization Endpoint<br /> - <a href="#anchor9">3.2.</a> -Token Endpoint<br /> - <a href="#anchor10">3.3.</a> -Flow Parameters<br /> - <a href="#client_id">3.4.</a> -Client Credentials<br /> - <a href="#anchor11">3.5.</a> -User Delegation Flows<br /> - <a href="#user_agent_flow">3.5.1.</a> -User-Agent Flow<br /> - <a href="#web_server_flow">3.5.2.</a> -Web Server Flow<br /> - <a href="#device_flow">3.5.3.</a> -Device Flow<br /> - <a href="#anchor24">3.6.</a> -End User Credentials Flows<br /> - <a href="#username_password_flow">3.6.1.</a> -Username and Password Flow<br /> - <a href="#anchor26">3.7.</a> -Autonomous Client Flows<br /> - <a href="#client_credentials_flow">3.7.1.</a> -Client Credentials Flow<br /> - <a href="#assertion_flow">3.7.2.</a> -Assertion Flow<br /> -<a href="#token_refresh">4.</a> -Refreshing an Access Token<br /> -<a href="#access_resource">5.</a> -Accessing a Protected Resource<br /> - <a href="#authz_header">5.1.</a> -The Authorization Request Header<br /> - <a href="#bearer_token">5.2.</a> -Bearer Token Requests<br /> - <a href="#query_param">5.2.1.</a> -URI Query Parameter<br /> - <a href="#body_param">5.2.2.</a> -Form-Encoded Body Parameter<br /> - <a href="#crypto_token">5.3.</a> -Cryptographic Tokens Requests<br /> - <a href="#hmac-sha256">5.3.1.</a> -The 'hmac-sha256' Algorithm<br /> -<a href="#anchor29">6.</a> -Identifying a Protected Resource<br /> - <a href="#authn_header">6.1.</a> -The WWW-Authenticate Response Header<br /> - <a href="#anchor30">6.1.1.</a> -The 'realm' Attribute<br /> - <a href="#authz_uri_attribute">6.1.2.</a> -The 'authorization-uri' Attribute<br /> - <a href="#anchor31">6.1.3.</a> -The 'algorithms' Attribute<br /> - <a href="#anchor32">6.1.4.</a> -The 'error' Attribute<br /> -<a href="#anchor33">7.</a> -Security Considerations<br /> -<a href="#anchor34">8.</a> -IANA Considerations<br /> -<a href="#anchor35">9.</a> -Acknowledgements<br /> -<a href="#anchor36">Appendix A.</a> -Differences from OAuth 1.0a<br /> -<a href="#anchor37">Appendix B.</a> -Document History<br /> -<a href="#rfc.references1">10.</a> -References<br /> - <a href="#rfc.references1">10.1.</a> -Normative References<br /> - <a href="#rfc.references2">10.2.</a> -Informative References<br /> -<a href="#rfc.authors">§</a> -Authors' Addresses<br /> -</p> -<br clear="all" /> - -<a name="anchor1"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.1"></a><h3>1. -Authors</h3> - -<p> - This specification was authored with the participation and based on the work of - Allen Tom (Yahoo!), Brian Eaton (Google), Brent Goldman (Facebook), Luke Shepard - (Facebook), Raffi Krikorian (Twitter), and Yaron Goland (Microsoft). - -</p> -<a name="anchor2"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.2"></a><h3>2. -Introduction</h3> - -<p> +described in the Simplified BSD License.</P> +<A name="toc"></A><BR><HR> +<H3>Table of Contents</H3> +<P class="toc"> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor1">1.</A> +Introduction<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor2">1.1.</A> +Notational Conventions<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor3">1.2.</A> +Terminology<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor4">1.3.</A> +Overview<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor5">1.4.</A> +Client Profiles<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor6">1.4.1.</A> +Web Server<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-agent">1.4.2.</A> +User-Agent<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor7">1.4.3.</A> +Native Application<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor8">1.4.4.</A> +Autonomous<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#client-authentication">2.</A> +Client Credentials<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor9">2.1.</A> +Basic Client Credentials<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-authorization">3.</A> +Obtaining End-User Authorization<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor10">3.1.</A> +Authorization Response<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#auth-error">3.2.</A> +Error Response<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#auth-error-codes">3.2.1.</A> +Error Codes<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#obtaining-token">4.</A> +Obtaining an Access Token<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-grant-types">4.1.</A> +Access Grant Types<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor11">4.1.1.</A> +Authorization Code<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor12">4.1.2.</A> +Resource Owner Basic Credentials<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor13">4.1.3.</A> +Assertion<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#token-refresh">4.1.4.</A> +Refresh Token<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-token-response">4.2.</A> +Access Token Response<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#token-error">4.3.</A> +Error Response<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#token-error-codes">4.3.1.</A> +Error Codes<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-resource">5.</A> +Accessing a Protected Resource<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor14">5.1.</A> +Authenticated Requests<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#authz-header">5.1.1.</A> +The Authorization Request Header Field<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#query-param">5.1.2.</A> +URI Query Parameter<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#body-param">5.1.3.</A> +Form-Encoded Body Parameter<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#authn-header">5.2.</A> +The WWW-Authenticate Response Header Field<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#resource-error-codes">5.2.1.</A> +Error Codes<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor15">6.</A> +Extensibility<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor16">6.1.</A> +Defining New Client Credentials Types<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor17">6.2.</A> +Defining New Endpoint Parameters<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor18">6.3.</A> +Defining New Header Field Parameters<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor19">6.4.</A> +Defining New Access Grant Types<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor20">7.</A> +Security Considerations<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor21">8.</A> +IANA Considerations<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#parameters-registry">8.1.</A> +The OAuth Parameters Registry<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor22">8.1.1.</A> +Registration Template<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor23">8.1.2.</A> +Example<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor24">Appendix A.</A> +Examples<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor25">Appendix B.</A> +Contributors<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor26">Appendix C.</A> +Acknowledgements<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#anchor27">Appendix D.</A> +Document History<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#rfc.references1">9.</A> +References<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#rfc.references1">9.1.</A> +Normative References<BR> + <A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#rfc.references2">9.2.</A> +Informative References<BR> +<A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#rfc.authors">§</A> +Authors' Addresses<BR> +</P> +<BR clear="all"> + +<A name="anchor1"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1"></A><H3>1. +Introduction</H3> + +<P> With the increasing use of distributed web services and cloud computing, third-party applications require access to server-hosted resources. These resources are usually protected and require authentication using the resource owner's credentials (typically a - username and password). In the traditional client-server authentication model, a client - accessing a protected resource on a server presents the resource owner's credentials in - order to authenticate and gain access. + username and password). + +</P> +<P> + In the traditional client-server authentication model, the client accesses a protected + resource on the server by presenting the resource owner's credentials in order to + authenticate and gain access. OAuth introduces a third role to the traditional model: the + resource owner. In OAuth, the client (which is usually not the resource owner, but is + acting on its behalf) requests access to resources controlled by the resource owner and + hosted by the resource server. + +</P> +<P> + In addition to removing the need for resource owners to share their credentials, resource + owners require the ability to restrict access to a limited subset of the resources they + control, to limit access duration, or to limit access to the methods supported by these + resources. -</p> -<p> - Resource owners should not be required to share their credentials when granting third-party - applications access to their protected resources. They should also have the ability to - restrict access to a limited subset of the resources they control, to limit access - duration, or to limit access to the methods supported by these resources. +</P> +<P> + Instead of using the resource owner's credentials to access protected resources, clients + obtain an access token (a string which denotes a specific scope, duration, and other + attributes). The format and structure of access tokens is beyond the scope of this + specification. -</p> -<p> - OAuth provides a method for making authenticated HTTP requests using a token - an - identifier used to denote an access grant with specific scope, duration, and other - attributes. Tokens are issued to third-party clients by an authorization server with the - approval of the resource owner. Instead of sharing their credentials with the client, - resource owners grant access by authenticating directly with the authorization server which - in turn issues a token to the client. The client uses the token (and optional secret) to - authenticate with the resource server and gain access. +</P> +<P> + Tokens are issued to third-party clients by an authorization server with the approval of + the resource owner. The client uses the access token to access the protected resources + hosted by the resource server. The interaction between the authorization server and + resource server is beyond the scope of this specification. -</p> -<p> +</P> +<P> For example, a web user (resource owner) can grant a printing service (client) access to her protected photos stored at a photo sharing service (resource server), without sharing her username and password with the printing service. Instead, she authenticates directly with the photo sharing service (authorization server) which issues the printing service delegation-specific credentials (token). -</p> -<p> - The use of OAuth with any other transport protocol than <a class='info' href='#RFC2616'>HTTP<span> (</span><span class='info'>Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., and T. Berners-Lee, “Hypertext Transfer Protocol -- HTTP/1.1,” June 1999.</span><span>)</span></a> [RFC2616] - (or HTTP over TLS 1.0 as defined by <a class='info' href='#RFC2818'>[RFC2818]<span> (</span><span class='info'>Rescorla, E., “HTTP Over TLS,” May 2000.</span><span>)</span></a> is undefined. +</P> +<P> + This specification defines the use of OAuth over <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2616">HTTP<SPAN> (</SPAN><SPAN class="info">Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., and T. Berners-Lee, “Hypertext Transfer Protocol -- HTTP/1.1,” June 1999.</SPAN><SPAN>)</SPAN></A> [RFC2616] + (or HTTP over TLS as defined by <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2818">[RFC2818]<SPAN> (</SPAN><SPAN class="info">Rescorla, E., “HTTP Over TLS,” May 2000.</SPAN><SPAN>)</SPAN></A>). Other specifications may + extend it for use with other transport protocols. -</p> -<a name="anchor3"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.2.1"></a><h3>2.1. -Terminology</h3> - -<p> - </p> -<blockquote class="text"><dl> -<dt>resource server</dt> -<dd> - - An <a class='info' href='#RFC2616'>HTTP<span> (</span><span class='info'>Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., and T. Berners-Lee, “Hypertext Transfer Protocol -- HTTP/1.1,” June 1999.</span><span>)</span></a> [RFC2616] server capable of accepting authenticated - resource requests using the OAuth protocol. +</P> +<A name="anchor2"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1.1"></A><H3>1.1. +Notational Conventions</H3> + +<P> + The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD + NOT', 'RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as + described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2119">[RFC2119]<SPAN> (</SPAN><SPAN class="info">Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.</SPAN><SPAN>)</SPAN></A>. + +</P> +<P> + This document uses the Augmented Backus-Naur Form (ABNF) notation of + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#I-D.ietf-httpbis-p1-messaging">[I‑D.ietf‑httpbis‑p1‑messaging]<SPAN> (</SPAN><SPAN class="info">Fielding, R., Gettys, J., Mogul, J., Nielsen, H., Masinter, L., Leach, P., Berners-Lee, T., and J. Reschke, “HTTP/1.1, part 1: URIs, Connections, and Message Parsing,” March 2010.</SPAN><SPAN>)</SPAN></A>. Additionally, the following rules are + included from <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2617">[RFC2617]<SPAN> (</SPAN><SPAN class="info">Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</SPAN><SPAN>)</SPAN></A>: realm, auth-param; from + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC3986">[RFC3986]<SPAN> (</SPAN><SPAN class="info">Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</SPAN><SPAN>)</SPAN></A>: URI-Reference; and from + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#I-D.ietf-httpbis-p1-messaging">[I‑D.ietf‑httpbis‑p1‑messaging]<SPAN> (</SPAN><SPAN class="info">Fielding, R., Gettys, J., Mogul, J., Nielsen, H., Masinter, L., Leach, P., Berners-Lee, T., and J. Reschke, “HTTP/1.1, part 1: URIs, Connections, and Message Parsing,” March 2010.</SPAN><SPAN>)</SPAN></A>: OWS, RWS, and quoted-string. + +</P> +<P> + Unless otherwise noted, all the protocol parameter names and values are case sensitive. + +</P> +<A name="anchor3"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1.2"></A><H3>1.2. +Terminology</H3> + +<P> + </P> +<BLOCKQUOTE class="text"><DL> +<DT>protected resource</DT> +<DD> + + An access-restricted resource which can be obtained using an OAuth-authenticated + request. -</dd> -<dt>protected resource</dt> -<dd> +</DD> +<DT>resource server</DT> +<DD> - An access-restricted resource which can be obtained from a resource server using - an OAuth-authenticated request. + A server capable of accepting and responding to protected resource requests. -</dd> -<dt>client</dt> -<dd> +</DD> +<DT>client</DT> +<DD> - An HTTP client capable of making authenticated requests for protected resources using - the OAuth protocol. + An application obtaining authorization and making protected resource requests. -</dd> -<dt>resource owner</dt> -<dd> +</DD> +<DT>resource owner</DT> +<DD> + + An entity capable of granting access to a protected resource. + - An entity capable of granting access to a protected resource. +<BLOCKQUOTE class="text"><DL> +<DT>end-user</DT> +<DD> + + A human resource owner. + +</DD> +</DL></BLOCKQUOTE> -</dd> -<dt>end user</dt> -<dd> - - A human resource owner. - -</dd> -<dt>access token</dt> -<dd> - - A unique identifier used by the client to make authenticated requests on behalf of - the resource owner. Access tokens may have a matching secret. +</DD> +<DT>token</DT> +<DD> + + A string representing an access authorization issued to the client. The string is + usually opaque to the client and can self-contain the authorization information in a + verifiable manner (i.e. signed), or denotes an identifier used to retrieve the + information. Tokens represent a specific scope, duration, and other authorization + attributes granted by the resource owner and enforced by the resource server and + authorization servers. + + +<BLOCKQUOTE class="text"><DL> +<DT>access token</DT> +<DD> + + A token used by the client to make authenticated requests on behalf of the resource + owner. + +</DD> +<DT>refresh token</DT> +<DD> + + A token used by the client to obtain a new access token without having to involve + the resource owner. + +</DD> +<DT>authorization code</DT> +<DD> + A short-lived token representing the access grant provided by the end-user. The + authorization code is used to obtain an access token and a refresh token. + +</DD> +</DL></BLOCKQUOTE> -</dd> -<dt>authorization server</dt> -<dd> +</DD> +<DT>authorization server</DT> +<DD> - An HTTP server capable of issuing tokens after successfully authenticating the - resource owner and obtaining authorization. The authorization server may be the same - server as the resource server, or a separate entity. + A server capable of issuing tokens after successfully authenticating the resource + owner and obtaining authorization. The authorization server may be the same server as + the resource server, or a separate entity. -</dd> -<dt>authorization endpoint</dt> -<dd> +</DD> +<DT>end-user authorization endpoint</DT> +<DD> - The authorization server's HTTP endpoint capable of authenticating the resource - owner and obtaining authorization. + The authorization server's HTTP endpoint capable of authenticating the end-user and + obtaining authorization. The end-user authorization endpoint is described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-authorization">Section 3<SPAN> (</SPAN><SPAN class="info">Obtaining End-User Authorization</SPAN><SPAN>)</SPAN></A>. -</dd> -<dt>token endpoint</dt> -<dd> +</DD> +<DT>token endpoint</DT> +<DD> The authorization server's HTTP endpoint capable of issuing tokens and refreshing - expired tokens. + expired tokens. The token endpoint is described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#obtaining-token">Section 4<SPAN> (</SPAN><SPAN class="info">Obtaining an Access Token</SPAN><SPAN>)</SPAN></A>. -</dd> -<dt>client identifier</dt> -<dd> +</DD> +<DT>client identifier</DT> +<DD> An unique identifier issued to the client to identify itself to the authorization - server. Client identifiers may have a matching secret. + server. Client identifiers may have a matching secret. The client identifier is + described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#client-authentication">Section 2<SPAN> (</SPAN><SPAN class="info">Client Credentials</SPAN><SPAN>)</SPAN></A>. -</dd> -<dt>refresh token</dt> -<dd> - - A unique identifier used by the client to replace an expired access token with a new - access token without having to involve the resource owner. A refresh token is used - when the access token is valid for a shorter time period than the duration of the - access grant approved by the resource owner. - -</dd> -</dl></blockquote><p> +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<A name="anchor4"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1.3"></A><H3>1.3. +Overview</H3> + +<P> + OAuth provides a method for clients to access a protected resource on behalf of a + resource owner. Before a client can access a protected resource, it must first obtain + authorization from the resource owner, then exchange the access grant for an access token + (representing the grant's scope, duration, and other attributes). The client accesses the + protected resource by presenting the access token to the resource server. -</p> -<a name="anchor4"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.2.2"></a><h3>2.2. -Overview</h3> - -<p> - Clients interact with a protected resource, first by requesting access (which is granted - in the form of an access token) from the authorization server, and then by authenticating - with the resource server by presenting the access token. <a class='info' href='#Figure 1'>Figure 1</a> - demonstrates the flow between the client and authorization server (A, B), and the flow - between the client and resource server (C, D), when the client is acting autonomously - (the client is also the resource owner). - -</p><br /><hr class="insert" /> -<a name="Figure 1"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</P><BR><HR class="insert"> +<A name="Figure 1"></A> +<DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> +--------+ +---------------+ - | |--(A)------ Credentials --------->| Authorization | - | | | Server | - | |<-(B)------ Access Token ---------| | + | |--(A)-- Authorization Request --->| Resource | + | | | Owner | + | |<-(B)------ Access Grant ---------| | + | | +---------------+ + | | + | | Client Credentials & +---------------+ + | |--(C)------ Access Grant -------->| Authorization | + | Client | | Server | + | |<-(D)------ Access Token ---------| | | | (w/ Optional Refresh Token) +---------------+ - | Client | - | | HTTP Request +---------------+ - | |--(C)--- with Access Token ------>| Resource | + | | + | | +---------------+ + | |--(E)------ Access Token -------->| Resource | | | | Server | - | |<-(D)------ HTTP Response --------| | + | |<-(F)---- Protected Resource -----| | +--------+ +---------------+ -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 1 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - Access token strings can use any internal structure agreed upon between the authorization - server and the resource server, but their structure is opaque to the client. Since the - access token provides the client access to the protected resource for the life of the - access token (or until revoked), the authorization server should issue access tokens - which expire within an appropriate time, usually much shorter than the duration of the - access grant. - -</p> -<p> - When an access token expires, the client can request a new access token from the - authorization server by presenting its credentials again (<a class='info' href='#Figure 1'>Figure 1</a>), or - by using the refresh token (if issued with the access token) as shown in - <a class='info' href='#Figure 2'>Figure 2</a>. Once an expired access token has been replaced with a new - access token (A, B), the client uses the new access token as before (C, D). - -</p><br /><hr class="insert" /> -<a name="Figure 2"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</PRE></DIV><TABLE border="0" cellpadding="0" cellspacing="2" align="center"><TBODY><TR><TD align="center"><FONT face="monaco, MS Sans Serif" size="1"><B> Figure 1: Abstract Protocol Flow </B></FONT><BR></TD></TR></TBODY></TABLE><HR class="insert"> + +<P> + The abstract flow illustrated in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#Figure 1">Figure 1<SPAN> (</SPAN><SPAN class="info">Abstract Protocol Flow</SPAN><SPAN>)</SPAN></A> includes the following + steps: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>(A)</DT> +<DD> + The client requests authorization from the resource owner. The client should not + interact directly with the resource owner (since that would expose the resource + owner's credentials to the client), but instead request authorization via an + authorization server or other entities. For example, the client directs the resource + owner to the authorization server which in turn issues it an access grant. When + unavoidable, the client interacts directly with the end-user, asking for the + end-user's username and password. If the client is acting autonomously, the + authorization request is beyond the scope of this specification. + +</DD> +<DT>(B)</DT> +<DD> + The client is issued an access grant which represents the authorization provided by + the resource owner. The access grant can be expressed as: + + +<UL class="text"> +<LI> + Authorization code - an access grant obtained via an authorization server. The + process used to obtain an authorization code utilized the end-user's user-agent + and is described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-authorization">Section 3<SPAN> (</SPAN><SPAN class="info">Obtaining End-User Authorization</SPAN><SPAN>)</SPAN></A>. + +</LI> +<LI> + Assertion - an access grant obtained using a different trust framework. + Assertions enable the client to utilize existing trust relationships to obtain an + access token. They provide a bridge between OAuth and other trust frameworks. The + access grant represented by an assertion depends on the assertion type, its + content, and how it was issued, which are beyond the scope of this specification. + +</LI> +<LI> + Resource owner basic credentials - obtained when interacting directly with a + resource-owner. Resource owner basic credentials (i.e. a username and password) + should only be used when there is a high degree of trust between the resource + owner and the client (e.g. its computer operating system or a highly privileged + application). However, unlike the HTTP Basic authentication scheme defined in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2617">[RFC2617]<SPAN> (</SPAN><SPAN class="info">Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</SPAN><SPAN>)</SPAN></A>, the resource owner's credentials are used for a single + request and are exchanged for an access token and refresh token. This eliminates + the need for the client to store the resource-owner's credentials for future use. + +</LI> +</UL> + +</DD> +<DT>(C)</DT> +<DD> + The client requests an access token by authenticating with the authorization server, + and presenting the access grant. The token request is described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#obtaining-token">Section 4<SPAN> (</SPAN><SPAN class="info">Obtaining an Access Token</SPAN><SPAN>)</SPAN></A>. + +</DD> +<DT>(D)</DT> +<DD> + The authorization server validates the client credentials and the access grant, and + issues an access token with an optional refresh token. Access tokens usually have a + shorter lifetime than the access grant. Refresh tokens usually have a lifetime equal + to the duration of the access grant. When an access token expires, the refresh token + is used to obtain a new access token without having to request another access grant + from the resource owner. + +</DD> +<DT>(E)</DT> +<DD> + The client makes a protected resource request to the resource server, and presents + the access token in order to gain access. Accessing a protected resource is described + in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-resource">Section 5<SPAN> (</SPAN><SPAN class="info">Accessing a Protected Resource</SPAN><SPAN>)</SPAN></A>. + +</DD> +<DT>(F)</DT> +<DD> + The resource server validates the access token, and if valid, serves the request. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + When the client is acting on its own behalf (the client is also the resource owner), + the client does not obtain an access grant. The simplified protocol flow is illustrated + in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#Figure 2">Figure 2<SPAN> (</SPAN><SPAN class="info">Protocol Flow for Client Acting On Its Own Behalf</SPAN><SPAN>)</SPAN></A>: + +</P><BR><HR class="insert"> +<A name="Figure 2"></A> +<DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> +--------+ +---------------+ - | |--(A)------ Refresh Token ------->| Authorization | - | | | Server | - | |<-(B)------ Access Token ---------| | - | | (with Optional Secret) +---------------+ + | |--(C)--- Client Credentials ----->| Authorization | + | | | Server | + | |<-(D)------ Access Token ---------| | + | | (w/ Optional Refresh Token) +---------------+ | Client | - | | HTTP Request +---------------+ - | |--(C)--- with Access Token ------>| Resource | + | | +---------------+ + | |--(E)------ Access Token -------->| Resource | | | | Server | - | |<-(D)----- HTTP Response ---------| | + | |<-(F)---- Protected Resource -----| | +--------+ +---------------+ -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 2 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - This specification defines a number of authorization flows to support different client - types and scenarios. These authorization flows can be separated into three groups: - user delegation flows where the client is acting on behalf of an end user, end user - credentials flows where the client uses the end user's credentials directly to obtain - authorization, and autonomous flows where the client is acting for itself (the client is - also the resource owner). - -</p> -<p> - Additional authorization flows may be defined by other specifications to cover different - scenarios and client types. - -</p> -<p> - The user delegation authorization flows defined by this specifications are: - - </p> -<ul class="text"> -<li> - User-Agent Flow - This flow is designed for clients running inside a user-agent - (typically a web browser), and therefore cannot receive incoming requests from the - authorization server. This flow is described in <a class='info' href='#user_agent_flow'>Section 3.5.1<span> (</span><span class='info'>User-Agent Flow</span><span>)</span></a>. - -</li> -<li> - Web Server Flow - This flow is optimized for cases where the client is capable of - receiving incoming HTTP requests (act as an HTTP server). This flow is described in - <a class='info' href='#web_server_flow'>Section 3.5.2<span> (</span><span class='info'>Web Server Flow</span><span>)</span></a>. - -</li> -<li> - Device Flow - This flow suitable for clients executing on limited devices, but where - the end user has separate access to a user-agent on another computer or device. This - flow is described in <a class='info' href='#device_flow'>Section 3.5.3<span> (</span><span class='info'>Device Flow</span><span>)</span></a>. - -</li> -</ul><p> - -</p> -<p> - The end user credentials flow defined by this specification is: - - </p> -<ul class="text"> -<li> - Username and Password Flow - This flow is used in cases where the end user trusts - the client to handle its credentials but it is still undesirable for the client to - store the end user's username and password. This flow is described in - <a class='info' href='#username_password_flow'>Section 3.6.1<span> (</span><span class='info'>Username and Password Flow</span><span>)</span></a>. - -</li> -</ul><p> - -</p> -<p> - The autonomous authorization flows defined by this specifications are: - - </p> -<ul class="text"> -<li> - Client Credentials Flow - The client uses its credentials to obtain an access token. - This flow is described in <a class='info' href='#client_credentials_flow'>Section 3.7.1<span> (</span><span class='info'>Client Credentials Flow</span><span>)</span></a>. - -</li> -<li> - Assertion Flow - The client presents an assertion such as a - <a class='info' href='#OASIS.saml-core-2.0-os'>SAML<span> (</span><span class='info'>Cantor, S., Kemp, J., Philpott, R., and E. Maler, “Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0,” March 2005.</span><span>)</span></a> [OASIS.saml‑core‑2.0‑os] assertion to the authorization - server in exchange for an access token. This flow is described in - <a class='info' href='#assertion_flow'>Section 3.7.2<span> (</span><span class='info'>Assertion Flow</span><span>)</span></a>. - -</li> -</ul><p> - -</p> -<a name="anchor5"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.2.3"></a><h3>2.3. -Example</h3> - -<p> - [[ Todo ]] - -</p> -<a name="anchor6"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.2.4"></a><h3>2.4. -Notational Conventions</h3> +</PRE></DIV><TABLE border="0" cellpadding="0" cellspacing="2" align="center"><TBODY><TR><TD align="center"><FONT face="monaco, MS Sans Serif" size="1"><B> Figure 2: Protocol Flow for Client Acting On Its Own Behalf </B></FONT><BR></TD></TR></TBODY></TABLE><HR class="insert"> -<p> - The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD - NOT', 'RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as - described in <a class='info' href='#RFC2119'>[RFC2119]<span> (</span><span class='info'>Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.</span><span>)</span></a>. - -</p> -<p> - This document uses the Augmented Backus-Naur Form (ABNF) notation of - <a class='info' href='#I-D.ietf-httpbis-p1-messaging'>[I‑D.ietf‑httpbis‑p1‑messaging]<span> (</span><span class='info'>Fielding, R., Gettys, J., Mogul, J., Nielsen, H., Masinter, L., Leach, P., Berners-Lee, T., and J. Reschke, “HTTP/1.1, part 1: URIs, Connections, and Message Parsing,” March 2010.</span><span>)</span></a>. Additionally, the realm and auth-param - rules are included from <a class='info' href='#RFC2617'>[RFC2617]<span> (</span><span class='info'>Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</span><span>)</span></a>, and the URI-Reference rule from - <a class='info' href='#RFC3986'>[RFC3986]<span> (</span><span class='info'>Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</span><span>)</span></a>. - -</p> -<a name="anchor7"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.2.5"></a><h3>2.5. -Conformance</h3> - -<p> - An implementation is not compliant if it fails to satisfy one or more of the MUST or - REQUIRED level requirements for the flows it implements. An implementation that - satisfies all the MUST or REQUIRED level and all the SHOULD level requirements for its - flows is said to be "unconditionally compliant"; one that satisfies all the MUST - level requirements but not all the SHOULD level requirements for its flows is said to - be "conditionally compliant." - -</p> -<a name="get_token"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3"></a><h3>3. -Obtaining an Access Token</h3> - -<p> - The client obtains an access token by using one of the authorization flows supported by the - authorization server. The authorization flows all use the same authorization and token - endpoints, each with a different set of request parameters and values. - -</p> -<p> - When issuing an access token, the scope, duration, and other access attributes granted by - the resource owner must be retained and enforced by the resource server when receiving a - protected resource request and by the authorization server when receiving a token refresh - request made with the access token issued. - -</p> -<p> - In many cases it is desirable to issue access tokens with a shorter lifetime than the - duration of the authorization grant. However, it may be undesirable to require the resource - owner to authorize the request again. Instead, the authorization server issues a refresh - token in addition to the access token. When the access token expires, the client can - request a new access token without involving the resource owner as long as the - authorization grant is still valid. The token refresh method is described in - <a class='info' href='#token_refresh'>Section 4<span> (</span><span class='info'>Refreshing an Access Token</span><span>)</span></a>. - -</p> -<a name="anchor8"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.1"></a><h3>3.1. -Authorization Endpoint</h3> - -<p> - Clients direct the resource owner to the authorization endpoint to approve their access - request. Before granting access, the resource owner first authenticate with the - authorization server. The way in which the authorization server authenticates the end - user (e.g. username and password login, OpenID, session cookies) and in which the - authorization server obtains the end user's authorization, including whether it uses a - secure channel such as TLS/SSL, is beyond the scope of this specification. However, the - authorization server MUST first verify the identity of the end user. - -</p> -<p> - The URI of the authorization endpoint can be found in the service documentation, or can - be obtained by the client by making an unauthorized protected resource request (from the - <tt>WWW-Authenticate</tt> response header - <a class='info' href='#authz_uri_attribute'>auth-uri<span> (</span><span class='info'>The 'authorization-uri' Attribute</span><span>)</span></a> attribute). - -</p> -<p> - The authorization endpoint advertised by the resource server MAY include a query - components as defined by <a class='info' href='#RFC3986'>[RFC3986]<span> (</span><span class='info'>Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</span><span>)</span></a> section 3. - -</p> -<p> - Since requests to the authorization endpoint result in user authentication and the - transmission of sensitive values, the authorization server SHOULD require the - use of a transport-layer mechanism such as TLS or SSL (or a secure channel with - equivalent protections) when sending requests to the authorization endpoints. - -</p> -<a name="anchor9"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.2"></a><h3>3.2. -Token Endpoint</h3> - -<p> - After obtaining authorization from the resource owner, clients request an access token - from the authorization server's token endpoint. - -</p> -<p> - The URI of the token endpoint can be found in the service documentation, or can be - obtained by the client by making an unauthorized protected resource request (from the - <tt>WWW-Authenticate</tt> response header - <a class='info' href='#authz_uri_attribute'>token-uri<span> (</span><span class='info'>The 'authorization-uri' Attribute</span><span>)</span></a> attribute). - -</p> -<p> - The token endpoint advertised by the resource server MAY include a query components as - defined by <a class='info' href='#RFC3986'>[RFC3986]<span> (</span><span class='info'>Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</span><span>)</span></a> section 3. - -</p> -<p> - Since requests to the token endpoint result in the transmission of plain text - credentials in the HTTP request and response, the authorization server MUST require the - use of a transport-layer mechanism such as TLS or SSL (or a secure channel with - equivalent protections) when sending requests to the token endpoints. - -</p> -<p> - The authorization server MUST include the HTTP <tt>Cache-Control</tt> - response header field with a value of <tt>no-store</tt> in any - response containing tokens, secrets, or other sensitive information. +<P> + When the client uses the user-agent profile (described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-agent">Section 1.4.2<SPAN> (</SPAN><SPAN class="info">User-Agent</SPAN><SPAN>)</SPAN></A>), + the authorization request results in an access token, as illustrated in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#Figure 3">Figure 3<SPAN> (</SPAN><SPAN class="info">Indirect Access Grant Protocol Flow</SPAN><SPAN>)</SPAN></A>: -</p> -<a name="anchor10"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.3"></a><h3>3.3. -Flow Parameters</h3> - -<p> - Clients should avoid making assumptions about the size of tokens and other values - received from the authorization server, which are left undefined by this specification. - Servers should document the expected size of any value they issue. +</P><BR><HR class="insert"> +<A name="Figure 3"></A> +<DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + +--------+ +----------+ +---------------+ + | |--(A)-- Authorization --+- -+-->| | + | | Request | Resource | | Authorization | + | | | Owner | | Server | + | |<-(D)-- Access Token ---+- -+---| | + | | +----------+ +---------------+ + | Client | + | | +---------------+ + | |--(E)-------- Access Token ----------->| Resource | + | | | Server | + | |<-(F)------ Protected Resource --------| | + +--------+ +---------------+ + +</PRE></DIV><TABLE border="0" cellpadding="0" cellspacing="2" align="center"><TBODY><TR><TD align="center"><FONT face="monaco, MS Sans Serif" size="1"><B> Figure 3: Indirect Access Grant Protocol Flow </B></FONT><BR></TD></TR></TBODY></TABLE><HR class="insert"> + +<A name="anchor5"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1.4"></A><H3>1.4. +Client Profiles</H3> + +<P> + OAuth supports a wide range of client types by providing a rich and extensible framework + for establishing authorization and exchanging it for an access token. The methods detailed + in this specification were designed to accommodate four client types: web servers, + user-agents, native applications, and autonomous clients. Additional authorization flows + and client profiles may be defined by other specifications to cover additional scenarios + and client types. -</p> -<a name="client_id"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.4"></a><h3>3.4. -Client Credentials</h3> - -<p> - When requesting access from the authorization server, the client identifies itself using - its authorization-server-issued client credentials. The client credentials include a - client identifier and an OPTIONAL symmetric shared secret. The means through which the - client obtains these credentials are beyond the scope of this specification, but usually - involve registration with the authorization server. - -</p> -<p> - The client identifier is used by the authorization server to establish the identity of - the client for the purpose of presenting information to the resource owner prior to - granting access, as well as for providing different service levels to different clients. - They can also be used to block unauthorized clients from requesting access. - -</p> -<p> - Due to the nature of some clients, authorization servers SHOULD NOT make assumptions - about the confidentiality of client credentials without establishing trust with the - client operator. Authorization servers SHOULD NOT issue client secrets to the client - incapable or keeping their secrets confidential. - -</p> -<a name="anchor11"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5"></a><h3>3.5. -User Delegation Flows</h3> - -<p> - User delegation flows are used to grant client access to protected resources by the end - user without sharing the end user credentials (e.g. a username and password) with the - client. Instead, the end user authenticates directly with the authorization server, and - grants client access to its protected resources. - -</p> -<a name="user_agent_flow"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.1"></a><h3>3.5.1. -User-Agent Flow</h3> - -<p> - The user-agent flow is a user delegation flow suitable for client applications residing - in a user-agent, typically implemented in a browser using a scripting language such as - JavaScript. The client is capable of interacting with the end user's user-agent but is - incapable of receiving incoming requests from the authorization server (incapable of - acting as an HTTP server). - -</p> -<p> - Instead of receiving incoming requests, the client requests the authorization server to - redirect the user-agent to another web server or local resource accessible to the - browser which is capable of extracting the access token from the response and passing - it to the client. - -</p> -<p> - This user-agent flow does not utilize the client secret since the client executables - reside on the end user's computer or device which makes the client secret accessible - and exploitable. Because the client is incapable of receiving incoming requests, the - access token is encoded into the redirection URI which exposes it to the end user and - other applications residing on the computer or device. - -</p><br /><hr class="insert" /> -<a name="Figure 5"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</P> +<A name="anchor6"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1.4.1"></A><H3>1.4.1. +Web Server</H3> + +<P> + The web server profile is suitable for clients capable of interacting with the end-user's + user-agent (typically a web browser) and capable of receiving incoming requests from the + authorization server (capable of acting as an HTTP server). + +</P><BR><HR class="insert"> +<A name="Figure 4"></A> +<DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + +----------+ Client Identifier +---------------+ + | -+----(A)--- & Redirect URI ------>| | + | End-user | | Authorization | + | at |<---(B)-- User authenticates --->| Server | + | Browser | | | + | -+----(C)-- Authorization Code ---<| | + +-|----|---+ +---------------+ + | | ^ v + (A) (C) | | + | | | | + ^ v | | + +---------+ | | + | |>---(D)-- Client Credentials, --------' | + | Web | Authorization Code, | + | Client | & Redirect URI | + | | | + | |<---(E)----- Access Token -------------------' + +---------+ (w/ Optional Refresh Token) + +</PRE></DIV><TABLE border="0" cellpadding="0" cellspacing="2" align="center"><TBODY><TR><TD align="center"><FONT face="monaco, MS Sans Serif" size="1"><B> Figure 4: Web Server Flow </B></FONT><BR></TD></TR></TBODY></TABLE><HR class="insert"> + +<P> + The web server flow illustrated in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#Figure 4">Figure 4<SPAN> (</SPAN><SPAN class="info">Web Server Flow</SPAN><SPAN>)</SPAN></A> includes the following + steps: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>(A)</DT> +<DD> + The web client initiates the flow by redirecting the end-user's user-agent to the + end-user authorization endpoint as described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-authorization">Section 3<SPAN> (</SPAN><SPAN class="info">Obtaining End-User Authorization</SPAN><SPAN>)</SPAN></A> + The client includes its client identifier, requested scope, local state, and a + redirect URI to which the authorization server will send the end-user back once + access is granted (or denied). + +</DD> +<DT>(B)</DT> +<DD> + The authorization server authenticates the end-user (via the user-agent) and + establishes whether the end-user grants or denies the client's access request. + +</DD> +<DT>(C)</DT> +<DD> + Assuming the end-user granted access, the authorization server redirects the + user-agent back to the client to the redirection URI provided earlier. The + authorization includes an authorization code for the client to use to obtain an + access token. + +</DD> +<DT>(D)</DT> +<DD> + The client requests an access token from the authorization server by authenticating + and including the authorization code received in the previous step as described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#obtaining-token">Section 4<SPAN> (</SPAN><SPAN class="info">Obtaining an Access Token</SPAN><SPAN>)</SPAN></A>. + +</DD> +<DT>(E)</DT> +<DD> + The authorization server validates the client credentials and the authorization + code and responds back with the access token. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<A name="user-agent"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1.4.2"></A><H3>1.4.2. +User-Agent</H3> + +<P> + The user-agent profile is suitable for client applications residing in a user-agent, + typically implemented in a browser using a scripting language such as JavaScript. These + clients cannot keep client secrets confidential and the authentication of the client is + based on the user-agent's same-origin policy. + +</P> +<P> + Unlike other profiles in which the client makes a separate end-user authorization request + and an access token requests, the client receives the access token as a result of the + end-user authorization request in the form of an HTTP redirection. The client requests + the authorization server to redirect the user-agent to another web server or local + resource accessible to the user-agent which is capable of extracting the access token + from the response and passing it to the client. + +</P> +<P> + This user-agent profile does not utilize the client secret since the client executables + reside on the end-user's computer or device which makes the client secret accessible + and exploitable. Because the access token is encoded into the redirection URI, it may + be exposed to the end-user and other applications residing on the computer or device. + +</P><BR><HR class="insert"> +<A name="Figure 5"></A> +<DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> +----------+ Client Identifier +----------------+ | |>---(A)-- & Redirection URI --->| | | | | | End <--+ - - - +----(B)-- User authenticates -->| Authorization | User | | | Server | - | |<---(C)-- Redirect URI --------<| | - | Client | with Access Token | | - | in | (w/ Optional Refresh Token) +----------------+ - | Browser | in Fragment + | |<---(C)--- Redirect URI -------<| | + | Client | with Access Token | | + | in | in Fragment +----------------+ + | Browser | | | +----------------+ - | |>---(D)-- Redirect URI -------->| | - | | without Fragment | Web Server | + | |>---(D)--- Redirect URI ------->| | + | | without Fragment | Web Server | | | | with Client | - | (F) |<---(E)-- Web Page with -------<| Resource | - | Access | Script | | + | (F) |<---(E)--- Web Page with ------<| Resource | + | Access | Script | | | Token | +----------------+ +----------+ -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 3 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - The user-agent flow illustrated in <a class='info' href='#Figure 5'>Figure 3</a> includes the following - steps: - - </p> -<blockquote class="text"><dl> -<dt>(A)</dt> -<dd> - The client sends the user-agent to the authorization server and includes its client - identifier and redirection URI in the request. - -</dd> -<dt>(B)</dt> -<dd> - The authorization server authenticates the end user (via the user-agent) and - establishes whether the end user grants or denies the client's access request. - -</dd> -<dt>(C)</dt> -<dd> - Assuming the end user granted access, the authorization server redirects the - user-agent to the redirection URI provided earlier. The redirection URI includes - the access token in the URI fragment. - -</dd> -<dt>(D)</dt> -<dd> +</PRE></DIV><TABLE border="0" cellpadding="0" cellspacing="2" align="center"><TBODY><TR><TD align="center"><FONT face="monaco, MS Sans Serif" size="1"><B> Figure 5: User-Agent Flow </B></FONT><BR></TD></TR></TBODY></TABLE><HR class="insert"> + +<P> + The user-agent flow illustrated in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#Figure 5">Figure 5<SPAN> (</SPAN><SPAN class="info">User-Agent Flow</SPAN><SPAN>)</SPAN></A> includes the following + steps: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>(A)</DT> +<DD> + The client sends the user-agent to the end-user authorization endpoint as described + in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-authorization">Section 3<SPAN> (</SPAN><SPAN class="info">Obtaining End-User Authorization</SPAN><SPAN>)</SPAN></A>. The client includes its client identifier, + requested scope, local state, and a redirect URI to which the authorization server + will send the end-user back once authorization is granted (or denied). + +</DD> +<DT>(B)</DT> +<DD> + The authorization server authenticates the end-user (via the user-agent) and + establishes whether the end-user grants or denies the client's access request. + +</DD> +<DT>(C)</DT> +<DD> + If the end-user granted access, the authorization server redirects the + user-agent to the redirection URI provided earlier. The redirection URI includes + the access token in the URI fragment. + +</DD> +<DT>(D)</DT> +<DD> The user-agent follows the redirection instructions by making a request to the web server which does not include the fragment. The user-agent retains the fragment information locally. -</dd> -<dt>(E)</dt> -<dd> - The web server returns a web page containing a script capable of extracting the - access token from the URI fragment retained by the user-agent. - -</dd> -<dt>(F)</dt> -<dd> - The user-agent executes the script provided by the web server which extracts the - access token and passes it to the client. - -</dd> -</dl></blockquote><p> - -</p> -<a name="anchor12"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.1.1"></a><h3>3.5.1.1. -Client Requests Authorization</h3> - -<p> - In order for the end user to grant the client access, the client sends the end user - to the authorization server. The client constructs the request URI by adding the - following URI query parameters to the user authorization endpoint URI: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to - <tt>user_agent</tt> (case sensitive). - -</dd> -<dt>client_id</dt> -<dd> - - REQUIRED. The client identifier as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -<dt>redirect_uri</dt> -<dd> - - REQUIRED unless a redirection URI has been established between the client and - authorization server via other means. An absolute URI to which the authorization - server will redirect the user-agent to when the end user authorization step is - completed. The authorization server SOULD require the client to pre-register - their redirection URI. The redirection URI MUST NOT includes a query component - as defined by <a class='info' href='#RFC3986'>[RFC3986]<span> (</span><span class='info'>Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</span><span>)</span></a> section 3 if the - <tt>state</tt> parameter is present. - -</dd> -<dt>state</dt> -<dd> - - OPTIONAL. An opaque value used by the client to maintain state between the request - and callback. The authorization server includes this value when redirecting the - user-agent back to the client. - -</dd> -<dt>immediate</dt> -<dd> - - OPTIONAL. The parameter value must be set to <tt>true</tt> or - <tt>false</tt> (case sensitive). If set to - <tt>true</tt>, the authorization server MUST NOT prompt the - end user to authenticate or approve access. Instead, the authorization server - attempts to establish the end user's identity via other means (e.g. browser - cookies) and checks if the end user has previously approved an identical access - request by the same client and if that access grant is still active. If the - authorization server does not support an immediate check or if it is unable to - establish the end user's identity or approval status, it MUST deny the request - without prompting the end user. Defaults to <tt>false</tt> if - omitted. - -</dd> -<dt>secret_type</dt> -<dd> - - OPTIONAL. The access token secret type as described by - <a class='info' href='#crypto_token'>Section 5.3<span> (</span><span class='info'>Cryptographic Tokens Requests</span><span>)</span></a>. If omitted, the authorization server will issue a - bearer token (an access token without a matching secret) as described by - <a class='info' href='#bearer_token'>Section 5.2<span> (</span><span class='info'>Bearer Token Requests</span><span>)</span></a>. - -</dd> -</dl></blockquote><p> - -</p> -<p> - The client directs the end user to the constructed URI using an HTTP redirection - response, or by other means available to it via the end user's user-agent. The - request MUST use the HTTP <tt>GET</tt> method. - -</p> -<p> - For example, the client directs the end user's user-agent to make the following - HTTPS request (line breaks are for display purposes only): - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /authorize?type=user_agent&client_id=s6BhdRkqt3& - redirect_uri=https%3A%2F%2FEexample%2Ecom%2Frd HTTP/1.1 - Host: server.example.com - -</pre></div> -<p> - If the client has previously registered a redirection URI with the authorization server, - the authorization server MUST verify that the redirection URI received matches the - registered URI associated with the client identifier. - -</p> -<p> - The authorization server authenticates the end user and obtains an authorization - decision (by asking the end user or establishing approval via other means). The - authorization server sends the end user's user-agent to the provided client - redirection URI using an HTTP redirection response. - -</p> -<a name="anchor13"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.1.1.1"></a><h3>3.5.1.1.1. -End User Grants Authorization</h3> - -<p> - If the end user authorizes the access request, the authorization server issues an - access token and delivers it to the client by adding the following parameters, using - the <tt>application/x-www-form-urlencoded</tt> format as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a>, to the redirection URI fragment: - - </p> -<blockquote class="text"><dl> -<dt>access_token</dt> -<dd> - - REQUIRED. The access token. - -</dd> -<dt>expires_in</dt> -<dd> - - OPTIONAL. The duration in seconds of the access token lifetime. - -</dd> -<dt>refresh_token</dt> -<dd> - - OPTIONAL. The refresh token. - -</dd> -<dt>state</dt> -<dd> - - REQUIRED if the <tt>state</tt> parameter was present in the - client authorization request. Set to the exact value received from the client. - -</dd> -<dt>access_token_secret</dt> -<dd> - - REQUIRED if requested by the client. The corresponding access token secret as - requested by the client. - -</dd> -</dl></blockquote><p> +</DD> +<DT>(E)</DT> +<DD> + The web server returns a web page (typically an HTML page with an embedded script) + capable of accessing the full redirection URI including the fragment retained by the + user-agent, and extracting the access token (and other parameters) contained in the + fragment. -</p> -<p> - For example, the authorization server redirects the end user's user-agent by - sending the following HTTP response: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 302 Found - Location: http://example.com/rd#access_token=FJQbwq9&expires_in=3600 - -</pre></div> -<a name="anchor14"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.1.1.2"></a><h3>3.5.1.1.2. -End User Denies Authorization</h3> - -<p> - If the end user denied the access request, the authorization server responds to the - client by adding the following parameters, using the - <tt>application/x-www-form-urlencoded</tt> format as defined by - <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a>, to the redirection URI fragment: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - REQUIRED. The parameter value MUST be set to - <tt>user_denied</tt> (case sensitive). - -</dd> -<dt>state</dt> -<dd> - - REQUIRED if the <tt>state</tt> parameter was present in the - client authorization request. Set to the exact value received from the client. - -</dd> -</dl></blockquote><p> +</DD> +<DT>(F)</DT> +<DD> + The user-agent executes the script provided by the web server locally, which + extracts the access token and passes it to the client. -</p> -<p> - For example, the authorization server responds with the following: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 302 Found - Location: http://example.com/rd#error=user_denied - -</pre></div> -<p> - The authorization flow concludes unsuccessfully. To extract the error message, the - client follows the steps described in <a class='info' href='#user_agent_extract'>Section 3.5.1.2<span> (</span><span class='info'>Client Extracts Access Token</span><span>)</span></a>. - -</p> -<a name="user_agent_extract"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.1.2"></a><h3>3.5.1.2. -Client Extracts Access Token</h3> - -<p> - The user-agent follows the authorization server redirection response by making an - HTTP <tt>GET</tt> request to the URI received in the - <tt>Location</tt> HTTP response header. The user-agent SHALL NOT - include the fragment component with the request. - -</p> -<p> - For example, the user-agent makes the following HTTP - <tt>GET</tt> request in response to the redirection directive - received from the authorization server: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /rd HTTP/1.1 - Host: example.com - -</pre></div> -<p> - The HTTP response to the redirection request returns a web page (typically an HTML - page with an embedded script) capable of accessing the full redirection URI including - the fragment retained by the user-agent, and extracting the access token (and other - parameters) contained in the fragment. - -</p> -<a name="web_server_flow"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.2"></a><h3>3.5.2. -Web Server Flow</h3> - -<p> - The web server flow is a user delegation flow suitable for clients capable of - interacting with the end user's user-agent (typically a web browser) and capable of - receiving incoming requests from the authorization server (capable of acting as an HTTP - server). - -</p><br /><hr class="insert" /> -<a name="Figure 3"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - +----------+ Client Identifier +---------------+ - | -+----(A)-- & Redirect URI ------->| | - | End User | | Authorization | - | at |<---(B)-- User authenticates --->| Server | - | Browser | | | - | -+----(C)-- Verification Code ----<| | - +-|----|---+ +---------------+ - | | ^ v - (A) (C) | | - | | | | - ^ v | | - +---------+ | | - | |>---(D)-- Client Credentials, --------' | - | Web | Verification Code, | - | Client | & Redirect URI | - | | | - | |<---(E)------- Access Token -----------------' - +---------+ (w/ Optional Refresh Token) - -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 4 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - The web server flow illustrated in <a class='info' href='#Figure 3'>Figure 4</a> includes the following - steps: - - </p> -<blockquote class="text"><dl> -<dt>(A)</dt> -<dd> - The web client initiates the flow by redirecting the end user's user-agent to the - authorization endpoint with its client identifier and a redirect URI to which the - authorization server will send the end user back once authorization is received (or - denied). - -</dd> -<dt>(B)</dt> -<dd> - The authorization server authenticates the end user (via the user-agent) and - establishes whether the end user grants or denies the client's access request. - -</dd> -<dt>(C)</dt> -<dd> - Assuming the end user granted access, the authorization server redirects the - user-agent back to the client to the redirection URI provided earlier. The - authorization includes a verification code for the client to use to obtain an - access token. - -</dd> -<dt>(D)</dt> -<dd> - The client requests an access token from the authorization server by including its - client credentials (identifier and secret), as well as the verification code - received in the previous step. - -</dd> -<dt>(E)</dt> -<dd> - The authorization server validates the client credentials and the verification - code and responds back with the access token. - -</dd> -</dl></blockquote><p> - -</p> -<a name="anchor15"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.2.1"></a><h3>3.5.2.1. -Client Requests Authorization</h3> - -<p> - In order for the end user to grant the client access, the client sends the end user - to the authorization server. The client constructs the request URI by adding the - following URI query parameters to the user authorization endpoint URI: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to - <tt>web_server</tt> (case sensitive). - -</dd> -<dt>client_id</dt> -<dd> - - REQUIRED. The client identifier as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -<dt>redirect_uri</dt> -<dd> - - REQUIRED unless a redirection URI has been established between the client and - authorization server via other means. An absolute URI to which the authorization - server will redirect the user-agent to when the end user authorization step is - completed. The authorization server MAY require the client to pre-register - their redirection URI. The redirection URI MUST NOT includes a query component - as defined by <a class='info' href='#RFC3986'>[RFC3986]<span> (</span><span class='info'>Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</span><span>)</span></a> section 3 if the - <tt>state</tt> parameter is present. - -</dd> -<dt>state</dt> -<dd> - - OPTIONAL. An opaque value used by the client to maintain state between the request - and callback. The authorization server includes this value when redirecting the - user-agent back to the client. - -</dd> -<dt>immediate</dt> -<dd> - - OPTIONAL. The parameter value must be set to <tt>true</tt> or - <tt>false</tt> (case sensitive). If set to - <tt>true</tt>, the authorization server MUST NOT prompt the - end user to authenticate or approve access. Instead, the authorization server - attempts to establish the end user's identity via other means (e.g. browser - cookies) and checks if the end user has previously approved an identical access - request by the same client and if that access grant is still active. If the - authorization server does not support an immediate check or if it is unable to - establish the end user's identity or approval status, it MUST deny the request - without prompting the end user. Defaults to <tt>false</tt> if - omitted. - -</dd> -</dl></blockquote><p> - -</p> -<p> - The client directs the end user to the constructed URI using an HTTP redirection - response, or by other means available to it via the end user's user-agent. The - request MUST use the HTTP <tt>GET</tt> method. - -</p> -<p> - For example, the client directs the end user's user-agent to make the - following HTTPS requests (line breaks are for display purposes only): - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /authorize?type=web_server&client_id=s6BhdRkqt3&redirect_uri= - https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb HTTP/1.1 +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<A name="anchor7"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1.4.3"></A><H3>1.4.3. +Native Application</H3> + +<P> + Native application are clients running as native code on the end-user's computer or + device (i.e. executing outside a user-agent or as a desktop program). These clients are + often capable of interacting with (or embedding) the end-user's user-agent but are + limited in how such interaction affects their end-user experience. In many cases, + native applications are incapable of receiving direct callback requests from the + server (e.g. firewall, operating system restrictions). + +</P> +<P> + Native application clients can be implemented in different ways based on their + requirements and desired end-user experience. Native application clients can: + + </P> +<UL class="text"> +<LI> + Utilize the end-user authorization endpoint as described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-authorization">Section 3<SPAN> (</SPAN><SPAN class="info">Obtaining End-User Authorization</SPAN><SPAN>)</SPAN></A> by launching an external user-agent. The + client can capture the response by providing a redirection URI with a custom URI + scheme (registered with the operating system to invoke the client application), or + by providing a redirection URI pointing to a server-hosted resource under the + client's control which makes the response available to the client (e.g. using the + window title or other locations accessible from outside the user-agent). + +</LI> +<LI> + Utilize the end-user authorization endpoint as described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#user-authorization">Section 3<SPAN> (</SPAN><SPAN class="info">Obtaining End-User Authorization</SPAN><SPAN>)</SPAN></A> by using an embedded user-agent. The client + obtains the response by directly communicating with the embedded user-agent. + +</LI> +<LI> + Prompt end-users for their basic credentials (username and password) and use them + directly to obtain an access token. This is generally discouraged as it hands the + end-user's password directly to the 3rd party and is limited to basic credentials. + +</LI> +</UL><P> + +</P> +<P> + When choosing between launching an external browser and an embedded user-agent, + developers should consider the following: + + </P> +<UL class="text"> +<LI> + External user-agents may improve completion rate as the end-user may already be + logged-in and not have to re-authenticate. + +</LI> +<LI> + Embedded user-agents often offer a better end-user flow, as they remove the need to + switch context and open new windows. + +</LI> +<LI> + Embedded user-agents pose a security challenge because users are authenticating in + an unidentified window without access to the visual protections offered by many + user-agents. + +</LI> +</UL><P> + +</P> +<A name="anchor8"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.1.4.4"></A><H3>1.4.4. +Autonomous</H3> + +<P> + Autonomous clients utilize an existing trust relationship or framework to establish + authorization. Autonomous clients can be implemented in different ways based on their + requirements and the existing trust framework they rely upon. Autonomous clients can: + + </P> +<UL class="text"> +<LI> + Obtain an access token by authenticating with the authorization server using their + client credentials. The scope of the access token is limited to the protected + resources under the control of the client, or that of another resource owner + previously arranged with the authorization server. + +</LI> +<LI> + Use an existing access grant expressed as an assertion using an assertion format + supported by the authorization server. Using assertions requires the client to + obtain a assertion (such as a <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#OASIS.saml-core-2.0-os">SAML<SPAN> (</SPAN><SPAN class="info">Cantor, S., Kemp, J., Philpott, R., and E. Maler, “Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0,” March 2005.</SPAN><SPAN>)</SPAN></A> [OASIS.saml‑core‑2.0‑os] + assertion) from an assertion issuer or to self-issue an assertion. The assertion + format, the process by which the assertion is obtained, and the method of + validating the assertion are defined by the assertion issuer and the authorization + server, and are beyond the scope of this specification. + +</LI> +</UL><P> + +</P> +<A name="client-authentication"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.2"></A><H3>2. +Client Credentials</H3> + +<P> + When interacting with the authorization server, the client identifies itself using a set of + client credentials. The client credentials include a client identifier and MAY include a + secret or other means for the authorization server to authenticate the client. + +</P> +<P> + The means through which the client obtains its credentials are beyond the scope of this + specification, but usually involve registration with the authorization server. + [[ OAuth Discovery provides one way of obtaining basic client credentials ]] + +</P> +<P> + Due to the nature of some clients, authorization servers SHOULD NOT make assumptions + about the confidentiality of client credentials without establishing trust with the + client operator. Authorization servers SHOULD NOT issue client secrets to clients + incapable of keeping their secrets confidential. + +</P> +<P> + This specification provides one mechanism for authenticating the client using a set of basic + client credentials. The authorization server MAY authenticate the client using any desired + authentication scheme. + +</P> +<P> + The client MUST NOT include more than one set of client credentials with each request, and + MUST NOT utilize more than one mechanism to authenticate each request (regardless whether + the credentials are identical). + +</P> +<A name="anchor9"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.2.1"></A><H3>2.1. +Basic Client Credentials</H3> + +<P> + The basic client credentials include a client identifier and an OPTIONAL matching shared + symmetric secret. The client identifier and secret are included in the request using the + HTTP Basic authentication scheme as defined in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2617">[RFC2617]<SPAN> (</SPAN><SPAN class="info">Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</SPAN><SPAN>)</SPAN></A> by including the + client identifier as the username and secret as the password. + +</P> +<P> + For example (line breaks are for display purposes only): + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + POST /token HTTP/1.1 Host: server.example.com + Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW + Content-Type: application/x-www-form-urlencoded -</pre></div> -<p> - If the client has previously registered a redirection URI with the authorization server, - the authorization server MUST verify that the redirection URI received matches the - registered URI associated with the client identifier. - -</p> -<p> - The authorization server authenticates the end user and obtains an authorization - decision (by asking the end user or establishing approval via other means). The - authorization server sends the end user's user-agent to the provided client - redirection URI using an HTTP redirection response, or by other means available to it - via the end user's user-agent. - -</p> -<a name="anchor16"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.2.1.1"></a><h3>3.5.2.1.1. -End User Grants Authorization</h3> - -<p> - If the end user authorizes the access request, the authorization server generates a - verification code and associates it with the client identifier and redirection URI. The - authorization server constructs the request URI by adding the following parameters to - the query component of redirection URI provided by the client: - - </p> -<blockquote class="text"><dl> -<dt>code</dt> -<dd> - - REQUIRED. The verification code generated by the authorization server. - -</dd> -<dt>state</dt> -<dd> - - REQUIRED if the <tt>state</tt> parameter was present in the - client authorization request. Set to the exact value received from the client. - -</dd> -</dl></blockquote><p> - -</p> -<p> - The verification code SHOULD expire shortly after it is issued and allowed for a - single use. - -</p> -<p> - For example, the authorization server redirects the end user's user-agent by - sending the following HTTP response: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 302 Found - Location: https://client.example.com/cb?code=i1WsRn1uB1 + type=web-server&code=i1WsRn1uB1& + redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb -</pre></div> -<p> - In turn, the end user's user-agent makes the following HTTPS - <tt>GET</tt> request: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /cb?code=i1WsRn1uB1 HTTP/1.1 - Host: client.example.com - -</pre></div> -<a name="anchor17"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.2.1.2"></a><h3>3.5.2.1.2. -End User Denies Authorization</h3> - -<p> - If the end user denied the access request, the authorization server constructs the - request URI by adding the following parameters to the query component of the - redirection URI provided by the client: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - REQUIRED. The parameter value MUST be set to - <tt>user_denied</tt> (case sensitive). - -</dd> -<dt>state</dt> -<dd> - - REQUIRED if the <tt>state</tt> parameter was present in the - client authorization request. Set to the exact value received from the client. - -</dd> -</dl></blockquote><p> +</PRE></DIV> +<P> + Alternatively, the client MAY include the credentials using the following request + parameters: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>client_id</DT> +<DD> -</p> -<p> - For example, the authorization server directs the client to make the following HTTP - request: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /cb?error=user_denied HTTP/1.1 - Host: client.example.com - -</pre></div> -<p> - The authorization flow concludes unsuccessfully. - -</p> -<a name="anchor18"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.2.2"></a><h3>3.5.2.2. -Client Requests Access Token</h3> - -<p> - The client obtains an access token from the authorization server by making an HTTP - <tt>POST</tt> request to the token endpoint. The client - constructs a request URI by adding the following parameters to the request: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to - <tt>web_server</tt> (case sensitive). - -</dd> -<dt>client_id</dt> -<dd> - - REQUIRED. The client identifier as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -<dt>client_secret</dt> -<dd> - - REQUIRED if the client identifier has a matching secret. The client secret as - described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -<dt>code</dt> -<dd> - - REQUIRED. The verification code received from the authorization server. - -</dd> -<dt>redirect_uri</dt> -<dd> - - REQUIRED. The redirection URI used in the initial request. - -</dd> -<dt>secret_type</dt> -<dd> - - OPTIONAL. The access token secret type as described by - <a class='info' href='#crypto_token'>Section 5.3<span> (</span><span class='info'>Cryptographic Tokens Requests</span><span>)</span></a>. If omitted, the authorization server will issue a - bearer token (an access token without a matching secret) as described by - <a class='info' href='#bearer_token'>Section 5.2<span> (</span><span class='info'>Bearer Token Requests</span><span>)</span></a>. - -</dd> -</dl></blockquote><p> + REQUIRED. The client identifier. -</p> -<p> - For example, the client makes the following HTTPS request (line breaks are for display - purposes only): - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</DD> +<DT>client_secret</DT> +<DD> + REQUIRED if the client identifier has a matching secret. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + For example (line breaks are for display purposes only): + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> POST /token HTTP/1.1 Host: server.example.com Content-Type: application/x-www-form-urlencoded - type=web_server&client_id=s6BhdRkqt3& + type=web-server&client_id=s6BhdRkqt3& client_secret=gX1fBat3bV&code=i1WsRn1uB1& redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb -</pre></div> -<p> - The authorization server MUST verify that the verification code, client identity, - client secret, and redirection URI are all valid and match its stored association. If - the request is valid, the authorization server issues an access token and delivers it - to the client in the HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 200 status code (OK). +</PRE></DIV> +<P> + The authorization server MUST accept the client credentials using both the request + parameters, and the HTTP Basic authentication scheme. The authorization server MAY + support additional authentication schemes suitable for the transmission of a username + and password. + +</P> +<A name="user-authorization"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.3"></A><H3>3. +Obtaining End-User Authorization</H3> + +<P> + When the client interacts with an end-user, the end-user MUST first grant the client + authorization to access its protected resources. Once obtained, the end-user access + grant is expressed as an authorization code which the client uses to obtain an access + token. To obtain an end-user authorization, the client sends the end-user to the + end-user authorization endpoint. + +</P> +<P> + At the end-user authorization endpoint, the end-user first authenticates with the + authorization server, and then grants or denies the access request. The way in which the + authorization server authenticates the end-user (e.g. username and password login, OpenID, + session cookies) and in which the authorization server obtains the end-user's + authorization, including whether it uses a secure channel such as TLS, is beyond the scope + of this specification. However, the authorization server MUST first verify the identity of + the end-user. + +</P> +<P> + The location of the end-user authorization endpoint can be found in the service + documentation, or can be obtained by using [[ OAuth Discovery ]]. The end-user + authorization endpoint URI MAY include a query component as defined by + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC3986">[RFC3986]<SPAN> (</SPAN><SPAN class="info">Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</SPAN><SPAN>)</SPAN></A> section 3, which must be retained when adding additional + query parameters. + +</P> +<P> + Since requests to the end-user authorization endpoint result in user authentication and + the transmission of sensitive information, the authorization server SHOULD require the + use of a transport-layer security mechanism such as TLS when sending requests to the + end-user authorization endpoint. + +</P> +<P> + In order to direct the end-user's user-agent to the authorization server, the client + constructs the request URI by adding the following parameters to the end-user + authorization endpoint URI query component using the + <TT>application/x-www-form-urlencoded</TT> format as defined by + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#W3C.REC-html401-19991224">[W3C.REC‑html401‑19991224]<SPAN> (</SPAN><SPAN class="info">Hors, A., Jacobs, I., and D. Raggett, “HTML 4.01 Specification,” December 1999.</SPAN><SPAN>)</SPAN></A>: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>response_type</DT> +<DD> -</p> -<p> - The response contains the following parameters: - - </p> -<blockquote class="text"><dl> -<dt>access_token</dt> -<dd> - - REQUIRED. The access token issued by the authorization server. - -</dd> -<dt>expires_in</dt> -<dd> - - OPTIONAL. The duration in seconds of the access token lifetime. - -</dd> -<dt>refresh_token</dt> -<dd> - - OPTIONAL. The refresh token used to obtain new access tokens using the same - end user access grant as described in <a class='info' href='#token_refresh'>Section 4<span> (</span><span class='info'>Refreshing an Access Token</span><span>)</span></a>. - -</dd> -<dt>access_token_secret</dt> -<dd> - - REQUIRED if requested by the client. The corresponding access token secret as - requested by the client. - -</dd> -</dl></blockquote><p> + REQUIRED. The requested response: an access token, an authorization code, or both. The + parameter value MUST be set to <TT>token</TT> for requesting an + access token, <TT>code</TT> for requesting an authorization code, or + <TT>code-and-token</TT> to request both. The authorization server + MAY decline to provide one or more of these response types. [[ The 'code-and-token' + type is pending use cases and may be removed for the specification ]] + +</DD> +<DT>client_id</DT> +<DD> -</p> -<p> - For example: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 200 OK - Content-Type: application/x-www-form-urlencoded - - access_token=SlAV32hkKG&expires_in=3600&refresh_token=8xLOxBtZp8 - -</pre></div> -<p> - If the request is invalid, the authorization server returns an error message in the - HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 400 status code (Bad Request). + REQUIRED. The client identifier as described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#client-authentication">Section 2<SPAN> (</SPAN><SPAN class="info">Client Credentials</SPAN><SPAN>)</SPAN></A>. + +</DD> +<DT>redirect_uri</DT> +<DD> -</p> -<p> - The response contains the following parameter: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - OPTIONAL. The parameter value MUST be set to either - <tt>redirect_uri_mismatch</tt> or - <tt>expired_verification_code</tt> (case sensitive). - -</dd> -</dl></blockquote><p> + REQUIRED, unless a redirection URI has been established between the client and + authorization server via other means. An absolute URI to which the authorization + server will redirect the user-agent to when the end-user authorization step is + completed. The authorization server SHOULD require the client to pre-register + their redirection URI. + +</DD> +<DT>scope</DT> +<DD> -</p> -<p> - For example: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 400 Bad Request - Content-Type: application/x-www-form-urlencoded - - error=expired_verification_code - -</pre></div> -<a name="device_flow"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.3"></a><h3>3.5.3. -Device Flow</h3> - -<p> - The device flow is a user delegation flow suitable for clients executing on devices - which do not have an easy data-entry method (e.g. game consoles or media hub), but - where the end user has separate access to a user-agent on another computer or device - (e.g. home computer, a laptop, or a smartphone). The client is incapable of receiving - incoming requests from the authorization server (incapable of acting as an HTTP - server). - -</p> -<p> - Instead of interacting with the end user's user-agent, the client instructs the end - user to use another computer or device and connect to the authorization server to - approve the access request. Since the client cannot receive incoming requests, it polls the - authorization server repeatedly until the end user completes the approval process. - -</p> -<p> - This device flow does not utilize the client secret since the client executables - reside on a local device which makes the client secret accessible and exploitable. - -</p><br /><hr class="insert" /> -<a name="Figure 6"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - +----------+ +----------------+ - | |>---(A)-- Client Identifier --->| | - | | | | - | |<---(B)-- Verification Code, --<| | - | | User Code, | | - | | & Verification URI | | - | Device | | | - | Client | Client Identifier & | | - | |>---(E)-- Verification Code --->| | - | | ... | | - | |>---(E)---> | | - | | | Authorization | - | |<---(F)-- Access Token --------<| Server | - +----------+ (w/ Optional Refresh Token) | | - v | | - : | | - (C) User Code & Verification URI | | - : | | - v | | - +----------+ | | - | End User | | | - | at |<---(D)-- User authenticates -->| | - | Browser | | | - +----------+ +----------------+ - -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 5 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - The device flow illustrated in <a class='info' href='#Figure 6'>Figure 5</a> includes the following - steps: - - </p> -<blockquote class="text"><dl> -<dt>(A)</dt> -<dd> - The client requests access from the authorization server and includes its client - identifier in the request. - -</dd> -<dt>(B)</dt> -<dd> - The authorization server issues a verification code, a user code, and provides the - end user authorization URI. - -</dd> -<dt>(C)</dt> -<dd> - The client instructs the end user to use its user-agent (elsewhere) and visit the - provided authorization URI. The client provides the user with the user code to - enter in order to grant access. - -</dd> -<dt>(D)</dt> -<dd> - The authorization server authenticates the end user (via the user-agent) and - prompts the end user to grant the client's access request by entering the user - code provided by the client. - -</dd> -<dt>(E)</dt> -<dd> - While the end user authorizes (or denies) the client's request (D), the client - repeatedly polls the authorization server to find out if the end user completed the - user authorization step. The client includes the verification code and its client - identifier. - -</dd> -<dt>(F)</dt> -<dd> - Assuming the end user granted access, the authorization server validates the - verification code provided by the client and responds back with the access token. - -</dd> -</dl></blockquote><p> - -</p> -<a name="anchor19"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.3.1"></a><h3>3.5.3.1. -Client Requests Authorization</h3> - -<p> - The client initiates the flow by requesting a set of verification codes from the - authorization server by making an HTTP <tt>GET</tt> request to the - authorization endpoint. The client constructs a request URI by adding the following - parameters to the request: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to 'device' (case sensitive). - -</dd> -<dt>client_id</dt> -<dd> - - REQUIRED. The client identifier as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -</dl></blockquote><p> + OPTIONAL. The scope of the access request expressed as a list of space-delimited + strings. The value of the <TT>scope</TT> parameter is defined + by the authorization server. If the value contains multiple space-delimited + strings, their order does not matter, and each string adds an additional access + range to the requested scope. + +</DD> +<DT>state</DT> +<DD> -</p> -<p> - For example, the client makes the following HTTPS request (line breaks are for - display purposes only): - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /authorize?type=device&client_id=s6BhdRkqt3 - HTTP/1.1 + OPTIONAL. An opaque value used by the client to maintain state between the request + and callback. The authorization server includes this value when redirecting the + user-agent back to the client. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + The client directs the end-user to the constructed URI using an HTTP redirection + response, or by other means available to it via the end-user's user-agent. The + request MUST use the HTTP <TT>GET</TT> method. + +</P> +<P> + For example, the client directs the end-user's user-agent to make the following HTTP + request using transport-layer security (line breaks are for display purposes only): + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + GET /authorize?response_type=code&client_id=s6BhdRkqt3& + redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb HTTP/1.1 Host: server.example.com -</pre></div> -<p> - In response, the authorization server generates a verification code and a user code - and includes them in the HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> format as defined by - <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 200 status code (OK). The - response contains the following parameters: - - </p> -<blockquote class="text"><dl> -<dt>code</dt> -<dd> - - REQUIRED. The verification code. - -</dd> -<dt>user_code</dt> -<dd> - - REQUIRED. The user code. - -</dd> -<dt>user_uri</dt> -<dd> - - REQUIRED. The user authorization URI on the authorization server. - -</dd> -<dt>expires_in</dt> -<dd> - - OPTIONAL. The duration in seconds of the verification code lifetime. - -</dd> -<dt>interval</dt> -<dd> - - OPTIONAL. The minimum amount of time in seconds that the client SHOULD wait - between polling requests to the token endpoint. - -</dd> -</dl></blockquote><p> - -</p> -<p> - For example (line breaks are for display purposes only): +</PRE></DIV> +<P> + If the client has previously registered a redirection URI with the authorization server, + the authorization server MUST verify that the redirection URI received matches the + registered URI associated with the client identifier. [[ provide guidance on how to + perform matching ]] + +</P> +<P> + Parameters sent without a value MUST be treated as if they were omitted from the request. + +</P> +<P> + The authorization server validates the request to ensure all required parameters are + present and valid. If the request is invalid, the authorization server immediately + redirects the user-agent back to the client using the redirection URI provided with the + appropriate error code as described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#auth-error">Section 3.2<SPAN> (</SPAN><SPAN class="info">Error Response</SPAN><SPAN>)</SPAN></A>. + +</P> +<P> + The authorization server authenticates the end-user and obtains an authorization + decision (by asking the end-user or by establishing approval via other means). When a + decision has been established, the authorization server directs the end-user's + user-agent to the provided client redirection URI using an HTTP redirection response, + or by other means available to it via the end-user's user-agent. + +</P> +<A name="anchor10"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.3.1"></A><H3>3.1. +Authorization Response</H3> + +<P> + If the end-user grants the access request, the authorization server issues an access + token, an authorization code, or both, and delivers them to the client by adding the + following parameters to the redirection URI (as described below): + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>code</DT> +<DD> -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 200 OK - Content-Type: application/x-www-form-urlencoded - - device_code=74tq5miHKB&user_code=94248&user_uri=http%3A%2F%2 - Fwww%2Eexample%2Ecom%2Fdevice&interval=5 - -</pre></div> -<p> - The client displays the user code and the user authorization URI to the end-user, and - instructs the end user to visit the URI using a user-agent and enter the user code. + REQUIRED if the response type is <TT>token</TT> or + <TT>code-and-token</TT>, otherwise MUST NOT be included. The + authorization code generated by the authorization server. The authorization code + SHOULD expire shortly after it is issued. The authorization server MUST invalidate + the authorization code after a single usage. The authorization code is bound to the + client identifier and redirection URI. -</p> -<p> - The end user manually types the provided URI and authenticates with the authorization - server. The authorization server prompts the end user to authorize the client's - request by entering the user code provided by the client. Once the end user approves - or denies the request, the authorization server informs the end user to return to the - device for further instructions. +</DD> +<DT>access_token</DT> +<DD> + + REQUIRED if the response type is <TT>token</TT> or + <TT>code-and-token</TT>, otherwise MUST NOT be included. The + access token. -</p> -<a name="anchor20"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.3.2"></a><h3>3.5.3.2. -Client Requests Access Token</h3> - -<p> - Since the client is unable to receive incoming requests from the authorization - server, it polls the authorization server repeatedly until the end user grants or - denies the request, or the verification code expires. +</DD> +<DT>expires_in</DT> +<DD> + + OPTIONAL. The duration in seconds of the access token lifetime if an access token + is included. For example, the value <TT>3600</TT> denotes that the + access token will expire in one hour from the time the response was generated by the + authorization server. -</p> -<p> - The client makes the following request at an arbitrary but reasonable interval which - MUST NOT exceed the minimum interval rate provided by the authorization server (if - present via the <tt>interval</tt> parameter). Alternatively, the - client MAY provide a user interface for the end user to manually inform it when - authorization was granted. +</DD> +<DT>scope</DT> +<DD> + + OPTIONAL. The scope of the access token as a list of space-delimited strings if an + access token is included. The value of the <TT>scope</TT> + parameter is defined by the authorization server. If the value contains multiple + space-delimited strings, their order does not matter, and each string adds an + additional access range to the requested scope. -</p> -<p> - The client requests an access token by making an HTTP <tt>GET</tt> - request to the token endpoint. The client constructs a request URI by adding - the following parameters to the request: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to 'device' (case sensitive). - -</dd> -<dt>client_id</dt> -<dd> - - REQUIRED. The client identifier as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -<dt>code</dt> -<dd> - - The verification code received from the authorization server. - -</dd> -<dt>secret_type</dt> -<dd> - - OPTIONAL. The access token secret type as described by - <a class='info' href='#crypto_token'>Section 5.3<span> (</span><span class='info'>Cryptographic Tokens Requests</span><span>)</span></a>. If omitted, the authorization server will issue a - bearer token (an access token without a matching secret) as described by - <a class='info' href='#bearer_token'>Section 5.2<span> (</span><span class='info'>Bearer Token Requests</span><span>)</span></a>. - -</dd> -</dl></blockquote><p> +</DD> +<DT>state</DT> +<DD> + + REQUIRED if the <TT>state</TT> parameter was present in the + client authorization request. Set to the exact value received from the client. -</p> -<p> - For example, the client makes the following HTTPS request (line breaks are for display - purposes only): - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /token?type=device&client_id=s6BhdRkqt3 - &code=J2vC42OifV HTTP/1.1 - Host: server.example.com +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + The method in which the authorization server adds the parameter to the redirection + URI is determined by the response type requested by the client in the authorization + request using the <TT>response_type</TT> parameter. + +</P> +<P> + If the response type is <TT>code</TT>, the authorization + server adds the parameters to the redirection URI query component using the + <TT>application/x-www-form-urlencoded</TT> format as defined by + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#W3C.REC-html401-19991224">[W3C.REC‑html401‑19991224]<SPAN> (</SPAN><SPAN class="info">Hors, A., Jacobs, I., and D. Raggett, “HTML 4.01 Specification,” December 1999.</SPAN><SPAN>)</SPAN></A>. + +</P> +<P> + For example, the authorization server redirects the end-user's user-agent by + sending the following HTTP response: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + HTTP/1.1 302 Found + Location: https://client.example.com/cb?code=i1WsRn1uB1 -</pre></div> -<a name="anchor21"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.3.2.1"></a><h3>3.5.3.2.1. -End User Grants Authorization</h3> - -<p> - If the end user authorized the request, the authorization server issues an access - token and delivers it to the client by including it in the HTTP response - body using the <tt>application/x-www-form-urlencoded</tt> - content type as defined by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 200 - status code (OK). The response contains the following parameters: - - </p> -<blockquote class="text"><dl> -<dt>access_token</dt> -<dd> - - REQUIRED. The access token. - -</dd> -<dt>expires_in</dt> -<dd> - - OPTIONAL. The duration in seconds of the access token lifetime. - -</dd> -<dt>refresh_token</dt> -<dd> - - OPTIONAL. The refresh token. - -</dd> -<dt>access_token_secret</dt> -<dd> - - REQUIRED if requested by the client. The corresponding access token secret as - requested by the client. - -</dd> -</dl></blockquote><p> - -</p> -<p> - For example: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 200 OK - Content-Type: application/x-www-form-urlencoded +</PRE></DIV> +<P> + If the response type is <TT>token</TT>, the authorization + server adds the parameters to the redirection URI fragment component using the + <TT>application/x-www-form-urlencoded</TT> format as defined by + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#W3C.REC-html401-19991224">[W3C.REC‑html401‑19991224]<SPAN> (</SPAN><SPAN class="info">Hors, A., Jacobs, I., and D. Raggett, “HTML 4.01 Specification,” December 1999.</SPAN><SPAN>)</SPAN></A>. + +</P> +<P> + For example, the authorization server redirects the end-user's user-agent by + sending the following HTTP response: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + HTTP/1.1 302 Found + Location: http://example.com/rd#access_token=FJQbwq9&expires_in=3600 - access_token=FJQbwq9OD8&expires_in=3600 - -</pre></div> -<a name="anchor22"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.3.2.2"></a><h3>3.5.3.2.2. -End User Denies Authorization</h3> - -<p> - If the end user denied the request, the authorization server provides the client - with the error message in the HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as - defined by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 400 status code - (Bad Request). The response contains the following parameters: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - REQUIRED. Value must be set to - <tt>authorization_declined</tt>. - -</dd> -</dl></blockquote><p> +</PRE></DIV> +<P> + If the response type is <TT>code-and-token</TT>, the authorization + server adds the <TT>code</TT> and <TT>state</TT> + parameters to the redirection URI query component and the + <TT>access_token</TT>, <TT>scope</TT>, and + <TT>expires_in</TT> to the redirection URI fragment using the + <TT>application/x-www-form-urlencoded</TT> format as defined by + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#W3C.REC-html401-19991224">[W3C.REC‑html401‑19991224]<SPAN> (</SPAN><SPAN class="info">Hors, A., Jacobs, I., and D. Raggett, “HTML 4.01 Specification,” December 1999.</SPAN><SPAN>)</SPAN></A>. + +</P> +<P> + For example, the authorization server redirects the end-user's user-agent by + sending the following HTTP response (line breaks are for display purposes only): + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + HTTP/1.1 302 Found + Location: http://example.com/rd?code=i1WsRn1uB1 + #access_token=FJQbwq9&expires_in=3600 + +</PRE></DIV> +<P> + The sizes of tokens and other values received from the authorization server, are left + undefined by this specification. Clients should avoid making assumptions about value + sizes. Servers should document the expected size of any value they issue. + +</P> +<A name="auth-error"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.3.2"></A><H3>3.2. +Error Response</H3> + +<P> + If the end-user denies the access request or if the request is invalid, the authorization + server informs the client by adding the following parameters to the redirection URI query + component using the <TT>application/x-www-form-urlencoded</TT> format + as defined by <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#W3C.REC-html401-19991224">[W3C.REC‑html401‑19991224]<SPAN> (</SPAN><SPAN class="info">Hors, A., Jacobs, I., and D. Raggett, “HTML 4.01 Specification,” December 1999.</SPAN><SPAN>)</SPAN></A>: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>error</DT> +<DD> -</p> -<p> - For example: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 400 Bad Request - Content-Type: application/x-www-form-urlencoded - - error=authorization_declined - -</pre></div> -<a name="anchor23"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.5.3.2.3"></a><h3>3.5.3.2.3. -End User Authorization Pending or Expired</h3> - -<p> - If the end user authorization is pending or expired without receiving any response - from the end user, or the client is exceeding the allowed polling interval, the - authorization server provides the client with the error message in the HTTP - response body using the <tt>application/x-www-form-urlencoded</tt> - content type as defined by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 400 - status code (Bad Request). The response contains the following parameters: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - REQUIRED. Value MUST be set to - <tt>authorization_pending</tt>, - <tt>slow_down</tt>, or - <tt>code_expired</tt> (case sensitive). - -</dd> -</dl></blockquote><p> + REQUIRED. A single error code as described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#auth-error-codes">Section 3.2.1<SPAN> (</SPAN><SPAN class="info">Error Codes</SPAN><SPAN>)</SPAN></A>. + +</DD> +<DT>error_description</DT> +<DD> + OPTIONAL. A human-readable text providing additional information, used to assist in + the understanding and resolution of the error occurred. + +</DD> +<DT>error_uri</DT> +<DD> + OPTIONAL. A URI identifying a human-readable web page with information about the + error, used to provide the end-user with additional information about the error. + +</DD> +<DT>state</DT> +<DD> -</p> -<p> - For example: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 400 Bad Request - Content-Type: application/x-www-form-urlencoded + REQUIRED if the <TT>state</TT> parameter was present in the + client authorization request. Set to the exact value received from the client. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + For example, the authorization server redirects the end-user's user-agent by + sending the following HTTP response: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + HTTP/1.1 302 Found + Location: https://client.example.com/cb?error=access-denied - error=authorization_pending - -</pre></div> -<a name="anchor24"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.6"></a><h3>3.6. -End User Credentials Flows</h3> - -<p> - End user credential flows are used to grant client access to protected resources by the - end user directly sharing the end user credentials (typically a username and password) - with the client. Unlike user delegation flows, end user credentials flows require a much - higher degree of trust between the client and end user. - -</p> -<p> - These flows are suitable in cases where the end user already has a trust relationship - with the client, such as its computer operating system or highly privileged applications. - Authorization servers SHOULD take special care when enabling user credentials flows, and - SHOULD only do so when other delegation flows are not viable. - -</p> -<p> - However, unlike the HTTP Basic authentication scheme defined in - <a class='info' href='#RFC2617'>[RFC2617]<span> (</span><span class='info'>Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</span><span>)</span></a>, the end user's credentials are used in a single request and - are exchanged for an access token and refresh token which eliminates the client need to - store them for future use. - -</p> -<a name="username_password_flow"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.6.1"></a><h3>3.6.1. -Username and Password Flow</h3> - -<p> - The username and password flow is an end user credentials flow suitable for clients - capable of asking end users for their usernames and passwords. It is also used to - migrate existing clients using direct authentication schemes such as HTTP Basic or - Digest authentication to OAuth by converting the end user credentials stored with - tokens. - -</p> -<p> - The methods through which the client prompts end users for their usernames and - passwords is beyond the scope of this specification. The client MUST discard the - usernames and passwords once an access token has been obtained. - -</p><br /><hr class="insert" /> -<a name="Figure 7"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - End User - v - : - (A) - : - v - +--------+ +---------------+ - | | Client Credentials | | - | |>--(B)--- & User Credentials ---->| Authorization | - | Client | | Server | - | |<--(C)---- Access Token ---------<| | - | | (w/ Optional Refresh Token) | | - +--------+ +---------------+ +</PRE></DIV> +<A name="auth-error-codes"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.3.2.1"></A><H3>3.2.1. +Error Codes</H3> -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 6 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - The username and password flow illustrated in <a class='info' href='#Figure 7'>Figure 6</a> includes the - following steps: - - </p> -<blockquote class="text"><dl> -<dt>(A)</dt> -<dd> - The end user provides the client with its username and password. - -</dd> -<dt>(B)</dt> -<dd> - The client sends an access token request to the authorization server and includes - its client identifier and client secret, and the end user's username and password. - -</dd> -<dt>(C)</dt> -<dd> - The authorization server validates the end user credentials and the client - credentials and issues an access token. - -</dd> -</dl></blockquote><p> - -</p> -<a name="anchor25"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.6.1.1"></a><h3>3.6.1.1. -Client Requests Access Token</h3> - -<p> - The client requests an access token by making an HTTP <tt>POST</tt> - request to the token endpoint. The client constructs a request URI by adding - the following parameters to the request: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to 'username' (case sensitive). - -</dd> -<dt>client_id</dt> -<dd> - - REQUIRED. The client identifier as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -<dt>client_secret</dt> -<dd> - - REQUIRED. The client secret as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. OPTIONAL - if no client secret was issued. - -</dd> -<dt>username</dt> -<dd> - - REQUIRED. The end user's username. +<P> + The authorization server includes one of the following error codes with the error + response: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>invalid-request</DT> +<DD> -</dd> -<dt>password</dt> -<dd> - - REQUIRED. The end user's password. + The request is missing a required parameter, includes an unknown parameter or + parameter value, or is otherwise malformed. + +</DD> +<DT>invalid-client-id</DT> +<DD> -</dd> -<dt>secret_type</dt> -<dd> - - OPTIONAL. The access token secret type as described by - <a class='info' href='#crypto_token'>Section 5.3<span> (</span><span class='info'>Cryptographic Tokens Requests</span><span>)</span></a>. If omitted, the authorization server will issue a - bearer token (an access token without a matching secret) as described by - <a class='info' href='#bearer_token'>Section 5.2<span> (</span><span class='info'>Bearer Token Requests</span><span>)</span></a>. + The client identifier provided is invalid. + +</DD> +<DT>unauthorized-client</DT> +<DD> -</dd> -</dl></blockquote><p> - -</p> -<p> - For example, the client makes the following HTTPS request (line breaks are for - display purposes only): + The client is not authorized to use the requested response type. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - POST /token HTTP/1.1 - Host: server.example.com - - type=username&client_id=s6BhdRkqt3&client_secret= - 47HDu8s&username=johndoe&password=A3ddj3w - -</pre></div> -<p> - The authorization server MUST validate the client credentials and end user credentials - and if valid issue an access token and deliver to the client in the HTTP response body - using the <tt>application/x-www-form-urlencoded</tt> content type as - defined by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 200 status code (OK). - -</p> -<p> - The response contains the following parameters: - - </p> -<blockquote class="text"><dl> -<dt>access_token</dt> -<dd> - - REQUIRED. The access token. +</DD> +<DT>redirect-uri-mismatch</DT> +<DD> -</dd> -<dt>expires_in</dt> -<dd> - - OPTIONAL. The duration in seconds of the access token lifetime. + The redirection URI provided does not match a pre-registered value. + +</DD> +<DT>access-denied</DT> +<DD> -</dd> -<dt>refresh_token</dt> -<dd> - - OPTIONAL. The refresh token. + The end-user or authorization server denied the request. + +</DD> +<DT>unsupported-response-type</DT> +<DD> -</dd> -<dt>access_token_secret</dt> -<dd> - - REQUIRED if requested by the client. The corresponding access token secret as - requested by the client. + The requested response type is not supported by the authorization server. + +</DD> +<DT>invalid_scope</DT> +<DD> -</dd> -</dl></blockquote><p> - -</p> -<p> - For example: + The requested scope is invalid, unknown, or malformed. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 200 OK - Content-Type: application/x-www-form-urlencoded - - access_token=FJQbwq9OD8&refresh_token=gO3CHNqpH8 - -</pre></div> -<p> - If the request is invalid, the authorization server returns an error message in the - HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 400 status code (Bad Request). +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + [[ Add mechanism for extending error codes ]] + +</P> +<A name="obtaining-token"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4"></A><H3>4. +Obtaining an Access Token</H3> + +<P> + The client obtains an access token by authenticating with the authorization server and + presenting its access grant. + +</P> +<P> + After establishing resource owner authorization, clients request an access token from the + authorization server's token endpoint. When requesting an access token, the client + authenticates with the authorization server and includes the access grant (in the form of + an authorization code, resource owner credentials, an assertion, or a refresh token). + +</P> +<P> + The location of the token endpoint can be found in the service documentation, or can be + obtained by using [[ OAuth Discovery ]]. The token endpoint URI MAY include a query + component. + +</P> +<P> + Since requests to the token endpoint result in the transmission of plain text + credentials in the HTTP request and response, the authorization server MUST require the + use of a transport-layer security mechanism when sending requests to the token endpoints. + Servers MUST support TLS 1.2 as defined in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC5246">[RFC5246]<SPAN> (</SPAN><SPAN class="info">Dierks, T. and E. Rescorla, “The Transport Layer Security (TLS) Protocol Version 1.2,” August 2008.</SPAN><SPAN>)</SPAN></A>, and MAY support + additional transport-layer security mechanisms. + +</P> +<P> + The client requests an access token by constructing a token request and making an HTTP + <TT>POST</TT> request. The client constructs the request URI by adding + its client credentials to the request as described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#client-authentication">Section 2<SPAN> (</SPAN><SPAN class="info">Client Credentials</SPAN><SPAN>)</SPAN></A>, and includes the following parameters using the + <TT>application/x-www-form-urlencoded</TT> format in the HTTP request + entity-body: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>grant_type</DT> +<DD> -</p> -<p> - The response contains the following parameter: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - OPTIONAL. The parameter value MUST be set to either - <tt>incorrect_credentials</tt> or - <tt>unauthorized_client</tt> (case sensitive). - -</dd> -</dl></blockquote><p> + REQUIRED. The access grant type included in the request. Value MUST be one of + <TT>authorization-code</TT>, + <TT>basic-credentials</TT>, + <TT>assertion</TT>, + <TT>refresh-token</TT>, or <TT>none</TT>. + +</DD> +<DT>scope</DT> +<DD> -</p> -<p> - For example: + OPTIONAL. The scope of the access request expressed as a list of space-delimited + strings. The value of the <TT>scope</TT> parameter is defined + by the authorization server. If the value contains multiple space-delimited + strings, their order does not matter, and each string adds an additional access + range to the requested scope. If the access grant being used already represents an + approved scope (e.g. authorization code, assertion), the requested scope MUST be equal + or lesser than the scope previously granted. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + In addition, the client MUST include the appropriate parameters listed for the selected + access grant type as described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-grant-types">Section 4.1<SPAN> (</SPAN><SPAN class="info">Access Grant Types</SPAN><SPAN>)</SPAN></A>. + +</P> +<P> + Parameters sent without a value MUST be treated as if they were omitted from the request. + +</P> +<A name="access-grant-types"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4.1"></A><H3>4.1. +Access Grant Types</H3> + +<P> + The client requests an access token using one of the four types of access grants: + authorization code, basic credentials, assertion, or refresh token. + +</P> +<P> + When requesting an access token using the <TT>none</TT> access grant + type (no access grant is included), the client is requesting access to the protected + resources under its control, or those of another resource owner which has been previously + arranged with the authorization server (the method of which is beyond the scope of this + specification). + +</P> +<A name="anchor11"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4.1.1"></A><H3>4.1.1. +Authorization Code</H3> + +<P> + The client includes the authorization code using the + <TT>authorization-code</TT> access grant type and the following + parameters: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>code</DT> +<DD> + + REQUIRED. The authorization code received from the authorization server. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 400 Bad Request - Content-Type: application/x-www-form-urlencoded - - error=incorrect_credentials - -</pre></div> -<a name="anchor26"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.7"></a><h3>3.7. -Autonomous Client Flows</h3> - -<p> - Autonomous client flows are used to grant client access to protected resources controlled - by the client (i.e. the client is the resource owner). For example, these flows are - useful when a service provides both client-specific resources in addition to end user - resources. - -</p> -<a name="client_credentials_flow"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.7.1"></a><h3>3.7.1. -Client Credentials Flow</h3> - -<p> - The client credentials flow is used when the client acts autonomously without acting on - behalf of a separate resource owner. The client secret is assumed to be high-entropy - since it is not designed to be memorize by an end user. - -</p><br /><hr class="insert" /> -<a name="Figure 8"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - - +--------+ +---------------+ - | | | | - | |>--(A)--- Client Credentials ---->| Authorization | - | Client | | Server | - | |<--(B)---- Access Token ---------<| | - | | (w/ Optional Refresh Token) | | - +--------+ +---------------+ - -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 7 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - The client credential flow illustrated in <a class='info' href='#Figure 8'>Figure 7</a> includes the - following steps: - - </p> -<blockquote class="text"><dl> -<dt>(A)</dt> -<dd> - The client sends an access token request to the authorization server and includes - its client identifier and client secret. - -</dd> -<dt>(B)</dt> -<dd> - The authorization server validates the client credentials and issues an access - token. - -</dd> -</dl></blockquote><p> - -</p> -<a name="anchor27"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.7.1.1"></a><h3>3.7.1.1. -Client Requests Access Token</h3> - -<p> - The client requests an access token by making an HTTP <tt>POST</tt> - request to the token endpoint. The client constructs a request URI by adding - the following parameters to the request: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to 'client_cred' (case sensitive). - -</dd> -<dt>client_id</dt> -<dd> - - REQUIRED. The client identifier as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. +</DD> +<DT>redirect_uri</DT> +<DD> -</dd> -<dt>client_secret</dt> -<dd> - - REQUIRED. The client secret as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -<dt>secret_type</dt> -<dd> - - OPTIONAL. The access token secret type as described by - <a class='info' href='#crypto_token'>Section 5.3<span> (</span><span class='info'>Cryptographic Tokens Requests</span><span>)</span></a>. If omitted, the authorization server will issue a - bearer token (an access token without a matching secret) as described by - <a class='info' href='#bearer_token'>Section 5.2<span> (</span><span class='info'>Bearer Token Requests</span><span>)</span></a>. - -</dd> -</dl></blockquote><p> - -</p> -<p> - For example, the client makes the following HTTPS request (line breaks are for - display purposes only): + REQUIRED. The redirection URI used in the initial request. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + For example, the client makes the following HTTP request using transport-layer + security (line breaks are for display purposes only): + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> POST /token HTTP/1.1 Host: server.example.com + Content-Type: application/x-www-form-urlencoded - type=client_cred&client_id=s6BhdRkqt3&client_secret=47HDu8s + grant_type=authorization-code&client_id=s6BhdRkqt3& + client_secret=gX1fBat3bV&code=i1WsRn1uB1& + redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb -</pre></div> -<p> - The authorization server MUST validate the client credentials and if valid issue an - access token and deliver to the client in the HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 200 status code (OK). - -</p> -<p> - The response contains the following parameters: - - </p> -<blockquote class="text"><dl> -<dt>access_token</dt> -<dd> - - REQUIRED. The access token. - -</dd> -<dt>expires_in</dt> -<dd> - - OPTIONAL. The duration in seconds of the access token lifetime. - -</dd> -<dt>refresh_token</dt> -<dd> - - OPTIONAL. The refresh token. - -</dd> -<dt>access_token_secret</dt> -<dd> - - REQUIRED if requested by the client. The corresponding access token secret as - requested by the client. +</PRE></DIV> +<P> + The authorization server MUST verify that the authorization code, client identity, + client secret, and redirection URI are all valid and match its stored association. If + the request is valid, the authorization server issues a successful response as + described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-token-response">Section 4.2<SPAN> (</SPAN><SPAN class="info">Access Token Response</SPAN><SPAN>)</SPAN></A>. + +</P> +<A name="anchor12"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4.1.2"></A><H3>4.1.2. +Resource Owner Basic Credentials</H3> + +<P> + The client includes the resource owner credentials using the + <TT>basic-credentials</TT> access grant type and the following + parameters: [[ add internationalization consideration for username and password ]] + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>username</DT> +<DD> + + REQUIRED. The end-user's username. + +</DD> +<DT>password</DT> +<DD> -</dd> -</dl></blockquote><p> - -</p> -<p> - For example: + REQUIRED. The end-user's password. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 200 OK +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + For example, the client makes the following HTTP request using transport-layer + security (line breaks are for display purposes only): + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + POST /token HTTP/1.1 + Host: server.example.com Content-Type: application/x-www-form-urlencoded - access_token=FJQbwq9OD8 + grant_type=basic-credentials&client_id=s6BhdRkqt3& + client_secret=47HDu8s&username=johndoe&password=A3ddj3w -</pre></div> -<p> - If the request is invalid, the authorization server returns an error message in the - HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 400 status code (Bad Request). - -</p> -<p> - The response contains the following parameter: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - OPTIONAL. The parameter value MUST be set to either - <tt>incorrect_credentials</tt> or - <tt>unauthorized_client</tt> (case sensitive). +</PRE></DIV> +<P> + The authorization server MUST validate the client credentials and end-user credentials + and if valid issues an access token response as described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-token-response">Section 4.2<SPAN> (</SPAN><SPAN class="info">Access Token Response</SPAN><SPAN>)</SPAN></A>. + +</P> +<A name="anchor13"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4.1.3"></A><H3>4.1.3. +Assertion</H3> + +<P> + The client includes the assertion using the <TT>assertion</TT> access + grant type and the following parameters: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>assertion_type</DT> +<DD> + + REQUIRED. The format of the assertion as defined by the authorization server. The + value MUST be an absolute URI. + +</DD> +<DT>assertion</DT> +<DD> -</dd> -</dl></blockquote><p> - -</p> -<p> - For example: + REQUIRED. The assertion. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 400 Bad Request +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + For example, the client makes the following HTTP request using transport-layer + security (line breaks are for display purposes only): + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + POST /token HTTP/1.1 + Host: server.example.com Content-Type: application/x-www-form-urlencoded - error=incorrect_credentials - -</pre></div> -<a name="assertion_flow"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.7.2"></a><h3>3.7.2. -Assertion Flow</h3> - -<p> - The assertion flow requires the client to obtain a assertion such as a - <a class='info' href='#OASIS.saml-core-2.0-os'>SAML<span> (</span><span class='info'>Cantor, S., Kemp, J., Philpott, R., and E. Maler, “Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0,” March 2005.</span><span>)</span></a> [OASIS.saml‑core‑2.0‑os] assertion from an assertion issuer - prior to initiating the flow. The process in which the assertion is obtained is defined - by the assertion issuer and the authorization server, and is beyond the scope of this - specification. - -</p> -<p> - The client credentials flow is used when the client acts autonomously without acting on - behalf of a separate resource owner. - -</p><br /><hr class="insert" /> -<a name="Figure 9"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> + grant_type=assertion&client_id=s6BhdRkqt3&client_secret=diejdsks& + assertion_type=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Aassertion& + assertion=PHNhbWxwOl...[omitted for brevity]...ZT4%3D - +--------+ +---------------+ - | | | | - | |>--(A)------ Assertion ---------->| Authorization | - | Client | | Server | - | |<--(B)---- Access Token ---------<| | - | | (w/ Optional Refresh Token) | | - +--------+ +---------------+ - -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 8 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - The client credential flow illustrated in <a class='info' href='#Figure 9'>Figure 8</a> includes the - following steps: - - </p> -<blockquote class="text"><dl> -<dt>(A)</dt> -<dd> - The client sends an access token request to the authorization server and includes - an assertion. - -</dd> -<dt>(B)</dt> -<dd> - The authorization server validates the assertion and issues an access token. - -</dd> -</dl></blockquote><p> - -</p> -<a name="anchor28"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.3.7.2.1"></a><h3>3.7.2.1. -Client Requests Access Token</h3> - -<p> - The client requests an access token by making an HTTP <tt>POST</tt> - request to the token endpoint. The client constructs a request URI by adding - the following parameters to the request: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to 'assertion' (case sensitive). - -</dd> -<dt>format</dt> -<dd> - - REQUIRED. The format of the assertion as defined by the authorization server. - -</dd> -<dt>assertion</dt> -<dd> - - REQUIRED. The assertion. - -</dd> -<dt>secret_type</dt> -<dd> - - OPTIONAL. The access token secret type as described by - <a class='info' href='#crypto_token'>Section 5.3<span> (</span><span class='info'>Cryptographic Tokens Requests</span><span>)</span></a>. If omitted, the authorization server will issue a - bearer token (an access token without a matching secret) as described by - <a class='info' href='#bearer_token'>Section 5.2<span> (</span><span class='info'>Bearer Token Requests</span><span>)</span></a>. - -</dd> -</dl></blockquote><p> - -</p> -<p> - For example, the client makes the following HTTPS request (line breaks are for - display purposes only): +</PRE></DIV> +<P> + The authorization server MUST validate the assertion and if valid issues an access + token response as described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-token-response">Section 4.2<SPAN> (</SPAN><SPAN class="info">Access Token Response</SPAN><SPAN>)</SPAN></A>. The + authorization server SHOULD NOT issue a refresh token. + +</P> +<P> + Authorization servers SHOULD issue access tokens with a limited lifetime and require + clients to refresh them by requesting a new access token using the same assertion if it + is still valid. Otherwise the client MUST obtain a new valid assertion. + +</P> +<A name="token-refresh"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4.1.4"></A><H3>4.1.4. +Refresh Token</H3> + +<P> + The client includes the refresh token using the + <TT>refresh-token</TT> access grant type and the following + parameter: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>refresh_token</DT> +<DD> + + REQUIRED. The refresh token associated with the access token to be refreshed. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + For example, the client makes the following HTTP request using transport-layer + security (line break are for display purposes only): + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> POST /token HTTP/1.1 Host: server.example.com + Content-Type: application/x-www-form-urlencoded - type=assertion&format=_______&assertion=_______ + grant_type=refresh-token&client_id=s6BhdRkqt3& + client_secret=8eSEIpnqmM&refresh_token=n4E9O119d -</pre></div> -<p> - The authorization server MUST validate the assertion and if valid issue an access - token and deliver to the client in the HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 200 status code (OK). - -</p> -<p> - The response contains the following parameters: - - </p> -<blockquote class="text"><dl> -<dt>access_token</dt> -<dd> - - REQUIRED. The access token. - -</dd> -<dt>expires_in</dt> -<dd> - - OPTIONAL. The duration in seconds of the access token lifetime. - -</dd> -<dt>refresh_token</dt> -<dd> - - OPTIONAL. The refresh token. - -</dd> -<dt>access_token_secret</dt> -<dd> - - REQUIRED if requested by the client. The corresponding access token secret as - requested by the client. - -</dd> -</dl></blockquote><p> +</PRE></DIV> +<P> + The authorization server MUST verify the client credentials, the validity of the + refresh token, and that the resource owner's authorization is still valid. If the + request is valid, the authorization server issues an access token response as described + in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#access-token-response">Section 4.2<SPAN> (</SPAN><SPAN class="info">Access Token Response</SPAN><SPAN>)</SPAN></A>. The authorization server MAY issue a new + refresh token. + +</P> +<A name="access-token-response"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4.2"></A><H3>4.2. +Access Token Response</H3> + +<P> + After receiving and verifying a valid and authorized access token request from the + client, the authorization server issues the access token and optional refresh token, + and constructs the response by adding the following parameters to the entity body of + the HTTP response with a 200 (OK) status code: + +</P> +<P> + The token response contains the following parameters: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>access_token</DT> +<DD> + + REQUIRED. The access token issued by the authorization server. -</p> -<p> - For example: +</DD> +<DT>expires_in</DT> +<DD> -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 200 OK - Content-Type: application/x-www-form-urlencoded - - access_token=FJQbwq9OD8 - -</pre></div> -<p> - If the assertion is invalid, the authorization server returns an error message in the - HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 400 status code (Bad Request). + OPTIONAL. The duration in seconds of the access token lifetime. For example, the + value <TT>3600</TT> denotes that the access token will expire in + one hour from the time the response was generated by the authorization server. -</p> -<p> - The response contains the following parameter: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - OPTIONAL. The parameter value MUST be set to either - <tt>invalid_assertion</tt> or - <tt>unknown_format</tt> (case sensitive). - -</dd> -</dl></blockquote><p> +</DD> +<DT>refresh_token</DT> +<DD> + + OPTIONAL. The refresh token used to obtain new access tokens using the same + end-user access grant as described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#token-refresh">Section 4.1.4<SPAN> (</SPAN><SPAN class="info">Refresh Token</SPAN><SPAN>)</SPAN></A>. -</p> -<p> - For example: +</DD> +<DT>scope</DT> +<DD> -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 400 Bad Request - Content-Type: application/x-www-form-urlencoded - - error=incorrect_credentials - -</pre></div> -<p> - Authorization servers SHOULD issue access tokens with a limited lifetime and require - clients to refresh them by requesting a new access token using the same assertion if it - is still valid. Otherwise the client MUST obtain a new valid assertion. - -</p> -<a name="token_refresh"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.4"></a><h3>4. -Refreshing an Access Token</h3> - -<p> - Token refresh is used when the lifetime of an access token is shorter than the lifetime of - the authorization grant. It allows clients to obtain a new access token without having to - go through the authorization flow again or involve the resource owner. It is also used to - obtain a new token with different security properties (e.g. bearer token, token with - shared symmetric secret). - -</p><br /><hr class="insert" /> -<a name="Figure 10"></a> -<div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - +--------+ Client Credentials, +---------------+ - | | Refresh Token, | | - | |>--(A)----- & Secret Type ------->| Authorization | - | Client | | Server | - | |<--(B)----- Access Token --------<| | - | | & Optional Secret | | - +--------+ +---------------+ - -</pre></div><table border="0" cellpadding="0" cellspacing="2" align="center"><tr><td align="center"><font face="monaco, MS Sans Serif" size="1"><b> Figure 9 </b></font><br /></td></tr></table><hr class="insert" /> - -<p> - To refresh a token, the client constructs an HTTP <tt>POST</tt> request - to the token endpoint and includes the following parameters in the HTTP request - body using the <tt>application/x-www-form-urlencoded</tt> content type - as defined by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a>: - - </p> -<blockquote class="text"><dl> -<dt>type</dt> -<dd> - - REQUIRED. The parameter value MUST be set to 'refresh' (case sensitive). - -</dd> -<dt>client_id</dt> -<dd> - - REQUIRED. The client identifier as described in <a class='info' href='#client_id'>Section 3.4<span> (</span><span class='info'>Client Credentials</span><span>)</span></a>. - -</dd> -<dt>client_secret</dt> -<dd> - - REQUIRED if the client was issued a secret. The client secret. - -</dd> -<dt>refresh_token</dt> -<dd> - - REQUIRED. The refresh token associated with the access token to be refreshed. - -</dd> -<dt>secret_type</dt> -<dd> + OPTIONAL. The scope of the access token as a list of space-delimited strings. The + value of the <TT>scope</TT> parameter is defined by the + authorization server. If the value contains multiple space-delimited strings, + their order does not matter, and each string adds an additional access range to + the requested scope. - OPTIONAL. The access token secret type as described by <a class='info' href='#crypto_token'>Section 5.3<span> (</span><span class='info'>Cryptographic Tokens Requests</span><span>)</span></a>. - If omitted, the authorization server will issue a bearer token (an access token without - a matching secret) as described by <a class='info' href='#bearer_token'>Section 5.2<span> (</span><span class='info'>Bearer Token Requests</span><span>)</span></a>. - -</dd> -</dl></blockquote><p> - -</p> -<p> - For example, the client makes the following HTTPS request (line break are for display - purposes only): +</DD> +</DL></BLOCKQUOTE><P> -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - - POST /authorize HTTP/1.1 - Host: server.example.com - Content-Type: application/x-www-form-urlencoded - - type=refresh_token&client_id=s6BhdRkqt3&client_secret=8eSEIpnqmM - &refresh_token=n4E9O119d&secret_type=hmac-sha256 - -</pre></div> -<p> - The authorization server MUST verify the client credential, the validity of the refresh - token, and that the resource owner's authorization is still valid. If the request is valid, - the authorization server issues a new access token and includes the following parameters in - the HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined by - <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 200 status code (OK): - - </p> -<blockquote class="text"><dl> -<dt>access_token</dt> -<dd> - - REQUIRED. The access token. - -</dd> -<dt>expires_in</dt> -<dd> - - OPTIONAL. The duration in seconds of the access token lifetime. - -</dd> -<dt>access_token_secret</dt> -<dd> - - REQUIRED if requested by the client. The corresponding access token secret as requested - by the client. - -</dd> -</dl></blockquote><p> - -</p> -<p> - For example: +</P> +<P> + The parameters are including in the entity body of the HTTP response using the + <TT>application/json</TT> media type as defined by + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC4627">[RFC4627]<SPAN> (</SPAN><SPAN class="info">Crockford, D., “The application/json Media Type for JavaScript Object Notation (JSON),” July 2006.</SPAN><SPAN>)</SPAN></A>. The parameters are serialized into a JSON structure by + adding each parameter at the highest structure level. Parameter names and string values + are included as JSON strings. Numerical values are included as JSON numbers. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - +</P> +<P> + The authorization server MUST include the HTTP <TT>Cache-Control</TT> + response header field with a value of <TT>no-store</TT> in any + response containing tokens, secrets, or other sensitive information. + +</P> +<P> + For example: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> HTTP/1.1 200 OK - Content-Type: application/x-www-form-urlencoded - - access_token=8F44J2HGMl&access_token_secret=hfd83hjd&expires_in=3600 - -</pre></div> -<p> - If the request fails verification, the authorization server returns an error message in the - HTTP response body using the - <tt>application/x-www-form-urlencoded</tt> content type as defined - by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a> with a 400 status code (Bad Request). - -</p> -<p> - The response contains the following parameter: - - </p> -<blockquote class="text"><dl> -<dt>error</dt> -<dd> - - OPTIONAL. The parameter value MUST be set to either - <tt>incorrect_credentials</tt>, - <tt>authorization_expired</tt>, or - <tt>unsupported_secret_type</tt> (case sensitive). - -</dd> -</dl></blockquote><p> - -</p> -<p> - For example: + Content-Type: application/json + Cache-Control: no-store + + { + "access_token":"SlAV32hkKG", + "expires_in":3600, + "refresh_token":"8xLOxBtZp8" + } + +</PRE></DIV> +<P> + The sizes of tokens and other values received from the authorization server, are left + undefined by this specification. Clients should avoid making assumptions about value + sizes. Servers should document the expected size of any value they issue. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</P> +<A name="token-error"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4.3"></A><H3>4.3. +Error Response</H3> + +<P> + If the token request is invalid or unauthorized, the authorization server constructs + the response by adding the following parameter to the entity body of the HTTP + response using the <TT>application/json</TT> media type: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>error</DT> +<DD> + + REQUIRED. A single error code as described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#token-error-codes">Section 4.3.1<SPAN> (</SPAN><SPAN class="info">Error Codes</SPAN><SPAN>)</SPAN></A>. + +</DD> +<DT>error_description</DT> +<DD> + OPTIONAL. A human-readable text providing additional information, used to assist in + the understanding and resolution of the error occurred. + +</DD> +<DT>error_uri</DT> +<DD> + OPTIONAL. A URI identifying a human-readable web page with information about the + error, used to provide the end-user with additional information about the error. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + For example: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> HTTP/1.1 400 Bad Request - Content-Type: application/x-www-form-urlencoded - - error=incorrect_credentials - -</pre></div> -<a name="access_resource"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5"></a><h3>5. -Accessing a Protected Resource</h3> + Content-Type: application/json + Cache-Control: no-store + + { + "error":"invalid-request" + } + +</PRE></DIV> +<P> + If the client provided invalid credentials using an HTTP authentication scheme via the + <TT>Authorization</TT> request header field, the authorization server + MUST respond with the HTTP 401 (Unauthorized) status code. Otherwise, the authorization + server SHALL respond with the HTTP 400 (Bad Request) status code. + +</P> +<A name="token-error-codes"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.4.3.1"></A><H3>4.3.1. +Error Codes</H3> + +<P> + The authorization server includes one of the following error codes with the error + response: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>invalid-request</DT> +<DD> + + The request is missing a required parameter, includes an unknown parameter or + parameter value, repeats a parameter, includes multiple credentials, utilizes + more than one mechanism for authenticating the client, or is otherwise malformed. + +</DD> +<DT>invalid-client-credentials</DT> +<DD> + + The client identifier provided is invalid, the client failed to authenticate, or + the client provided multiple client credentials. + +</DD> +<DT>unauthorized-client</DT> +<DD> + + The client is not authorized to use the access grant type provided. + +</DD> +<DT>invalid-grant</DT> +<DD> + + The provided access grant is invalid, expired, or revoked (e.g. invalid assertion, + expired authorization token, bad end-user basic credentials, or mismatching + authorization code and redirection URI). + +</DD> +<DT>unsupported-grant-type</DT> +<DD> + + The access grant included - its type or another attribute - is not supported by the + authorization server. + +</DD> +<DT>invalid-scope</DT> +<DD> + + The requested scope is invalid, unknown, malformed, or exceeds the previously + granted scope. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + [[ Add mechanism for extending error codes ]] + +</P> +<A name="access-resource"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.5"></A><H3>5. +Accessing a Protected Resource</H3> -<p> +<P> Clients access protected resources by presenting an access token to the resource server. - The methods used by the resource server to validate the access token are beyond the scope - of this specification, but generally involve an interaction or coordination between the - resource server and authorization server. - -</p> -<p> - The method in which a client uses an access token depends on the security properties of the - access tokens. By default, access tokens are issued without a matching secret. Clients MAY - request an access token with a matchin secret by specifying the desired secret type using - the <tt>secret_type</tt> token request parameter. - -</p> -<p> - When an access token does not include a matching secret, the access token acts as a bearer - token, where the token string is a shared symmetric secret. This requires treating the - access token with the same care as other secrets (e.g. user passwords). Access tokens - SHOULD NOT be sent in the clear over an insecure channel. + Access tokens act as bearer tokens, where the token string acts as a shared symmetric + secret. This requires treating the access token with the same care as other secrets (e.g. + end-user passwords). Access tokens SHOULD NOT be sent in the clear over an insecure + channel. -</p> -<p> - However, when it is necessary to transmit bearer tokens in the clear without a secure - channel, authorization servers must issue access tokens with limited scope and lifetime to - reduce the potential risk from a compromised access token. Clients SHOULD request and - utilize an access token with a matching secret when making protected resource requests over - an insecure channel (e.g. an HTTP request without using SSL/TLS). +</P> +<P> + However, when it is necessary to transmit access tokens in the clear without a secure + channel, authorization servers SHOULD issue access tokens with limited scope and lifetime + to reduce the potential risk from a compromised access token. -</p> -<p> - When an access token includes a matching secret, the secret is not included directly in the - request but is used instead to generate a cryptographic signature of the request. The - signature can only be generated and verified by entities with access to the secret. +</P> +<P> + Clients MUST NOT make authenticated requests with an access token to unfamiliar resource + servers, regardless of the presence of a secure channel. -</p> -<p> - Clients SHOULD NOT make authenticated requests with an access token to unfamiliar resource - servers, especially when using bearer tokens, regardless of the presence of a secure - channel. +</P> +<P> + The resource server MUST validate the access token and ensure it has not expired and + that its scope covers the requested resource. The methods used by the resource server + to validate the access token are beyond the scope of this specification, but generally + involve an interaction or coordination between the resource server and authorization + server. -</p> -<a name="authz_header"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.1"></a><h3>5.1. -The Authorization Request Header</h3> - -<p> - The <tt>Authorization</tt> request header field is used by clients to - make both bearer token and cryptographic token requests. When making bearer token - requests, the client uses the <tt>token</tt> attribute to include the - access token in the request without any of the other attributes. Additional methods for - making bearer token requests are described in <a class='info' href='#bearer_token'>Section 5.2<span> (</span><span class='info'>Bearer Token Requests</span><span>)</span></a>. - -</p> -<p> - For example: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /resource HTTP/1.1 - Host: server.example.com - Authorization: Token token="vF9dft4qmT" - -</pre></div> -<p> - When making a cryptographic token request (using an access token with a matching secret) - the client uses the <tt>token</tt> attribute to include the access - token in the request, and uses the <tt>nonce</tt>, - <tt>timestamp</tt>, <tt>algorithm</tt>, and - <tt>signature</tt> attributes to apply the matching secret. - -</p> -<p> - For example: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /resource HTTP/1.1 - Host: server.example.com - Authorization: Token token="vF9dft4qmT", - nonce="s8djwd", - timestamp="137131200", - algorithm="hmac-sha256", - signature="wOJIO9A2W5mFwDgiDvZbTSMK/PY=" - -</pre></div> -<p> - The <tt>Authorization</tt> header field uses the framework defined by - <a class='info' href='#RFC2617'>[RFC2617]<span> (</span><span class='info'>Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</span><span>)</span></a> as follows: +</P> +<A name="anchor14"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.5.1"></A><H3>5.1. +Authenticated Requests</H3> + +<P> + Clients make authenticated token requests using the <TT>Authorization</TT> + request header field as described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#authz-header">Section 5.1.1<SPAN> (</SPAN><SPAN class="info">The Authorization Request Header Field</SPAN><SPAN>)</SPAN></A>. Alternatively, clients + MAY include the access token using the HTTP request URI in the query component as described + in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#query-param">Section 5.1.2<SPAN> (</SPAN><SPAN class="info">URI Query Parameter</SPAN><SPAN>)</SPAN></A>, or in the HTTP body when using the + <TT>application/x-www-form-urlencoded</TT> content type as + described in <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#body-param">Section 5.1.3<SPAN> (</SPAN><SPAN class="info">Form-Encoded Body Parameter</SPAN><SPAN>)</SPAN></A>. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - credentials = "Token" RWS token-response - - token-response = token-id - [ CS nonce ] - [ CS timestamp ] - [ CS algorithm ] - [ CS signature ] - - token-id = "token" "=" <"> token <"> - timestamp = "timestamp" "=" <"> 1*DIGIT <"> - nonce = "nonce" "=" <"> token <"> - - algorithm = "algorithm" "=" algorithm-name - algorithm-name = "hmac-sha256" / - token - - signature = "signature" "=" <"> token <"> - -</pre></div> -<a name="bearer_token"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.2"></a><h3>5.2. -Bearer Token Requests</h3> - -<p> - Clients make bearer token requests by including the access token using the HTTP - <tt>Authorization</tt> request header with the - <tt>Token</tt> authentication scheme as described in - <a class='info' href='#authz_header'>Section 5.1<span> (</span><span class='info'>The Authorization Request Header</span><span>)</span></a>. The access token is included using the - <tt>token</tt> parameter. +</P> +<P> + Clients SHOULD only use the request URI or body when the + <TT>Authorization</TT> request header field is not available, and MUST + NOT use more than one method in each request. -</p> -<p> - For example, the client makes the following HTTPS request: +</P> +<A name="authz-header"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.5.1.1"></A><H3>5.1.1. +The Authorization Request Header Field</H3> + +<P> + The <TT>Authorization</TT> request header field is used by clients to + make authenticated token requests. The client uses the <TT>token</TT> + attribute to include the access token in the request. -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</P> +<P> + For example: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> GET /resource HTTP/1.1 Host: server.example.com Authorization: Token token="vF9dft4qmT" -</pre></div> -<p> - The resource server MUST validate the access token and ensure it has not expired and - that its scope covers the requested resource. If the token expired or is invalid, the - resource server MUST reply with an HTTP 401 status code (Unauthorized) and include - the HTTP <tt>WWW-Authenticate</tt> response header as described in - <a class='info' href='#authn_header'>Section 6.1<span> (</span><span class='info'>The WWW-Authenticate Response Header</span><span>)</span></a>. - -</p> -<p> - For example: +</PRE></DIV> +<P> + The <TT>Authorization</TT> header field uses the framework defined by + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2617">[RFC2617]<SPAN> (</SPAN><SPAN class="info">Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</SPAN><SPAN>)</SPAN></A> as follows: -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - HTTP/1.1 401 Unauthorized - WWW-Authenticate: Token realm='Service', error='token_expired' - -</pre></div> -<p> - Alternatively, the client MAY include the access token using the HTTP request URI in the - query component as described in <a class='info' href='#query_param'>Section 5.2.1<span> (</span><span class='info'>URI Query Parameter</span><span>)</span></a>, or in the HTTP body when - using the <tt>application/x-www-form-urlencoded</tt> content type as - described in <a class='info' href='#body_param'>Section 5.2.2<span> (</span><span class='info'>Form-Encoded Body Parameter</span><span>)</span></a>. Clients SHOULD only use the request URI or - body when the <tt>Authorization</tt> request header is not available, - and MUST NOT use more than one method in each request. - -</p> -<a name="query_param"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.2.1"></a><h3>5.2.1. -URI Query Parameter</h3> - -<p> +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + credentials = "Token" RWS access-token [ CS 1#auth-param ] + access-token = "token" "=" <"> token <"> + CS = OWS "," OWS + +</PRE></DIV> +<A name="query-param"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.5.1.2"></A><H3>5.1.2. +URI Query Parameter</H3> + +<P> When including the access token in the HTTP request URI, the client adds the access - token to the request URI query component as defined by <a class='info' href='#RFC3986'>[RFC3986]<span> (</span><span class='info'>Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</span><span>)</span></a> using - the <tt>oauth_token</tt> parameter. + token to the request URI query component as defined by <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC3986">[RFC3986]<SPAN> (</SPAN><SPAN class="info">Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.</SPAN><SPAN>)</SPAN></A> using + the <TT>oauth_token</TT> parameter. -</p> -<p> - For example, the client makes the following HTTPS request: +</P> +<P> + For example, the client makes the following HTTP request using transport-layer + security: -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> GET /resource?oauth_token=vF9dft4qmT HTTP/1.1 Host: server.example.com -</pre></div> -<p> +</PRE></DIV> +<P> The HTTP request URI query can include other request-specific parameters, in which - case, the <tt>oauth_token</tt> parameters SHOULD be appended + case, the <TT>oauth_token</TT> parameters SHOULD be appended following the request-specific parameters, properly separated by an - <tt>&</tt> character (ASCII code 38). - -</p> -<p> - The resource server MUST validate the access token and ensure it has not expired and - its includes the requested resource. If the resource expired or is not valid, the - resource server MUST reply with an HTTP 401 status code (Unauthorized) and include the - HTTP <tt>WWW-Authenticate</tt> response header as described in - <a class='info' href='#authn_header'>Section 6.1<span> (</span><span class='info'>The WWW-Authenticate Response Header</span><span>)</span></a>. - -</p> -<a name="body_param"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.2.2"></a><h3>5.2.2. -Form-Encoded Body Parameter</h3> - -<p> + <TT>&</TT> character (ASCII code 38). + +</P> +<P> + For example: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + http://example.com/resource?x=y&oauth_token=vF9dft4qmT + +</PRE></DIV> +<A name="body-param"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.5.1.3"></A><H3>5.1.3. +Form-Encoded Body Parameter</H3> + +<P> When including the access token in the HTTP request entity-body, the client adds the - access token to the request body using the <tt>oauth_token</tt> + access token to the request body using the <TT>oauth_token</TT> parameter. The client can use this method only if the following REQUIRED conditions are met: - </p> -<ul class="text"> -<li> + </P> +<UL class="text"> +<LI> The entity-body is single-part. -</li> -<li> +</LI> +<LI> The entity-body follows the encoding requirements of the - <tt>application/x-www-form-urlencoded</tt> content-type as - defined by <a class='info' href='#W3C.REC-html40-19980424'>[W3C.REC‑html40‑19980424]<span> (</span><span class='info'>Hors, A., Jacobs, I., and D. Raggett, “HTML 4.0 Specification,” April 1998.</span><span>)</span></a>. + <TT>application/x-www-form-urlencoded</TT> content-type as + defined by <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#W3C.REC-html401-19991224">[W3C.REC‑html401‑19991224]<SPAN> (</SPAN><SPAN class="info">Hors, A., Jacobs, I., and D. Raggett, “HTML 4.01 Specification,” December 1999.</SPAN><SPAN>)</SPAN></A>. -</li> -<li> - The HTTP request entity-header includes the <tt>Content-Type</tt> - header field set to <tt>application/x-www-form-urlencoded</tt>. +</LI> +<LI> + The HTTP request entity-header includes the <TT>Content-Type</TT> + header field set to <TT>application/x-www-form-urlencoded</TT>. -</li> -<li> - The HTTP request method is <tt>POST</tt>, - <tt>PUT</tt>, or <tt>DELETE</tt>. +</LI> +<LI> + The HTTP request method is <TT>POST</TT>, + <TT>PUT</TT>, or <TT>DELETE</TT>. -</li> -</ul><p> +</LI> +</UL><P> -</p> -<p> +</P> +<P> The entity-body can include other request-specific parameters, in which case, the - <tt>oauth_token</tt> parameters SHOULD be appended following the - request-specific parameters, properly separated by an <tt>&</tt> + <TT>oauth_token</TT> parameters SHOULD be appended following the + request-specific parameters, properly separated by an <TT>&</TT> character (ASCII code 38). -</p> -<p> - For example, the client makes the following HTTPS request: +</P> +<P> + For example, the client makes the following HTTP request using transport-layer + security: -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> POST /resource HTTP/1.1 Host: server.example.com Content-Type: application/x-www-form-urlencoded oauth_token=vF9dft4qmT -</pre></div> -<p> - The resource server MUST validate the access token and ensure it has not expired and - its includes the requested resource. If the resource expired or is not valid, the - resource server MUST reply with an HTTP 401 status code (Unauthorized) and include the - HTTP <tt>WWW-Authenticate</tt> response header as described in - <a class='info' href='#authn_header'>Section 6.1<span> (</span><span class='info'>The WWW-Authenticate Response Header</span><span>)</span></a>. - -</p> -<a name="crypto_token"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.3"></a><h3>5.3. -Cryptographic Tokens Requests</h3> - -<p> - Clients make authenticated protected resource requests using an access token with a - matching secret by calculating a set of values and including them in the request using - the <tt>Authorization</tt> header field. The way clients calculate - these values depends on the access token secret type as issued by the authorization - server. +</PRE></DIV> +<A name="authn-header"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.5.2"></A><H3>5.2. +The WWW-Authenticate Response Header Field</H3> + +<P> + If the protected resource request contains an invalid access token or is malformed, the + resource server MUST include the HTTP <TT>WWW-Authenticate</TT> + response header field. The <TT>WWW-Authenticate</TT> header field + uses the framework defined by <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2617">[RFC2617]<SPAN> (</SPAN><SPAN class="info">Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</SPAN><SPAN>)</SPAN></A> as follows: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + challenge = "Token" RWS token-challenge + + token-challenge = realm + [ CS error ] + [ CS error-desc ] + [ CS error-uri ] + [ CS scope ] + [ CS 1#auth-param ] + + error = "error" "=" <"> token <"> + error-desc = "error-description" "=" quoted-string + error-uri = "error-uri" = <"> URI-Reference <"> + scope = ptoken / <"> ptoken *( 1*SP ptoken ) <"> + + ptoken = 1*ptokenchar + ptokenchar = "!" / "#" / "$" / "%" / "&" / "'" / "(" + / ")" / "*" / "+" / "-" / "." / "/" / DIGIT + / ":" / "<" / "=" / ">" / "?" / "@" / ALPHA + / "[" / "]" / "^" / "_" / "`" / "{" / "|" + / "}" / "~" + +</PRE></DIV> +<P> + For example: + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + HTTP/1.1 401 Unauthorized + WWW-Authenticate: Token realm='Example Service', error='expired-token' + +</PRE></DIV> +<P> + The <TT>realm</TT> attribute is used to provide the protected + resources partition as defined by <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC2617">[RFC2617]<SPAN> (</SPAN><SPAN class="info">Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</SPAN><SPAN>)</SPAN></A>. [[ add explanation ]] -</p> -<p> - This specification defines the <tt>hmac-sha256</tt> algorithm, and - establishes a registry for providing additional algorithms. Clients obtain an access - token with a matchin <tt>hmac-sha256</tt> secret by using the - <tt>token_type</tt> parameter when requesting an access token. +</P> +<P> + The <TT>error</TT> attribute is used to provide the client with the + reason why the access request was declined. The parameter values are described in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#resource-error-codes">Section 5.2.1<SPAN> (</SPAN><SPAN class="info">Error Codes</SPAN><SPAN>)</SPAN></A>. -</p> -<a name="hmac-sha256"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.3.1"></a><h3>5.3.1. -The 'hmac-sha256' Algorithm</h3> - -<p> - The <tt>hmac-sha256</tt> algorithm uses the HMAC method as defined - in <a class='info' href='#RFC2104'>[RFC2104]<span> (</span><span class='info'>Krawczyk, H., Bellare, M., and R. Canetti, “HMAC: Keyed-Hashing for Message Authentication,” February 1997.</span><span>)</span></a> together with the SHA-256 hash function defined in - <a class='info' href='#NIST FIPS-180-3'>[NIST FIPS‑180‑3]<span> (</span><span class='info'>National Institute of Standards and Technology, “Secure Hash Standard (SHS). FIPS PUB 180-3, October 2008,” .</span><span>)</span></a> to apply the access token secret to the request and - generate a signature value that is included in the request instead of transmitting - the secret in the clear. - -</p> -<p> - To use the <tt>hmac-sha256</tt> algorithm, clients: - - </p> -<ol class="text"> -<li> - Calculate the request timestamp and generate a request nonce as described in - <a class='info' href='#nonce_ts'>Section 5.3.1.1<span> (</span><span class='info'>Nonce and Timestamp</span><span>)</span></a>. - -</li> -<li> - Construct the normalized request string as described in - <a class='info' href='#base_string'>Section 5.3.1.2<span> (</span><span class='info'>Normalized String Construction</span><span>)</span></a>. - -</li> -<li> - Calculate the request signature as described in - <a class='info' href='#hmac_sha256_function'>Section 5.3.1.3<span> (</span><span class='info'>Signature Calculation</span><span>)</span></a>. - -</li> -<li> - Include the timestamp, nonce, algorithm name, and calculated signature in the - request using the <tt>Authorization</tt> header field. - -</li> -</ol><p> - -</p> -<p> - For example: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - GET /resource HTTP/1.1 - Host: server.example.com - Authorization: Token token="vF9dft4qmT", - nonce="s8djwd", - timestamp="137131200", - algorithm="hmac-sha256", - signature="wOJIO9A2W5mFwDgiDvZbTSMK/PY=" - -</pre></div> -<p> - The resource server MUST validate the access token and ensure it has not expired and - that its scope covers the requested resource. The resource server MUST also recalculate - the request signature using the attributes provided by the client and compare it to the - signature provided. If the token expired or is invalid, or if the signature is - incorrect, the resource server MUST reply with an HTTP 401 status code (Unauthorized) - and include the HTTP <tt>WWW-Authenticate</tt> response header as - described in <a class='info' href='#authn_header'>Section 6.1<span> (</span><span class='info'>The WWW-Authenticate Response Header</span><span>)</span></a>. - -</p> -<p> +</P> +<P> + The <TT>error-description</TT> attribute provides a human-readable + text containing additional information, used to assist in the understanding and + resolution of the error occurred. + +</P> +<P> + The <TT>error-uri</TT> attribute provides a URI identifying a + human-readable web page with information about the error, used to offer the end-user + with additional information about the error. If the value is not an absolute URI, it is + relative to the URI of the requested protected resource. + +</P> +<P> + The <TT>scope</TT> attribute is a space-delimited list of scope values + indicating the required scope of the access token for accessing the requested resource. + +</P> +<A name="resource-error-codes"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.5.2.1"></A><H3>5.2.1. +Error Codes</H3> + +<P> + The authorization server includes one of the following error codes with the error + response: + + </P> +<BLOCKQUOTE class="text"><DL> +<DT>invalid-request</DT> +<DD> + + The request is missing a required parameter, includes an unknown parameter or + parameter value, repeats the same parameter, uses more than one method for + including an access token, or is otherwise malformed. The resource server MUST + respond with the HTTP 400 (Bad Request) status code. + +</DD> +<DT>invalid-token</DT> +<DD> + + The access token provided is invalid. Resource servers SHOULD use this error code + when receiving an expired token which cannot be refreshed to indicate to the client + that a new authorization is necessary. The resource server MUST respond with the + HTTP 401 (Unauthorized) status code. + +</DD> +<DT>expired-token</DT> +<DD> + + The access token provided has expired. Resource servers SHOULD only use this error + code when the client is expected to be able to handle the response and request a + new access token using the refresh token issued with the expired access token. The + resource server MUST respond with the HTTP 401 (Unauthorized) status code. + +</DD> +<DT>insufficient-scope</DT> +<DD> + + The request requires higher privileges than provided by the access token. The + resource server SHOULD respond with the HTTP 403 (Forbidden) status code and MAY + include the <TT>scope</TT> attribute with the scope necessary to + access the protected resource. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<P> + [[ Add mechanism for extending error codes ]] + +</P> +<P> + If the request lacks any authentication information (i.e. the client was unaware + authentication is necessary), the resource server SHOULD not include an error code or + other error information. + +</P> +<P> For example: -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> HTTP/1.1 401 Unauthorized - Date: Tue, 15 Nov 2010 08:12:31 GMT - WWW-Authenticate: Token realm='Service', - algorithms='hmac-sha256', - error='invalid_signature' - -</pre></div> -<p> - [[ Errors list ]] - -</p> -<a name="nonce_ts"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.3.1.1"></a><h3>5.3.1.1. -Nonce and Timestamp</h3> - -<p> - A timestamp in combination with unique nonce values is used to protect against - replay attacks when transmitted over an insecure channel. - -</p> -<p> - The nonce is a random string, uniquely generated by the client to allow the resource - server to verify that a request has never been made before and helps prevent replay - attacks when requests are made over a non-secure channel. The nonce value MUST be - unique across all requests with the same timestamp and token combinations. - -</p> -<p> - The timestamp value is the current time expressed in the number of seconds since - January 1, 1970 00:00:00 GMT, and MUST be a positive integer. - -</p> -<p> - To avoid the need to retain an infinite number of nonce values for future checks, - resource servers MAY choose to restrict the time period after which a request with an - old timestamp is rejected. When resource servers apply such a restriction, clients - SHOULD synchronize their clocks by using the resource server's time as indicated by - the HTTP <tt>Date</tt> response header field as defined in - <a class='info' href='#RFC2616'>[RFC2616]<span> (</span><span class='info'>Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., and T. Berners-Lee, “Hypertext Transfer Protocol -- HTTP/1.1,” June 1999.</span><span>)</span></a>. - -</p> -<a name="base_string"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.3.1.2"></a><h3>5.3.1.2. -Normalized String Construction</h3> - -<p> - The normalized request string is a consistent, reproducible concatenation of - several of the HTTP request elements into a single string. The string is used as an - input to the selected cryptographic method and includes the HTTP request method - (e.g. <tt>GET</tt>, <tt>POST</tt>, etc.), the - authority as declared by the HTTP <tt>Host</tt> request header, - and the request resource URI. - -</p> -<p> - The normalized request string does not cover the entire HTTP request. Most notably, - it does not include the entity-body or most HTTP entity-headers. It is important to - note that the resource server cannot verify the authenticity of the excluded request - elements without using additional protections such as SSL/TLS. - -</p> -<p> - The normalized request string is constructed by concatenating together, in order, - the following HTTP request elements, separated by the <tt>,</tt> - character (ASCII code 44): - - </p> -<ol class="text"> -<li> - The request timestamp as described in <a class='info' href='#nonce_ts'>Section 5.3.1.1<span> (</span><span class='info'>Nonce and Timestamp</span><span>)</span></a>. - -</li> -<li> - The request nonce as described in <a class='info' href='#nonce_ts'>Section 5.3.1.1<span> (</span><span class='info'>Nonce and Timestamp</span><span>)</span></a>. - -</li> -<li> - The cryptographic algorithm used. - -</li> -<li> - The HTTP request method in uppercase. For example: - <tt>HEAD</tt>, <tt>GET</tt>, - <tt>POST</tt>, etc. - -</li> -<li> - The hostname, colon-separated (ASCII code 58) from the TCP port used to make - the request as included in the HTTP request <tt>Host</tt> - header field. The port MUST be included even if it is not included in the - <tt>Host</tt> header field (i.e. the default port for the - scheme). - -</li> -<li> - The request resource URI. - -</li> -</ol><p> - -</p> -<p> - For example, the normalized request string for the - <tt>GET</tt> request URI - <tt>http://example.com/resource</tt>, request timestamp - <tt>137131200</tt>, request nonce - <tt>s8djwd</tt>, and <tt>hmac-sha256</tt> - algorithm (line breaks are for display purposes only): - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - 137131200,s8djwd,hmac-sha256,GET,example.com:80, - http://example.com/resource - -</pre></div> -<a name="hmac_sha256_function"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.5.3.1.3"></a><h3>5.3.1.3. -Signature Calculation</h3> - -<p> - Clients calculate the request signature using the HMAC-SHA256 function: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - digest = HMAC-SHA256 (key, text) + WWW-Authenticate: Token realm='Example Service' -</pre></div> -<p> - by setting the function variables are follows: +</PRE></DIV> +<A name="anchor15"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.6"></A><H3>6. +Extensibility</H3> - </p> -<blockquote class="text"><dl> -<dt>text</dt> -<dd> - - is set to the value of the normalize request string as described in - <a class='info' href='#base_string'>Section 5.3.1.2<span> (</span><span class='info'>Normalized String Construction</span><span>)</span></a>. - -</dd> -<dt>key</dt> -<dd> - - is set to the access token secret. - -</dd> -</dl></blockquote><p> - -</p> -<p> - The request signature is the calculated value of the - <tt>digest</tt> variable after the result octet string is - base64-encoded per <a class='info' href='#RFC2045'>[RFC2045]<span> (</span><span class='info'>Freed, N. and N. Borenstein, “Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies,” November 1996.</span><span>)</span></a> section 6.8. +<A name="anchor16"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.6.1"></A><H3>6.1. +Defining New Client Credentials Types</H3> + +<P> + [[ TBD ]] + +</P> +<A name="anchor17"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.6.2"></A><H3>6.2. +Defining New Endpoint Parameters</H3> + +<P> + Applications that wish to define new request or response parameters for use with the + end-user authorization endpoint or the token endpoint SHALL do so in one of two ways: + register them in the parameters registry (following the procedures in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#parameters-registry">Section 8.1<SPAN> (</SPAN><SPAN class="info">The OAuth Parameters Registry</SPAN><SPAN>)</SPAN></A>), or use the <TT>x_</TT> + parameter name prefix. + +</P> +<P> + Parameters utilizing the <TT>x_</TT> parameter name prefix MUST be + limited to vendor-specific extensions that are not commonly applicable, and are specific + to the implementation details of the authorization server where they are used. All other + new parameters MUST be registered, and MUST NOT use the <TT>x_</TT> + parameter name prefix. + +</P> +<P> + Parameter names MUST conform to the param-name ABNF, and parameter values syntax MUST be + well-defined (e.g., using ABNF, or a reference to the syntax of an existing parameter). + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + param-name = 1*fchar + fchar = "-" / "." / "_" / DIGIT / ALPHA + +</PRE></DIV> +<A name="anchor18"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.6.3"></A><H3>6.3. +Defining New Header Field Parameters</H3> + +<P> + Applications that wish to define new parameters for use in the OAuth + <TT>Authorization</TT> or <TT>WWW-Authenticate</TT> + header fields MUST register them in the parameters registry, following the procedures in + <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#parameters-registry">Section 8.1<SPAN> (</SPAN><SPAN class="info">The OAuth Parameters Registry</SPAN><SPAN>)</SPAN></A>. + +</P> +<P> + Parameter names MUST conform to the param-name ABNF and MUST NOT begin with + <TT>x_</TT>. Parameter values MUST conform to the param-value ABNF and + their syntax MUST be well-defined (e.g., using ABNF, or a reference to the syntax of an + existing parameter). + +</P><DIV style="display: table; width: 0; margin-left: 3em; margin-right: auto"><PRE> + param-value = ptoken | quoted-string + +</PRE></DIV> +<A name="anchor19"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.6.4"></A><H3>6.4. +Defining New Access Grant Types</H3> + +<P> + The assertion access grant type was designed to allow the authorization server to + accept additional access grants not specified. Applications that wish to define + additional access grant types can do so by utilizing a new or existing assertion type + and format. + +</P> +<A name="anchor20"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.7"></A><H3>7. +Security Considerations</H3> + +<P> + [[ TBD ]] + +</P> +<A name="anchor21"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.8"></A><H3>8. +IANA Considerations</H3> + +<A name="parameters-registry"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.8.1"></A><H3>8.1. +The OAuth Parameters Registry</H3> + +<P> + This document establishes the OAuth parameters registry. + +</P> +<P> + Additional parameters to be use in the end-user authorization endpoint request, the + end-user authorization endpoint response, the token endpoint request, the token endpoint + response, the <TT>Authorization</TT> header field, or the + <TT>WWW-Authenticate</TT> header field, are registered on the advice + of one or more Designated Experts (appointed by the IESG or their delegate), with a + Specification Required (using terminology from <A class="info" href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#RFC5226">[RFC5226]<SPAN> (</SPAN><SPAN class="info">Narten, T. and H. Alvestrand, “Guidelines for Writing an IANA Considerations Section in RFCs,” May 2008.</SPAN><SPAN>)</SPAN></A>). However, to + allow for the allocation of values prior to publication, the Designated Expert(s) may + approve registration once they are satisfied that such a specification will be published. + +</P> +<P> + Registration requests should be sent to the [TBD]@ietf.org mailing list for review and + comment, with an appropriate subject (e.g., "Request for parameter: example"). + [[ Note to RFC-EDITOR: The name of the mailing list should be determined in consultation + with the IESG and IANA. Suggested name: oauth-ext-review. ]] + +</P> +<P> + Before a period of 14 days has passed, the Designated Expert(s) will either approve or + deny the registration request, communicating this decision both to the review list and to + IANA. Denials should include an explanation and, if applicable, suggestions as to how to + make the request successful. Registration requests that are undetermined for a period + longer than 21 days can be brought to the IESG's attention (using the iesg@iesg.org + mailing list) for resolution. + +</P> +<A name="anchor22"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.8.1.1"></A><H3>8.1.1. +Registration Template</H3> + +<P> + </P> +<BLOCKQUOTE class="text"><DL> +<DT>Parameter name:</DT> +<DD> + The name requested (e.g., "example"). + +</DD> +<DT>Parameter usage location:</DT> +<DD> + The location(s) where parameter can be used. The possible locations are: the + end-user authorization endpoint request, the end-user authorization endpoint + response, the token endpoint request, the token endpoint response, the + <TT>Authorization</TT> header field, or the + <TT>WWW-Authenticate</TT> header field. + +</DD> +<DT>Change controller:</DT> +<DD> + For standards-track RFCs, state "IETF". For others, give the name of the + responsible party. Other details (e.g., postal address, e-mail address, home page + URI) may also be included. + +</DD> +<DT>Specification document(s):</DT> +<DD> + Reference to document that specifies the parameter, preferably including a URI that + can be used to retrieve a copy of the document. An indication of the relevant + sections may also be included, but is not required. + +</DD> +<DT>Related information:</DT> +<DD> + Optionally, citations to additional documents containing further relevant + information. + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<A name="anchor23"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.8.1.2"></A><H3>8.1.2. +Example</H3> + +<P> + The following is the parameter registration request for the + <TT>scope</TT> parameter as defined in this specification: -</p> -<a name="anchor29"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.6"></a><h3>6. -Identifying a Protected Resource</h3> - -<p> - Clients access protected resources after locating the appropriate authorization and token endpoints - and obtaining an access token. In many cases, interacting with a protected resource requires - prior knowledge of the protected resource properties and methods, as well as its - authentication requirements (i.e. establishing client identity, locating the authorization - and token endpoints). + </P> +<BLOCKQUOTE class="text"><DL> +<DT>Parameter name:</DT> +<DD> + scope + +</DD> +<DT>Parameter usage location:</DT> +<DD> + The end-user authorization endpoint request, the end-user authorization endpoint + response, the token endpoint request, the token endpoint response, and the + <TT>WWW-Authenticate</TT> header field. + +</DD> +<DT>Change controller:</DT> +<DD> + IETF + +</DD> +<DT>Specification document(s):</DT> +<DD> + [[ this document ]] + +</DD> +<DT>Related information:</DT> +<DD> + None + +</DD> +</DL></BLOCKQUOTE><P> + +</P> +<A name="anchor24"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.A"></A><H3>Appendix A. +Examples</H3> + +<P> + [[ TBD ]] -</p> -<p> - However, there are cases in which clients are unfamiliar with the protected resource, - including whether the resource requires authentication. When clients attempt to access an - unfamiliar protected resource without an access token, the resource server denies the - request and informs the client of the required credentials using an HTTP authentication - challenge. +</P> +<A name="anchor25"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.B"></A><H3>Appendix B. +Contributors</H3> + +<P> + The following people contributed to preliminary versions of this document: + Blaine Cook (BT), Brian Eaton (Google), Yaron Goland (Microsoft), Brent Goldman (Facebook), + Raffi Krikorian (Twitter), Luke Shepard (Facebook), and Allen Tom (Yahoo!). The content and + concepts within are a product of the OAuth community, WRAP community, and the OAuth Working + Group. -</p> -<p> - In addition, when receiving an invalid authenticated request, the resource server issues an - authentication challenge including the error type and message. +</P> +<P> + The OAuth Working Group has dozens of very active contributors who proposed ideas and + wording for this document, including: [[ If your name is missing or you think someone + should be added here, please send Eran a note - don't be shy ]] -</p> -<a name="authn_header"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.6.1"></a><h3>6.1. -The WWW-Authenticate Response Header</h3> - -<p> - A resource server receiving a request for a protected resource without a valid access - token MUST respond with a 401 HTTP status code (Unauthorized), and includes at least one - <tt>Token</tt> <tt>WWW-Authenticate</tt> response - header field challenge. - -</p> -<p> - The <tt>WWW-Authenticate</tt> header field uses the framework defined by - <a class='info' href='#RFC2617'>[RFC2617]<span> (</span><span class='info'>Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</span><span>)</span></a> as follows: - -</p><div style='display: table; width: 0; margin-left: 3em; margin-right: auto'><pre> - challenge = "Token" RWS token-challenge - - token-challenge = realm - [ CS authz-uri ] - [ CS token-uri ] - [ CS algorithms ] - [ CS error ] - - authz-uri = "auth-uri" "=" URI-Reference - token-uri = "token-uri" "=" URI-Reference - algorithms = "algorithms" "=" <"> 1#algorithm-name <"> - error = "error" "=" <"> token <"> - - CS = OWS "," OWS +</P> +<P> + Michael Adams, Andrew Arnott, Dirk Balfanz, Brian Campbell, Leah Culver, Brian Ellin, + Igor Faynberg, George Fletcher, Evan Gilbert, Justin Hart, John Kemp, Chasen Le Hara, + Torsten Lodderstedt, Eve Maler, James Manger, Laurence Miao, Chuck Mortimore, + Justin Richer, Peter Saint-Andre, Nat Sakimura, Rob Sayre, Marius Scurtescu, Justin Smith, + Jeremy Suriel, and Franklin Tse. + +</P> +<A name="anchor26"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.C"></A><H3>Appendix C. +Acknowledgements</H3> -</pre></div> -<a name="anchor30"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.6.1.1"></a><h3>6.1.1. -The 'realm' Attribute</h3> +<P> + [[ Add OAuth 1.0a authors + WG contributors ]] + +</P> +<A name="anchor27"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.D"></A><H3>Appendix D. +Document History</H3> -<p> - The <tt>realm</tt> attribute is used to provide the protected - resources partition as defined by <a class='info' href='#RFC2617'>[RFC2617]<span> (</span><span class='info'>Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, “HTTP Authentication: Basic and Digest Access Authentication,” June 1999.</span><span>)</span></a>. +<P> + [[ to be removed by RFC editor before publication as an RFC ]] + +</P> +<P> + -09 + + </P> +<UL class="text"> +<LI> + Fixed typos, editorial changes. -</p> -<a name="authz_uri_attribute"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.6.1.2"></a><h3>6.1.2. -The 'authorization-uri' Attribute</h3> - -<p> +</LI> +<LI> + Added token expiration example. -</p> -<a name="anchor31"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.6.1.3"></a><h3>6.1.3. -The 'algorithms' Attribute</h3> - -<p> +</LI> +<LI> + Added scope parameter to end-user authorization endpoint response. -</p> -<a name="anchor32"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.6.1.4"></a><h3>6.1.4. -The 'error' Attribute</h3> - -<p> +</LI> +<LI> + Added note about parameters with empty values (same as omitted). -</p> -<a name="anchor33"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.7"></a><h3>7. -Security Considerations</h3> - -<p> - [[ Todo ]] +</LI> +<LI> + Changed parameter values to use '-' instead of '_'. Parameter names still use '_'. + +</LI> +<LI> + Changed authorization endpoint client type to response type with values: code, token, + and both. + +</LI> +<LI> + Complete cleanup of error codes. Added support for error description and URI. + +</LI> +<LI> + Add initial extensibility support. + +</LI> +</UL><P> + +</P> +<P> + -08 + + </P> +<UL class="text"> +<LI> + Renamed verification code to authorization code. + +</LI> +<LI> + Revised terminology, structured section, added new terms. + +</LI> +<LI> + Changed flows to profiles and moved to introduction. + +</LI> +<LI> + Added support for access token rescoping. + +</LI> +<LI> + Cleaned up client credentials section. + +</LI> +<LI> + New introduction overview. + +</LI> +<LI> + Added error code for invalid username and password, and renamed error code to be more + consistent. + +</LI> +<LI> + Added access grant type parameter to token endpoint. + +</LI> +</UL><P> -</p> -<a name="anchor34"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.8"></a><h3>8. -IANA Considerations</h3> - -<p> - [[ Not Yet ]] +</P> +<P> + -07 + + </P> +<UL class="text"> +<LI> + Major rewrite of entire document structure. + +</LI> +<LI> + Removed device profile. + +</LI> +<LI> + Added verification code support to user-agent flow. + +</LI> +<LI> + Removed multiple formats support, leaving JSON as the only format. + +</LI> +<LI> + Changed assertion <TT>assertion_format</TT> parameter to + <TT>assertion_type</TT>. + +</LI> +<LI> + Removed <TT>type</TT> parameter from token endpoint. + +</LI> +</UL><P> -</p> -<a name="anchor35"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.9"></a><h3>9. -Acknowledgements</h3> - -<p> - [[ Add OAuth 1.0a authors + WG contributors ]] +</P> +<P> + -06 + + </P> +<UL class="text"> +<LI> + Editorial changes, corrections, clarifications, etc. + +</LI> +<LI> + Removed conformance section. + +</LI> +<LI> + Moved authors section to contributors appendix. + +</LI> +<LI> + Added section on native applications. + +</LI> +<LI> + Changed error response to use the requested format. Added support for HTTP + <TT>Accept</TT> header. + +</LI> +<LI> + Flipped the order of the web server and user-agent flows. + +</LI> +<LI> + Renamed assertion flow <TT>format</TT> parameter name to + <TT>assertion_format</TT> to resolve conflict. + +</LI> +<LI> + Removed the term identifier from token definitions. Added a cryptographic token + definition. + +</LI> +<LI> + Added figure titles. + +</LI> +<LI> + Added server response 401 when client tried to authenticate using multiple credentials. + +</LI> +<LI> + Clarified support for TLS alternatives, and added requirement for TLS 1.2 support for + token endpoint. + +</LI> +<LI> + Removed all signature and cryptography. + +</LI> +<LI> + Removed all discovery. + +</LI> +<LI> + Updated HTML4 reference. + +</LI> +</UL><P> -</p> -<a name="anchor36"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.A"></a><h3>Appendix A. -Differences from OAuth 1.0a</h3> - -<p> - [[ Todo ]] +</P> +<P> + -05 + + </P> +<UL class="text"> +<LI> + Corrected device example. + +</LI> +<LI> + Added client credentials parameters to the assertion flow as OPTIONAL. + +</LI> +<LI> + Added the ability to send client credentials using an HTTP authentication scheme. + +</LI> +<LI> + Initial text for the <TT>WWW-Authenticate</TT> header (also added + scope support). + +</LI> +<LI> + Change authorization endpoint to end-user endpoint. + +</LI> +<LI> + In the device flow, change the <TT>user_uri</TT> parameter to + <TT>verification_uri</TT> to avoid confusion with the end-user + endpoint. + +</LI> +<LI> + Add <TT>format</TT> request parameter and support for XML and + form-encoded responses. + +</LI> +</UL><P> -</p> -<a name="anchor37"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.B"></a><h3>Appendix B. -Document History</h3> - -<p> - [[ to be removed by RFC editor before publication as an RFC ]] +</P> +<P> + -04 + + </P> +<UL class="text"> +<LI> + Changed all token endpoints to use <TT>POST</TT> + +</LI> +<LI> + Clarified the authorization server's ability to issue a new refresh token when + refreshing a token. + +</LI> +<LI> + Changed the flow categories to clarify the autonomous group. + +</LI> +<LI> + Changed client credentials language not to always be server-issued. + +</LI> +<LI> + Added a <TT>scope</TT> response parameter. + +</LI> +<LI> + Fixed typos. + +</LI> +<LI> + Fixed broken document structure. + +</LI> +</UL><P> -</p> -<p> +</P> +<P> + -03 + + </P> +<UL class="text"> +<LI> + Fixed typo in JSON error examples. + +</LI> +<LI> + Fixed general typos. + +</LI> +<LI> + Moved all flows sections up one level. + +</LI> +</UL><P> + +</P> +<P> + -02 + + </P> +<UL class="text"> +<LI> + Removed restriction on <TT>redirect_uri</TT> including a query. + +</LI> +<LI> + Added <TT>scope</TT> parameter. + +</LI> +<LI> + Initial proposal for a JSON-based token response format. + +</LI> +</UL><P> + +</P> +<P> + -01 + + </P> +<UL class="text"> +<LI> + Editorial changes based on feedback from Brian Eaton, Bill Keenan, and Chuck Mortimore. + +</LI> +<LI> + Changed device flow <TT>type</TT> parameter values and switch to use + only the token endpoint. + +</LI> +</UL><P> + +</P> +<P> -00 - </p> -<ul class="text"> -<li> + </P> +<UL class="text"> +<LI> Initial draft based on a combination of WRAP and OAuth 1.0a. -</li> -</ul><p> +</LI> +</UL><P> -</p> -<a name="rfc.references"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<a name="rfc.section.10"></a><h3>10. -References</h3> - -<a name="rfc.references1"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<h3>10.1. Normative References</h3> -<table width="99%" border="0"> -<tr><td class="author-text" valign="top"><a name="I-D.ietf-httpbis-p1-messaging">[I-D.ietf-httpbis-p1-messaging]</a></td> -<td class="author-text">Fielding, R., Gettys, J., Mogul, J., Nielsen, H., Masinter, L., Leach, P., Berners-Lee, T., and J. Reschke, “<a href="http://www.ietf.org/internet-drafts/draft-ietf-httpbis-p1-messaging-09.txt">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</a>,” draft-ietf-httpbis-p1-messaging-09 (work in progress), March 2010 (<a href="http://www.ietf.org/internet-drafts/draft-ietf-httpbis-p1-messaging-09.txt">TXT</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="NIST FIPS-180-3">[NIST FIPS-180-3]</a></td> -<td class="author-text">National Institute of Standards and Technology, “<a href="http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf">Secure Hash Standard (SHS). FIPS PUB 180-3, October 2008</a>.”</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC2045">[RFC2045]</a></td> -<td class="author-text"><a href="mailto:ned@innosoft.com">Freed, N.</a> and <a href="mailto:nsb@nsb.fv.com">N. Borenstein</a>, “<a href="http://tools.ietf.org/html/rfc2045">Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies</a>,” RFC 2045, November 1996 (<a href="http://www.rfc-editor.org/rfc/rfc2045.txt">TXT</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC2104">[RFC2104]</a></td> -<td class="author-text"><a href="mailto:hugo@watson.ibm.com">Krawczyk, H.</a>, <a href="mailto:mihir@cs.ucsd.edu">Bellare, M.</a>, and <a href="mailto:canetti@watson.ibm.com">R. Canetti</a>, “<a href="http://tools.ietf.org/html/rfc2104">HMAC: Keyed-Hashing for Message Authentication</a>,” RFC 2104, February 1997 (<a href="http://www.rfc-editor.org/rfc/rfc2104.txt">TXT</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC2119">[RFC2119]</a></td> -<td class="author-text"><a href="mailto:sob@harvard.edu">Bradner, S.</a>, “<a href="http://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>,” BCP 14, RFC 2119, March 1997 (<a href="http://www.rfc-editor.org/rfc/rfc2119.txt">TXT</a>, <a href="http://xml.resource.org/public/rfc/html/rfc2119.html">HTML</a>, <a href="http://xml.resource.org/public/rfc/xml/rfc2119.xml">XML</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC2616">[RFC2616]</a></td> -<td class="author-text"><a href="mailto:fielding@ics.uci.edu">Fielding, R.</a>, <a href="mailto:jg@w3.org">Gettys, J.</a>, <a href="mailto:mogul@wrl.dec.com">Mogul, J.</a>, <a href="mailto:frystyk@w3.org">Frystyk, H.</a>, <a href="mailto:masinter@parc.xerox.com">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com">Leach, P.</a>, and <a href="mailto:timbl@w3.org">T. Berners-Lee</a>, “<a href="http://tools.ietf.org/html/rfc2616">Hypertext Transfer Protocol -- HTTP/1.1</a>,” RFC 2616, June 1999 (<a href="http://www.rfc-editor.org/rfc/rfc2616.txt">TXT</a>, <a href="http://www.rfc-editor.org/rfc/rfc2616.ps">PS</a>, <a href="http://www.rfc-editor.org/rfc/rfc2616.pdf">PDF</a>, <a href="http://xml.resource.org/public/rfc/html/rfc2616.html">HTML</a>, <a href="http://xml.resource.org/public/rfc/xml/rfc2616.xml">XML</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC2617">[RFC2617]</a></td> -<td class="author-text"><a href="mailto:john@math.nwu.edu">Franks, J.</a>, <a href="mailto:pbaker@verisign.com">Hallam-Baker, P.</a>, <a href="mailto:jeff@AbiSource.com">Hostetler, J.</a>, <a href="mailto:lawrence@agranat.com">Lawrence, S.</a>, <a href="mailto:paulle@microsoft.com">Leach, P.</a>, Luotonen, A., and <a href="mailto:stewart@OpenMarket.com">L. Stewart</a>, “<a href="http://tools.ietf.org/html/rfc2617">HTTP Authentication: Basic and Digest Access Authentication</a>,” RFC 2617, June 1999 (<a href="http://www.rfc-editor.org/rfc/rfc2617.txt">TXT</a>, <a href="http://xml.resource.org/public/rfc/html/rfc2617.html">HTML</a>, <a href="http://xml.resource.org/public/rfc/xml/rfc2617.xml">XML</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC2818">[RFC2818]</a></td> -<td class="author-text">Rescorla, E., “<a href="http://tools.ietf.org/html/rfc2818">HTTP Over TLS</a>,” RFC 2818, May 2000 (<a href="http://www.rfc-editor.org/rfc/rfc2818.txt">TXT</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC3447">[RFC3447]</a></td> -<td class="author-text">Jonsson, J. and B. Kaliski, “<a href="http://tools.ietf.org/html/rfc3447">Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1</a>,” RFC 3447, February 2003 (<a href="http://www.rfc-editor.org/rfc/rfc3447.txt">TXT</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC3629">[RFC3629]</a></td> -<td class="author-text">Yergeau, F., “<a href="http://tools.ietf.org/html/rfc3629">UTF-8, a transformation format of ISO 10646</a>,” STD 63, RFC 3629, November 2003 (<a href="http://www.rfc-editor.org/rfc/rfc3629.txt">TXT</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="RFC3986">[RFC3986]</a></td> -<td class="author-text"><a href="mailto:timbl@w3.org">Berners-Lee, T.</a>, <a href="mailto:fielding@gbiv.com">Fielding, R.</a>, and <a href="mailto:LMM@acm.org">L. Masinter</a>, “<a href="http://tools.ietf.org/html/rfc3986">Uniform Resource Identifier (URI): Generic Syntax</a>,” STD 66, RFC 3986, January 2005 (<a href="http://www.rfc-editor.org/rfc/rfc3986.txt">TXT</a>, <a href="http://xml.resource.org/public/rfc/html/rfc3986.html">HTML</a>, <a href="http://xml.resource.org/public/rfc/xml/rfc3986.xml">XML</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="W3C.REC-html40-19980424">[W3C.REC-html40-19980424]</a></td> -<td class="author-text">Hors, A., Jacobs, I., and D. Raggett, “<a href="http://www.w3.org/TR/1998/REC-html40-19980424">HTML 4.0 Specification</a>,” World Wide Web Consortium Recommendation REC-html40-19980424, April 1998 (<a href="http://www.w3.org/TR/1998/REC-html40-19980424">HTML</a>).</td></tr> -</table> - -<a name="rfc.references2"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<h3>10.2. Informative References</h3> -<table width="99%" border="0"> -<tr><td class="author-text" valign="top"><a name="I-D.hammer-oauth">[I-D.hammer-oauth]</a></td> -<td class="author-text">Hammer-Lahav, E., “<a href="http://www.ietf.org/internet-drafts/draft-hammer-oauth-10.txt">The OAuth 1.0 Protocol</a>,” draft-hammer-oauth-10 (work in progress), February 2010 (<a href="http://www.ietf.org/internet-drafts/draft-hammer-oauth-10.txt">TXT</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="I-D.hardt-oauth">[I-D.hardt-oauth]</a></td> -<td class="author-text">Hardt, D., Tom, A., Eaton, B., and Y. Goland, “<a href="http://www.ietf.org/internet-drafts/draft-hardt-oauth-01.txt">OAuth Web Resource Authorization Profiles</a>,” draft-hardt-oauth-01 (work in progress), January 2010 (<a href="http://www.ietf.org/internet-drafts/draft-hardt-oauth-01.txt">TXT</a>).</td></tr> -<tr><td class="author-text" valign="top"><a name="OASIS.saml-core-2.0-os">[OASIS.saml-core-2.0-os]</a></td> -<td class="author-text"><a href="mailto:cantor.2@osu.edu">Cantor, S.</a>, <a href="mailto:John.Kemp@nokia.com">Kemp, J.</a>, <a href="mailto:rphilpott@rsasecurity.com">Philpott, R.</a>, and <a href="mailto:eve.maler@sun.com">E. Maler</a>, “<a href="http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf">Assertions and Protocol for the OASIS Security Assertion Markup Language - (SAML) V2.0</a>,” OASIS Standard saml-core-2.0-os, March 2005.</td></tr> -</table> - -<a name="rfc.authors"></a><br /><hr /> -<table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc"> TOC </a></td></tr></table> -<h3>Authors' Addresses</h3> -<table width="99%" border="0" cellpadding="0" cellspacing="0"> -<tr><td class="author-text"> </td> -<td class="author-text">Eran Hammer-Lahav (editor)</td></tr> -<tr><td class="author-text"> </td> -<td class="author-text">Yahoo!</td></tr> -<tr><td class="author" align="right">Email: </td> -<td class="author-text"><a href="mailto:eran@hueniverse.com">eran@hueniverse.com</a></td></tr> -<tr cellpadding="3"><td> </td><td> </td></tr> -<tr><td class="author-text"> </td> -<td class="author-text">David Recordon</td></tr> -<tr><td class="author-text"> </td> -<td class="author-text">Facebook</td></tr> -<tr><td class="author" align="right">Email: </td> -<td class="author-text"><a href="mailto:davidrecordon@facebook.com">davidrecordon@facebook.com</a></td></tr> -<tr><td class="author" align="right">URI: </td> -<td class="author-text"><a href="http://www.davidrecordon.com/">http://www.davidrecordon.com/</a></td></tr> -<tr cellpadding="3"><td> </td><td> </td></tr> -<tr><td class="author-text"> </td> -<td class="author-text">Dick Hardt</td></tr> -<tr><td class="author" align="right">Email: </td> -<td class="author-text"><a href="mailto:dick.hardt@gmail.com">dick.hardt@gmail.com</a></td></tr> -<tr><td class="author" align="right">URI: </td> -<td class="author-text"><a href="http://dickhardt.org/">http://dickhardt.org/</a></td></tr> -</table> -</body></html> - +</P> +<A name="rfc.references"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<A name="rfc.section.9"></A><H3>9. +References</H3> + +<A name="rfc.references1"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<H3>9.1. Normative References</H3> +<TABLE width="99%" border="0"> +<TBODY><TR><TD class="author-text" valign="top"><A name="I-D.ietf-httpbis-p1-messaging">[I-D.ietf-httpbis-p1-messaging]</A></TD> +<TD class="author-text">Fielding, R., Gettys, J., Mogul, J., Nielsen, H., Masinter, L., Leach, P., Berners-Lee, T., and J. Reschke, “<A href="http://www.ietf.org/internet-drafts/draft-ietf-httpbis-p1-messaging-09.txt">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</A>,” draft-ietf-httpbis-p1-messaging-09 (work in progress), March 2010 (<A href="http://www.ietf.org/internet-drafts/draft-ietf-httpbis-p1-messaging-09.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="NIST FIPS-180-3">[NIST FIPS-180-3]</A></TD> +<TD class="author-text">National Institute of Standards and Technology, “<A href="http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf">Secure Hash Standard (SHS). FIPS PUB 180-3, October 2008</A>.”</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC2045">[RFC2045]</A></TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=ned@innosoft.com','Compose new message','width=640,height=480')" rel="noreferrer">Freed, N.</A> and <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=nsb@nsb.fv.com','Compose new message','width=640,height=480')" rel="noreferrer">N. Borenstein</A>, “<A href="http://tools.ietf.org/html/rfc2045">Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies</A>,” RFC 2045, November 1996 (<A href="http://www.rfc-editor.org/rfc/rfc2045.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC2104">[RFC2104]</A></TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=hugo@watson.ibm.com','Compose new message','width=640,height=480')" rel="noreferrer">Krawczyk, H.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=mihir@cs.ucsd.edu','Compose new message','width=640,height=480')" rel="noreferrer">Bellare, M.</A>, and <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=canetti@watson.ibm.com','Compose new message','width=640,height=480')" rel="noreferrer">R. Canetti</A>, “<A href="http://tools.ietf.org/html/rfc2104">HMAC: Keyed-Hashing for Message Authentication</A>,” RFC 2104, February 1997 (<A href="http://www.rfc-editor.org/rfc/rfc2104.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC2119">[RFC2119]</A></TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=sob@harvard.edu','Compose new message','width=640,height=480')" rel="noreferrer">Bradner, S.</A>, “<A href="http://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</A>,” BCP 14, RFC 2119, March 1997 (<A href="http://www.rfc-editor.org/rfc/rfc2119.txt">TXT</A>, <A href="http://xml.resource.org/public/rfc/html/rfc2119.html">HTML</A>, <A href="http://xml.resource.org/public/rfc/xml/rfc2119.xml">XML</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC2616">[RFC2616]</A></TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=fielding@ics.uci.edu','Compose new message','width=640,height=480')" rel="noreferrer">Fielding, R.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=jg@w3.org','Compose new message','width=640,height=480')" rel="noreferrer">Gettys, J.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=mogul@wrl.dec.com','Compose new message','width=640,height=480')" rel="noreferrer">Mogul, J.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=frystyk@w3.org','Compose new message','width=640,height=480')" rel="noreferrer">Frystyk, H.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=masinter@parc.xerox.com','Compose new message','width=640,height=480')" rel="noreferrer">Masinter, L.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=paulle@microsoft.com','Compose new message','width=640,height=480')" rel="noreferrer">Leach, P.</A>, and <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=timbl@w3.org','Compose new message','width=640,height=480')" rel="noreferrer">T. Berners-Lee</A>, “<A href="http://tools.ietf.org/html/rfc2616">Hypertext Transfer Protocol -- HTTP/1.1</A>,” RFC 2616, June 1999 (<A href="http://www.rfc-editor.org/rfc/rfc2616.txt">TXT</A>, <A href="http://www.rfc-editor.org/rfc/rfc2616.ps">PS</A>, <A href="http://www.rfc-editor.org/rfc/rfc2616.pdf">PDF</A>, <A href="http://xml.resource.org/public/rfc/html/rfc2616.html">HTML</A>, <A href="http://xml.resource.org/public/rfc/xml/rfc2616.xml">XML</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC2617">[RFC2617]</A></TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=john@math.nwu.edu','Compose new message','width=640,height=480')" rel="noreferrer">Franks, J.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=pbaker@verisign.com','Compose new message','width=640,height=480')" rel="noreferrer">Hallam-Baker, P.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=jeff@AbiSource.com','Compose new message','width=640,height=480')" rel="noreferrer">Hostetler, J.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=lawrence@agranat.com','Compose new message','width=640,height=480')" rel="noreferrer">Lawrence, S.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=paulle@microsoft.com','Compose new message','width=640,height=480')" rel="noreferrer">Leach, P.</A>, Luotonen, A., and <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=stewart@OpenMarket.com','Compose new message','width=640,height=480')" rel="noreferrer">L. Stewart</A>, “<A href="http://tools.ietf.org/html/rfc2617">HTTP Authentication: Basic and Digest Access Authentication</A>,” RFC 2617, June 1999 (<A href="http://www.rfc-editor.org/rfc/rfc2617.txt">TXT</A>, <A href="http://xml.resource.org/public/rfc/html/rfc2617.html">HTML</A>, <A href="http://xml.resource.org/public/rfc/xml/rfc2617.xml">XML</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC2818">[RFC2818]</A></TD> +<TD class="author-text">Rescorla, E., “<A href="http://tools.ietf.org/html/rfc2818">HTTP Over TLS</A>,” RFC 2818, May 2000 (<A href="http://www.rfc-editor.org/rfc/rfc2818.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC3023">[RFC3023]</A></TD> +<TD class="author-text">Murata, M., St. Laurent, S., and D. Kohn, “<A href="http://tools.ietf.org/html/rfc3023">XML Media Types</A>,” RFC 3023, January 2001 (<A href="http://www.rfc-editor.org/rfc/rfc3023.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC3447">[RFC3447]</A></TD> +<TD class="author-text">Jonsson, J. and B. Kaliski, “<A href="http://tools.ietf.org/html/rfc3447">Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1</A>,” RFC 3447, February 2003 (<A href="http://www.rfc-editor.org/rfc/rfc3447.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC3629">[RFC3629]</A></TD> +<TD class="author-text">Yergeau, F., “<A href="http://tools.ietf.org/html/rfc3629">UTF-8, a transformation format of ISO 10646</A>,” STD 63, RFC 3629, November 2003 (<A href="http://www.rfc-editor.org/rfc/rfc3629.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC3986">[RFC3986]</A></TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=timbl@w3.org','Compose new message','width=640,height=480')" rel="noreferrer">Berners-Lee, T.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=fielding@gbiv.com','Compose new message','width=640,height=480')" rel="noreferrer">Fielding, R.</A>, and <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=LMM@acm.org','Compose new message','width=640,height=480')" rel="noreferrer">L. Masinter</A>, “<A href="http://tools.ietf.org/html/rfc3986">Uniform Resource Identifier (URI): Generic Syntax</A>,” STD 66, RFC 3986, January 2005 (<A href="http://www.rfc-editor.org/rfc/rfc3986.txt">TXT</A>, <A href="http://xml.resource.org/public/rfc/html/rfc3986.html">HTML</A>, <A href="http://xml.resource.org/public/rfc/xml/rfc3986.xml">XML</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC4627">[RFC4627]</A></TD> +<TD class="author-text">Crockford, D., “<A href="http://tools.ietf.org/html/rfc4627">The application/json Media Type for JavaScript Object Notation (JSON)</A>,” RFC 4627, July 2006 (<A href="http://www.rfc-editor.org/rfc/rfc4627.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC5226">[RFC5226]</A></TD> +<TD class="author-text">Narten, T. and H. Alvestrand, “<A href="http://tools.ietf.org/html/rfc5226">Guidelines for Writing an IANA Considerations Section in RFCs</A>,” BCP 26, RFC 5226, May 2008 (<A href="http://www.rfc-editor.org/rfc/rfc5226.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="RFC5246">[RFC5246]</A></TD> +<TD class="author-text">Dierks, T. and E. Rescorla, “<A href="http://tools.ietf.org/html/rfc5246">The Transport Layer Security (TLS) Protocol Version 1.2</A>,” RFC 5246, August 2008 (<A href="http://www.rfc-editor.org/rfc/rfc5246.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="W3C.REC-html401-19991224">[W3C.REC-html401-19991224]</A></TD> +<TD class="author-text">Hors, A., Jacobs, I., and D. Raggett, “<A href="http://www.w3.org/TR/1999/REC-html401-19991224">HTML 4.01 Specification</A>,” World Wide Web Consortium Recommendation REC-html401-19991224, December 1999 (<A href="http://www.w3.org/TR/1999/REC-html401-19991224">HTML</A>).</TD></TR> +</TBODY></TABLE> + +<A name="rfc.references2"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<H3>9.2. Informative References</H3> +<TABLE width="99%" border="0"> +<TBODY><TR><TD class="author-text" valign="top"><A name="I-D.hammer-oauth">[I-D.hammer-oauth]</A></TD> +<TD class="author-text">Hammer-Lahav, E., “<A href="http://www.ietf.org/internet-drafts/draft-hammer-oauth-10.txt">The OAuth 1.0 Protocol</A>,” draft-hammer-oauth-10 (work in progress), February 2010 (<A href="http://www.ietf.org/internet-drafts/draft-hammer-oauth-10.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="I-D.hardt-oauth">[I-D.hardt-oauth]</A></TD> +<TD class="author-text">Hardt, D., Tom, A., Eaton, B., and Y. Goland, “<A href="http://www.ietf.org/internet-drafts/draft-hardt-oauth-01.txt">OAuth Web Resource Authorization Profiles</A>,” draft-hardt-oauth-01 (work in progress), January 2010 (<A href="http://www.ietf.org/internet-drafts/draft-hardt-oauth-01.txt">TXT</A>).</TD></TR> +<TR><TD class="author-text" valign="top"><A name="OASIS.saml-core-2.0-os">[OASIS.saml-core-2.0-os]</A></TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=cantor.2@osu.edu','Compose new message','width=640,height=480')" rel="noreferrer">Cantor, S.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=John.Kemp@nokia.com','Compose new message','width=640,height=480')" rel="noreferrer">Kemp, J.</A>, <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=rphilpott@rsasecurity.com','Compose new message','width=640,height=480')" rel="noreferrer">Philpott, R.</A>, and <A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=eve.maler@sun.com','Compose new message','width=640,height=480')" rel="noreferrer">E. Maler</A>, “<A href="http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf">Assertions and Protocol for the OASIS Security Assertion Markup Language + (SAML) V2.0</A>,” OASIS Standard saml-core-2.0-os, March 2005.</TD></TR> +</TBODY></TABLE> + +<A name="rfc.authors"></A><BR><HR> +<TABLE summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><TBODY><TR><TD class="TOCbug"><A href="http://tools.ietf.org/id/draft-ietf-oauth-v2-09.html#toc"> TOC </A></TD></TR></TBODY></TABLE> +<H3>Authors' Addresses</H3> +<TABLE width="99%" border="0" cellpadding="0" cellspacing="0"> +<TBODY><TR><TD class="author-text"> </TD> +<TD class="author-text">Eran Hammer-Lahav (editor)</TD></TR> +<TR><TD class="author-text"> </TD> +<TD class="author-text">Yahoo!</TD></TR> +<TR><TD class="author" align="right">Email: </TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=eran@hueniverse.com','Compose new message','width=640,height=480')" rel="noreferrer">eran@hueniverse.com</A></TD></TR> +<TR><TD class="author" align="right">URI: </TD> +<TD class="author-text"><A href="http://hueniverse.com/">http://hueniverse.com</A></TD></TR> +<TR cellpadding="3"><TD> </TD><TD> </TD></TR> +<TR><TD class="author-text"> </TD> +<TD class="author-text">David Recordon</TD></TR> +<TR><TD class="author-text"> </TD> +<TD class="author-text">Facebook</TD></TR> +<TR><TD class="author" align="right">Email: </TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=davidrecordon@facebook.com','Compose new message','width=640,height=480')" rel="noreferrer">davidrecordon@facebook.com</A></TD></TR> +<TR><TD class="author" align="right">URI: </TD> +<TD class="author-text"><A href="http://www.davidrecordon.com/">http://www.davidrecordon.com/</A></TD></TR> +<TR cellpadding="3"><TD> </TD><TD> </TD></TR> +<TR><TD class="author-text"> </TD> +<TD class="author-text">Dick Hardt</TD></TR> +<TR><TD class="author-text"> </TD> +<TD class="author-text">Microsoft</TD></TR> +<TR><TD class="author" align="right">Email: </TD> +<TD class="author-text"><A href="javascript:void(0)" onclick="window.open('http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=dick.hardt@gmail.com','Compose new message','width=640,height=480')" rel="noreferrer">dick.hardt@gmail.com</A></TD></TR> +<TR><TD class="author" align="right">URI: </TD> +<TD class="author-text"><A href="http://dickhardt.org/">http://dickhardt.org/</A></TD></TR> +</TBODY></TABLE> + +</BODY></HTML>
\ No newline at end of file |