Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In short, yes. You should be using the oAuth2 RFC to determine which workflow you want to use. In regards to client registration the RFC specifically states that the means through which a client registers is beyond the scope of the specification (<a href="http://tools.ietf.org/html/rfc6749#section-2" rel="nofollow">http://tools.ietf.org/html/rfc6749#section-2</a>).</p> <p>With that being said I can give you some insight into how I did this. My application is a mobile phone application that connects to several services running on various servers. I'm also using the <code>Resource Owner Password Credentials Grant</code>. </p> <p>The way I approached this was: when the application loads, the first thing it does is to check if it has an <code>oAuth2 client id</code>. If it doesn't, then it POSTS to a create client endpoint I've setted up with the meta-data I need. The endpoint validates the POST, creates the client and returns the client information. The application stores the client id and the process doesn't have to be repeated the next time.</p> <ol> <li>Application loads;</li> <li>Application checks for oAuth2 client id;</li> <li>If there is one, the process ends;</li> <li>If there isn't, it posts to <a href="http://www.example.com/client" rel="nofollow">http://www.example.com/client</a>;</li> <li>If we get a 200, store the oAuth2 client id.</li> </ol> <p>I could have also created the oAuth2 client when the user created an account in the application, but I wanted to make the registration process as fast as possible. Creating the client would have added some extra waiting time to the process.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload