Some Oauth notes.

 

1. Overview.

 

Oauth provides a method for clients to access a protected resource on 

behalf of a resource owner.

 

 

     +--------+                                  +---------------+

     |        |--(A)-- Authorization Request --->|   Resource    |

     |        |                                  |     Owner     |

     |        |<-(B)------ Access Grant ---------|               |

     |        |                                  +---------------+

     |        |

     |        |         Client Credentials &     +---------------+

     |        |--(C)------ Access Grant -------->| Authorization |

     | Client |                                  |     Server    |

     |        |<-(D)------ Access Token ---------|               |

     |        |      (w/ Optional Refresh Token) +---------------+

     |        |

     |        |                                  +---------------+

     |        |--(E)------ Access Token -------->|    Resource   |

     |        |                                  |     Server    |

     |        |<-(F)---- Protected Resource -----|               |

     +--------+                                  +---------------+

 

 

                     Figure 1: Abstract Protocol Flow

posted @ 2010-09-28 21:56  Dikang Gu  阅读(128)  评论(0编辑  收藏  举报