This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 'Allow scripts to access the OAuth token' was selected in pipeline. Add the following YAML to any steps requiring access: | |
# env: | |
# MY_ACCESS_TOKEN: $(System.AccessToken) | |
# Cron Schedules have been converted using UTC Time Zone and may need to be updated for your location | |
schedules: | |
- cron: 0 6 * * * | |
branches: | |
include: | |
- refs/heads/master | |
always: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) | |
{ | |
if (env.IsDevelopment()) app.UseDeveloperExceptionPage(); | |
app.UseRouting(); | |
//Get User Secrets here | |
var username = Configuration["YourService:Username"]; | |
var password = Configuration["YourService:Password"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IConfiguration Configuration { get; } | |
public Startup(IConfiguration configuration) | |
{ | |
Configuration = configuration; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"YourService": { | |
"Username": "myusername", | |
"Password": "C0mpLicated!!!1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet list package --vulnerable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Salesforce": { | |
"Username": "", //User name from API User | |
"Password": "", //Password from API User | |
"Token": "", //Token from /lightning/settings/personal/ResetApiToken/home | |
"ClientId": "", // Consumer Key from the connected app | |
"ClientSecret": "", // Consumer Secret from the connected app | |
"LoginEndpoint": "https://login.salesforce.com/services/oauth2/token", //OAuth URL | |
"ApiEndpoint": "/services/data/v51.0/" //API Endpoint with Version | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Postcode": "01067", | |
"State": "DE-SN" | |
}, | |
{ | |
"Postcode": "01069", | |
"State": "DE-SN" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Class RandomWordGenerator. | |
/// </summary> | |
public static class RandomWordGenerator | |
{ | |
/// <summary> | |
/// Creates the random word number combination. | |
/// </summary> | |
/// <returns>System.String.</returns> |