Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Access token authenticator #597

Merged
merged 9 commits into from
Jan 24, 2017
Merged

Access token authenticator #597

merged 9 commits into from
Jan 24, 2017

Conversation

robertjd
Copy link
Member

@robertjd robertjd commented Jan 23, 2017

This adds a new access token authenticator, which decouples application assertions from access token assertions (authentication vs. authorization). It also adds a key resolver, which depends on a not-yet-released version of nJwt (work in progress here jwtk/njwt#43).

This authenticator will be used with the next patch release of express-stormpath, so that access tokens issued by client API will validate correctly - so long as they are issued by the same stormpath application, we will still retain that behavior, we just need to introduce the key resolving.

@coveralls
Copy link

coveralls commented Jan 23, 2017

Coverage Status

Coverage decreased (-1.5%) to 88.023% when pulling 876fbab on access-token-authenticator into 2d0b736 on master.

@@ -79,6 +80,11 @@ function getCacheByHref(cacheManager, href) {
region = href.match(/customData/) ? 'customData' : (href.split('/').slice(-2)[0]);
}

// if (href && href.match(/application\/[^\/]+\/authTokens\//)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented lines?

@coveralls
Copy link

coveralls commented Jan 24, 2017

Coverage Status

Coverage decreased (-1.5%) to 88.023% when pulling 6d4ba1b on access-token-authenticator into 2d0b736 on master.

@coveralls
Copy link

coveralls commented Jan 24, 2017

Coverage Status

Coverage decreased (-1.5%) to 88.027% when pulling 5696bf6 on access-token-authenticator into 2d0b736 on master.

@robertjd robertjd changed the title WIP - Access token authenticator Access token authenticator Jan 24, 2017
@coveralls
Copy link

coveralls commented Jan 24, 2017

Coverage Status

Coverage decreased (-1.5%) to 88.027% when pulling 2ee9d93 on access-token-authenticator into 2d0b736 on master.

@typerandom
Copy link
Contributor

I made some formatting changes, but other than that, I'm 👍 for this!

@coveralls
Copy link

coveralls commented Jan 24, 2017

Coverage Status

Coverage decreased (-1.5%) to 88.027% when pulling ef1eb32 on access-token-authenticator into 2d0b736 on master.

@coveralls
Copy link

coveralls commented Jan 24, 2017

Coverage Status

Coverage decreased (-1.5%) to 88.027% when pulling ef1eb32 on access-token-authenticator into 2d0b736 on master.

required some fixes for env hacks that are done earlier in this script
@coveralls
Copy link

coveralls commented Jan 24, 2017

Coverage Status

Coverage decreased (-1.4%) to 88.136% when pulling 9ada1a7 on access-token-authenticator into 2d0b736 on master.

@robertjd robertjd merged commit 680c58a into master Jan 24, 2017
@robertjd robertjd deleted the access-token-authenticator branch January 24, 2017 21:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants