Releases: tesaguri/oauth1-request-rs
Version 0.6.0
Added
-
Supported
RsaSha1
signature method behindrsa-sha1-06
Cargo feature -
Added
ParameterList
type for creating requests with dynamic parameters -
Added
request::AssertSorted
type for turning a sorted iterator into aRequest
-
Added
Builder::to_{form,query}
finalizers to write OAuth protocol parameters to form/query strings -
Added
Authorizer::{form,query}
constructors -
Added
*_with_buf
family ofBuilder
finalizers/serializer constructors to write the output to a supplied buffer -
Urlencoder
now implementsClone
andDebug
-
Added
serializer::Recorder
test utility behindtest
Cargo feature -
Added
#[oauth1(crate = "...")]
derive-macro container attribute
Changed
-
Many functionalities are now behind
std
andalloc
Cargo features, which are on-by-defaultEspecially,
Authorizer
now panics if it needs to get timestamp when compiled withoutstd
feature.Also, we haven't reached a full
no_std
support yet and these features are only for future-proofing purpose for now. But we are almost there! We'll get the fullno_std
support once a thirdparty dependency releases a required change (servo/rust-url#691),The docs.rs documentation annotates APIs that require these features.
-
Renamed
to_{form_urlencoded,uri_query}
toto_{form,query}
-
The built-in signagure method types
HmacSha1
andPlaintext
are no longer unit structsUse the
HMAC_SHA1
andPLAINTEXT
constants or thenew()
constructor to get a default value of these types. -
#[derive(Request)]
now stripsr#
prefix of fields' name -
#[derive(Request)]
now rejects unknown container attributes -
Removed
Request
implementation forBTreeSet
Use the new
ParameterList
type, which is more flexible and correct. -
Removed
HmacSha1Authorizer
andPlaintextAuthorizer
type aliases -
Removed
Authorizer::with_signature_method()
constructorThe
new()
constructor now takes the signature method as an argument. -
Removed
Identity
pseudo signature method -
Renamed
Authorizer::new
toauthorization
Version 0.5.1
Version 0.5.0
- Update
oauth-credentials
dependency to v0.3.0.
`oauth-credentials` version 0.3.0
This release contains a breaking change.
- Use
AsRef<str>
instead ofBorrow<str>
in trait bounds ofCredentials
andToken
(3f52985)
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)
`oauth-credentials` version 0.1.0
First release.
Version 0.3.0
- Removed deprecated items (
Request::new
andRequest::new_form
) - Renamed
OAuth1Authorize
toAuthorize
- Moved
Signer
to a separate module