Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to deal with oAuth callbacks to non webservers?
    primarykey
    data
    text
    <p>I'm currently building an oAuth2 server so that external clients/devices can access data from my service without having to send over user credentials with every request. I've finally grasped how oAuth works after spending an entire day reading numerous tutorials and online documentation, however, there's still one thing that I'm rather unsure of...</p> <p>When sending a request for an authorization code to an oAuth server, how should I deal with a callback to mobile devices and devices that aren't a webserver?</p> <p>E.g. this request to my oAuth server will send an authorization code as a callback to a specified webserver (<a href="http://client-url.com" rel="nofollow">http://client-url.com</a> in this case)</p> <pre><code>http://mydomainname/oauth2/?client_id=test&amp;grant_type=authorization_code&amp;client_details=test&amp;redirect_uri=http://client-url.com&amp;response_type=code </code></pre> <p>The server at <a href="http://client-url.com" rel="nofollow">http://client-url.com</a> will receive a response containing an authorization code and the developer will be able to store a user's oAuth credentials accordingly.</p> <p>Obviously a mobile device isn't a webserver, so is there a standardised way of dealing with this? I've read online that you can define something called a custom URI scheme within iOS and Android apps. But what about the other mobile platforms out there? And desktop apps? I want my API to be accessible from as many platforms and devices as possible.</p> <p>The reason why I'm asking this question is because I want to add validation to my oAuth server so that users can only register apps with valid callback URL's. I wasn't sure if should allow any other type of input as a callback apart from a valid URL.</p> <p>Can anyone shine any light on this? I want to avoid spending hours validating and testing this across all devices as I'm sure anyone that has developed for multiple mobile platforms in the past must have some knowledge about this.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    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. This table or related slice is empty.
    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