release 1.7.0
Note that opts.secret and opts.redirect_uri_path are now deprecated and will be removed in a next release; a warning is issued in the log now.
Bugfixes
- deprecate
opts.secretin favor ofopts.public_keyandopts.symmetric_key; see #196; thanks @dholth - url-encode
client_id/client_secretfollowing https://tools.ietf.org/html/rfc6749#section-2.3.1; closes #204; thanks @grrolland - use
session.startinstead ofsession.opento allow better control over session lifetime usinglua-resty-sessionprimitives; see #174; thanks @thomasleplus - soften the impact of token refresh race condition by creating a new session when tokens are refreshed; see #190; thanks @luisviman
Features
- added
redirect_urioption that specifies a relative or absolute redirect URI;redirect_uri_pathis now deprecated - add token revocation support on logout with
opts.revoke_tokens_on_logout; thanks @oleeander - bypass introspection cache on demand with
opts.introspection_cache_ignore; thanks @dmitriyblok - add
opts.use_nonceoption to avoid sending a nonce parameter to broken OpenID Connect providers; see #193; thanks @thewilli - added
opts.http_request_decoratoroption that can be used to augment the HTTP requests when accessingdiscovery,tokenorjwksendpoints; thanks @bodewig - add support for a public client (i.e. without a client secret) to support Windows Integrated Authentication (WIA) with Active Directory Federation Services (AD FS) on Windows Server 2016 (or newer)
Other
- extract log function and log level constant to the module level to allow customization
- make
call_userinfo_endpointa public function; see #207; thanks @thomasleplus - make
call_token_endpointa public function