diff options
| author | TrueDoctor <d-kobert@web.de> | 2018-09-29 17:08:56 +0200 |
|---|---|---|
| committer | TrueDoctor <d-kobert@web.de> | 2018-09-29 17:08:56 +0200 |
| commit | 3b161e00dc9880dd80d1d072e065962b1c601a56 (patch) | |
| tree | 2a470f295d6f36255577cc97da37da83abcc2daf | |
| parent | 680967aee589e4a8d277044b204de07cbe32f41e (diff) | |
added database autenth
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | DSACore/FireBase/Database.cs | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -262,3 +262,4 @@ paket-files/ __pycache__/ *.pyc /ZooBOTanica/Critters +/DSACore/Token diff --git a/DSACore/FireBase/Database.cs b/DSACore/FireBase/Database.cs index cd21c00..725c971 100644 --- a/DSACore/FireBase/Database.cs +++ b/DSACore/FireBase/Database.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Threading.Tasks; using Firebase.Database; @@ -12,9 +13,9 @@ namespace DSACore.FireBase { static Database() { - var auth = "ABCDE"; // your app secret + var auth = File.ReadAllText("Token"); ; // your app secret var firebaseClient = new FirebaseClient( - "<URL>", + "https://heldenonline-4d828.firebaseio.com/", new FirebaseOptions { AuthTokenAsyncFactory = () => Task.FromResult(auth) |
