Version 0.4.0
Breaking changes
Authorize
trait was renamed toRequest
.
(41cbb27)
Builder::build
now returns anAuthorization
header alone .
Use crate::{to_form_urlencoded,to_uri_query}
if you need a form-urlencoded/URI query string.
#[oauth1(fmt = ..., option = ..., rename = ..., skip_if = ...)]
attributes now take a bare path/boolean literal (Display::fmt
,true
) instead of a string ("Display::fmt"
,"true"
).
(f0bf51a)
Signer
is split intoserializer::{Authorizer,Urlencoder}
.
The Serializer
trait was introduced as an abstraction over Signer
like types.
SignatureMethod::sign_with
now takes only&str
s.
(187522e)
Sign
methods no longer takedefault_{key,value}
arguments.
(35ef34b)
{Builder,Options}::timestamp
now takes aNonZeroU64
.
(6ca7312)
Features
Credentials
is now a re-export from a new crateoauth-credentials
.
(e6a043d)
-
Add shorthand functions such as
crate::{get,post}
to authorize aRequest
. -
#[derive(Request)]
now accepts field names withoauth_
prefix
However, server-defined parameters with the oauth_
prefix used to be prohibited in OAuth Core 1.0a and is still prohibited in the Temporary Credential Request, Resource Owner Authorization and Token Request endpoints URI in RFC 5849.
(f2eb5fb)