Skip to content

Commit b53b296

Browse files
Merge pull request #181 from frontegg/next
Next
2 parents 64466c9 + 3491e5c commit b53b296

30 files changed

Lines changed: 2311 additions & 963 deletions

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,20 @@ const userOrTenantEntity = await identityClient.validateToken(token, { withRoles
219219
> entitlement decision-making, so remember to add option flag: `withRolesAndPermissions: true`.
220220
221221
(see <a href="#validating-jwt-manually">Validating JWT manually</a> section for more details).
222-
222+
223+
#### step-up
224+
The client can be used to verify whether an authorized user has undergone step-up authentication.
225+
> You can also require session max age to determine a stepped up user
226+
```javascript
227+
// Validate the token and decode its properties for a stepped-up user
228+
const steppedUpUserEntity = await identityClient.validateToken(token, { stepUp: true });
229+
230+
// Validate the token with session maximum age requirement (up to one hour) for a stepped-up user
231+
const steppedUpUserEntityWithMaxAge = await identityClient.validateToken(token, { stepUp: { maxAge: 3600 } });
232+
```
233+
234+
#### entitlements
235+
223236
When the user/tenant entity is resolved, you can start querying the entitlements engine:
224237
```javascript
225238
const userEntitlementsClient = client.forUser(userOrTenantEntity);

docs/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
# [5.3.0-alpha.5](https://github.com/frontegg/nodejs-sdk/compare/5.3.0-alpha.4...5.3.0-alpha.5) (2024-01-28)
2+
3+
4+
### Bug Fixes
5+
6+
* **entitlements:** bump js common package version ([b3691db](https://github.com/frontegg/nodejs-sdk/commit/b3691dbe19e5669964f9d3f3bec1200cf06b7844))
7+
8+
# [5.3.0-alpha.4](https://github.com/frontegg/nodejs-sdk/compare/5.3.0-alpha.3...5.3.0-alpha.4) (2024-01-09)
9+
10+
11+
### Features
12+
13+
* **plans:** add plan evaluation to entitlements ([c1de677](https://github.com/frontegg/nodejs-sdk/commit/c1de677776795cace230cc036bf53aefb0ab172c))
14+
15+
# [5.3.0-alpha.3](https://github.com/frontegg/nodejs-sdk/compare/5.3.0-alpha.2...5.3.0-alpha.3) (2023-12-06)
16+
17+
18+
### Bug Fixes
19+
20+
* **step-up:** export type ([e66abb3](https://github.com/frontegg/nodejs-sdk/commit/e66abb3588f05ae5f7bd34ded3a80681f850c321))
21+
* **step-up:** export validator ([f131d36](https://github.com/frontegg/nodejs-sdk/commit/f131d36242c759ac9f514e31264fb1214cd16a4f))
22+
* **step-up:** fix validation condition ([2cd16f4](https://github.com/frontegg/nodejs-sdk/commit/2cd16f4e04245adf4cadc4388544ac4b872f2f1c))
23+
24+
# [5.3.0-alpha.2](https://github.com/frontegg/nodejs-sdk/compare/5.3.0-alpha.1...5.3.0-alpha.2) (2023-12-03)
25+
26+
27+
### Bug Fixes
28+
29+
* **step-up:** add sso as amr method for unenrolled mfa users ([cc9e916](https://github.com/frontegg/nodejs-sdk/commit/cc9e916e4afbf5a5dae817bbc8d0ec8db8e54e12))
30+
31+
# [5.3.0-alpha.1](https://github.com/frontegg/nodejs-sdk/compare/5.2.1...5.3.0-alpha.1) (2023-11-28)
32+
33+
34+
### Features
35+
36+
* **step-up:** add stepup validator ([#176](https://github.com/frontegg/nodejs-sdk/issues/176)) ([94559ae](https://github.com/frontegg/nodejs-sdk/commit/94559aef699d939dcc73771c7ba4b2ed5ecb332a))
37+
138
## [5.2.1](https://github.com/frontegg/nodejs-sdk/compare/5.2.0...5.2.1) (2023-11-27)
239

340

index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { FronteggAuthenticator } from './src/authenticator';
22
import { FronteggContext } from './src/components/frontegg-context';
33
import { withAuthentication } from './src/middlewares';
4-
import { AuditsClient, EntitlementsClient, EventsClient, HttpClient, IdentityClient } from './src/clients';
4+
import {
5+
AuditsClient,
6+
EntitlementsClient,
7+
EventsClient,
8+
HttpClient,
9+
IdentityClient,
10+
} from './src/clients';
511

612
export {
713
AuditsClient,
@@ -14,3 +20,4 @@ export {
1420
EventsClient,
1521
};
1622
export * from './src/clients/hosted-login';
23+
export * from './src/clients/identity';

0 commit comments

Comments
 (0)