Skip to content

Releases: techfromsage/persona-node-client

Debug certificate use

23 Jun 09:28
Compare
Choose a tag to compare

Adding debugging for checking which certificate is used to validate a token.

Remote validation checks for su scope

14 Jun 14:38
Compare
Choose a tag to compare

When validating a token remotely (includes more than 25 scopes) the client will call Persona. A single scope was being passed scope=blah which was not checking for the overriding su scope. Each time a call is now made to Persona the su scope is automatically appended ?scope=blah,su.

3.2.0 - Add getProfilesForGuids

02 Mar 07:52
Compare
Choose a tag to compare
Fix indentation breaking tests

3.1.1 - Remove shrinkwrap on library

07 Nov 10:26
Compare
Choose a tag to compare

Functionally identical to 3.1.0 but removes the shrinkwrap so the calling app can lock down dependencies.

Expose decoded JWT on validation

14 Jul 10:33
Compare
Choose a tag to compare

This change adds a 3rd argument to the validateToken/validateHTTPBearerToken callback function that provides the decoded JSON web token for the caller to access token metadata:

var opts = {
  token: token,
  scope: 'my:scope'
};
personaClient.validateToken(opts, function done(error, result, decodedToken) {
  // error will be one of personaClient.errorTypes or null if validation passed.
  // result will be null or 'ok' if validation passed.
  console.log(decodedToken.jti) // get the unique ID of the token.
});

Small bug fix

27 Apr 19:21
Compare
Choose a tag to compare
  • Fixed invalid relative path to package.json. Path is now absolute.

Minor Bug Fix

26 Apr 11:35
Compare
Choose a tag to compare

The middleware validateHTTPBearerToken method would throw an exception if the supplied token from the HTTP call was not supplied. This bug was introduced in the last major patch.

Switching to uuid.v4 for x-request-id generation

25 Apr 16:57
Compare
Choose a tag to compare
3.0.5

Change from uuid.v1 to v4

xRequestId, opts, fixed cert timeout, removing mandatory config

25 Apr 12:58
Compare
Choose a tag to compare

*** Breaking changes, please review the docs ***

  • Fix discrepancy between seconds, ms, be more explicit in var names and comments
  • Added user agent functionality, make appUA mandatory
  • Fail tests if there are any non-matched events
  • Made cert timeout part of config, fixed defect with loop over background refresh, made tests more granular
  • Added xRequestId
  • Removing mandatory config, not supplying config will default to live
  • _getPublicKey now private
  • _getToken now private
  • All public methods use opts not individual params

Removal of debugging bug

06 Apr 16:55
Compare
Choose a tag to compare

This release fixes a small bug introduced in 2.0.0 caused by a debugging line that was inadvertently merged :/