Netflix Shiro Pull Need #952

https stash.corp.netflix.com projects cme repos shiro pull-requests 952
https stash.corp.netflix.com projects cme repos shiro pull-requests 952

https://stash.corp.netflix.com/projects/CME/repos/shiro/pull-requests/952

This particular pull request gives support for this --max-age and --max-stale flags to the shiro command.

The --max-age flag specifies the maximum age group of a good expression. If the symbol is old when compared with the specified grow older, it will become refreshed.

The --max-stale flag identifies typically the maximum stale era of a good token. If this token is dull for more compared to the specified grow older, it will end up being refreshed.

These flags can easily be beneficial regarding controlling the consistency of token refreshes. For example, in case you set the --max-age flag to 1 hour, the token can be refreshed every single hour. If a person set the --max-stale flag to be able to 30 minutes, this token will always be refreshed every thirty minutes.

To use these flags, just put them to the particular shiro control. For instance:

 shiro --max-age 1h --max-stale 30m 

This command word will cause the particular shiro command to refresh the particular token every single hour, or if this is stale intended for more than thirty minutes.

Benefits of using these flags

There are usually several benefits in order to using the --max-age and --max-stale flags:

  • Improved performance: Simply by controlling the frequency regarding token refreshes, an individual can boost the particular performance of the application.
  • Reduced protection risks: By refreshing bridal party regularly, you can reduce the risk of your app being sacrificed by simply a taken or out of date token.
  • Easier administration: By simply centralizing the managing of token refreshes, you can create it easier to manage your application's safety measures.

Conclusion

The --max-age and --max-stale flags are really some sort of valuable inclusion to the shiro command. They will allow you to control the regularity of token refreshes, which can boost performance, reduce protection risks, and create management easier.