moved discord app secret to file and changed it
This commit is contained in:
parent
e72b4daf51
commit
660eadfbe2
3 changed files with 3 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,6 +22,7 @@ Database/
|
||||||
# Discord Tokens
|
# Discord Tokens
|
||||||
DiscordBot/token.txt
|
DiscordBot/token.txt
|
||||||
DiscordBot/debugtoken.txt
|
DiscordBot/debugtoken.txt
|
||||||
|
Lieb/discordAppSecret.txt
|
||||||
|
|
||||||
# Build results
|
# Build results
|
||||||
[Dd]ebug/
|
[Dd]ebug/
|
||||||
|
|
|
@ -42,7 +42,7 @@ builder.Services.AddAuthentication(opt =>
|
||||||
.AddDiscord(x =>
|
.AddDiscord(x =>
|
||||||
{
|
{
|
||||||
x.AppId = builder.Configuration["Discord:AppId"];
|
x.AppId = builder.Configuration["Discord:AppId"];
|
||||||
x.AppSecret = builder.Configuration["Discord:AppSecret"];
|
x.AppSecret = File.ReadAllText("discordAppSecret.txt");
|
||||||
|
|
||||||
x.SaveTokens = true;
|
x.SaveTokens = true;
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Discord": {
|
"Discord": {
|
||||||
"AppId": "942448872335220806",
|
"AppId": "942448872335220806"
|
||||||
"AppSecret": "5tsNxK9LtFpNqxqQnLkSJ1B0HJ7P7YUF"
|
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue