Il RFC OAuth afferma:
OAuth uses tokens to represent the authorization granted to the
client by the resource owner. Typically, token credentials are
issued by the server at the resource owner's request, after
authenticating the resource owner's identity (usually using a
username and password).
There are many ways in which a server can facilitate the provisioning
of token credentials. This section defines one such way, using HTTP
redirections and the resource owner's user-agent. This redirection-
based authorization method includes three steps:
The client obtains a set of temporary credentials from the server
(in the form of an identifier and shared-secret). The temporary
credentials are used to identify the access request throughout
the authorization process.
The resource owner authorizes the server to grant the client's
access request (identified by the temporary credentials).
The client uses the temporary credentials to request a set of
token credentials from the server, which will enable it to access
the resource owner's protected resources.
Quindi, per ottenere l'autorizzazione, il client (il sito che utilizza i tuoi dati) deve reindirizzare l'utente al server che contiene i tuoi dati per la registrazione.
Alla Sezione 2.2 gli stati RFC:
The way in which the server handles the authorization request,
including whether it uses a secure channel such as TLS/SSL is beyond
the scope of this specification. However, the server MUST first
verify the identity of the resource owner.
Ma sicuramente io (come proprietario delle risorse) non userò alcuna orazione OAuth senza controllare il certificato del sito.
Quindi per OAuth 1.0 questo non è obbligatorio.
Il RFC OAuth 2.0 è ancora una bozza ma capisco che sia richiede TLS
10.9. Endpoints Authenticity
In order to prevent man-in-the-middle and phishing attacks, the
authorization server MUST implement and require TLS with server
authentication as defined by [RFC2818] for any request sent to the
authorization and token endpoints. The client MUST validate the
authorization server's TLS certificate in accordance with its
requirements for server identity authentication.
[...]
10.11[...]
To reduce the risk of phishing attacks, the authorization servers
MUST utilize TLS on every endpoint used for end-user interaction
Quindi l'autenticazione si basa sul protocollo TLS come è stato discusso sul blog di recente .
Per riassumere, sospetto qualsiasi tentativo di OAuth senza TLS come dannoso. E ovviamente lo stesso se i certificati SSL non si convalidano.