|Title||Do not use hard-coded values for |
|Description||Do not use hard-coded values for the properties |
|Rationale||For security reasons, it is discouraged to use hard-coded username and password since this way they can be easily shared with others accidentally.|
import matlab.net.http.Credentials creds = Credentials('Username', 'John', 'Password', 'secret'); weboptions("Username", "John", "Password", "secret");
import matlab.net.http.Credentials % Ask the user to provide a username and password, for example using a dialog or prompt: [username, password] = showLoginDialog(); creds = Credentials('Username', username, 'Password', password); weboptions("Username", username, "Password", password);
Note: This is just one example of how to obtain credentials without hardcoding them. Ask your IT department for the available options.