Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2045

DOC: Example of how to use OAuth 2.0

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Neutral Neutral
    • None
    • None
    • None
    • None

      It's not clear how to configure OAuth 2.0. We really need an example of how this is done. Gmail would be a good example.

      Here is the flow:

      The steps:

         The flow illustrated in Figure 2 includes the following steps:
      
         (A)  The client requests an access token by authenticating with the
              authorization server and presenting an authorization grant.
      
         (B)  The authorization server authenticates the client and validates
              the authorization grant, and if valid, issues an access token
              and a refresh token.
      
         (C)  The client makes a protected resource request to the resource
              server by presenting the access token.
      
         (D)  The resource server validates the access token, and if valid,
              serves the request.
      
         (E)  Steps (C) and (D) repeat until the access token expires.  If the
              client knows the access token expired, it skips to step (G);
              otherwise, it makes another protected resource request.
      
         (F)  Since the access token is invalid, the resource server returns
              an invalid token error.
      

      If the refresh token is issued after authentication then what should be provided in the field?

        Acceptance criteria

              Unassigned Unassigned
              rgange Richard Gange
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: