Skip to content

Commit

Permalink
Change duration to 3 years, and add to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Nov 27, 2024
1 parent 6cb9eec commit cd240ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ It is granted access via a JWT token, which is generated manually by running the

The cookie has a role of `intranet-archive`. For this roll to be granted access to the intranet, the request IP must be one of Cloud Platform's egress IPs.

When the JWT_SECRET is rotated, a new JWT token will need to be generated, and the Intranet Archive service will need to be updated with the new JWT.

<!-- License -->

[License Link]: https://github.com/ministryofjustice/intranet/blob/main/LICENSE 'License.'
Expand Down
2 changes: 1 addition & 1 deletion public/app/mu-plugins/moj-auth/traits/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

trait AuthCli
{
const GENERATED_JWT_DURATION = 60 * 60 * 24 * 365 * 5; // 5 years
const GENERATED_JWT_DURATION = 60 * 60 * 24 * 365 * 3; // 3 years

/**
* Init the WP CLI command.
Expand Down

0 comments on commit cd240ef

Please sign in to comment.