I'm trying to implement an oAuth service using my REST services, by means of an .svc file in VB.NET
I was checking out this post with sample code: http://www.cleancode.co.nz/blog/523/oauth-dot-net As well as this visual explanation of oAuth: https://www.drupal.org/node/349516
The first article mentions The authentication is actually done in OAuthAuthorizationManager
But when I check the OAuthAuthorizationManager class, I don't see where the user would supply his password.
I'd think that somewhere I'd have to check if the username/password of the user are correct, but I don't see in the code of the first article or in the flow diagram of the 2nd article, where and how the user supplies his password.
At some point I'd imagine the password has to be sent over the line, I'd say that would be in clear text over SSL, but when is this password sent?
I now have this rule setup, where the password would be sent as a querystring paramter, but I'm unsure if that's correct:
<rule name="oauth login">
<match url="^api/login/([0-9a-zA-Z@.]+)$"/>
<action type="Rewrite" url="myapi.svc/login/?username={R:1}" appendQueryString="true" />
</rule>
So my question: When to send the user password when authenticating against my REST service?
