Skip to content

Version 0.4.0

Compare
Choose a tag to compare
@tesaguri tesaguri released this 18 Oct 07:59
· 143 commits to master since this release
v0.4.0
099bd67

Breaking changes

  • Authorize trait was renamed to Request.

(41cbb27)

  • Builder::build now returns an Authorization 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 into serializer::{Authorizer,Urlencoder}.

The Serializer trait was introduced as an abstraction over Signer like types.

  • SignatureMethod::sign_with now takes only &strs.

(187522e)

  • Sign methods no longer take default_{key,value} arguments.

(35ef34b)

  • {Builder,Options}::timestamp now takes a NonZeroU64.

(6ca7312)

Features

  • Credentials is now a re-export from a new crate oauth-credentials.

(e6a043d)

  • Add shorthand functions such as crate::{get,post} to authorize a Request.

  • #[derive(Request)] now accepts field names with oauth_ 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)