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 帐户或创建一个新帐户。