Stuart’s MATLAB Videos

Watch and Learn

Creating a Class to Generate a Non-Expiring Token: Part 1

I create a lot of code that reads and writes to our internal SharePoint file storage. To do that, it needs to use an authorization token. This token is time limited to an hour and sometimes that causes my code to fail when it expires. I want to create a more robust method of generating a token and my first idea is to create a class that will regenerate the token if it has or is about to expire.

Features covered in this code-along style video include:

  • classdef

Play the video in full screen mode for a better viewing experience. 

  • print


コメントを残すには、ここ をクリックして MathWorks アカウントにサインインするか新しい MathWorks アカウントを作成します。