Skip to content

v0.2.0

Compare
Choose a tag to compare
@norech norech released this 11 Aug 17:51
· 20 commits to master since this release
  • Added support for cookie-based auth providers
  • Added downloadFile
  • Added directories support in getProjectFiles
  • Renamed getStages into getInternships
  • Added indirect strategy for autologin link authentication
  • Autologin link authentication is now considered legacy and support in epitech.js is no longer guaranteed
  • Added getStream to IntraRequestProvider (internal change)
  • Added getUserDetails route to RawIntra

Breaking changes

  • Added IntraError which are thrown in case of unexpected response (can be turned off with noThrowIntraError: true)
  • IntraRequestProvider get method is now split into get and json (internal change)
  • IntraRequestProvider constructor now takes a RawIntraConfig as argument instead (internal change)
  • Performed more checks for the validity of provided autologin links

MIGRATION - AUTOLOGIN LINKS DEPRECATION

Since an internal change of the intranet, autologin links are now considered deprecated and will likely not work. You will need to update your code to use another authentication method.

You will need to use an auth provider to handle your authentication through session cookies.

The @epitech.js/puppeteer-auth-provider project has been created accordingly to this new requirement and the using of this module is now one of the new recommended ways to authenticate to the intranet endpoints with epitech.js.

The migration should be straightforward and as easy as possible, but it is not guaranteed to work for all users.

Read the README.md for more information on how to use the new authentication methods.