Permalink
Browse files

Add flowchart on how authorization should work

  • Loading branch information...
rmccue committed Dec 22, 2013
1 parent 2e1cff3 commit de6155f5c0b6674bd4e77bf8c3bfb585e6c9bdeb
Showing with 47 additions and 0 deletions.
  1. +47 −0 process.md
View
@@ -0,0 +1,47 @@
+# Authorization Flow
+
+ /------------------------------\
+ | User clicks "Connect" button |
+ | in consumer |
+ \______________________________/
+ |
+ |---------------------------------|
+ | Send user to authorization page |
+ |---------------------------------|
+ |
+ v
+ / \
+ /--------- ----------\ No |-----------------------------|
+ < Is the user logged in? >----------->| Redirect user to login page |
+ \--------- ----------/ |-----------------------------|
+ \ / |
+ | v
+ Yes | /----------------/
+ | / User logs in /
+ | /----------------/
+ | |
+ | <--------------------------------------/
+ v
+ |-------------------------|
+ | Show authorization page |
+ |-------------------------|
+ |
+ v
+ /----------------------------------/
+ / User authorizes the application /
+ /----------------------------------/
+ |
+ v
+ |-----------------------------|
+ | Mark consumer as authorized |
+ |-----------------------------|
+ |
+ v
+ |----------------------------------|
+ | Create access token for consumer |
+ |----------------------------------|
+ |
+ v
+ /----------------------\
+ | Redirect to consumer |
+ \______________________/

0 comments on commit de6155f

Please sign in to comment.