bugthesystem / FireSharp

An asynchronous cross-platform .Net library for Firebase
The Unlicense
696 stars 147 forks source link

Failed to validate MAC #70

Closed achabill closed 7 years ago

achabill commented 8 years ago

UWP Using: var firebaseConfig = new FirebaseConfig { AuthSecret = id_token, BasePath = FirebaseBaseURL } and calling PutAsync() throws exception with Message : "Failed to validate MAC"

id_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3NpbXBsZXNvY2lhbG1lZGlhLmF1dGgwLmNvbS8iLCJzdWIiOiJmYWNlYm9va3wxMzkyNTM5Nzk3NDQyODcwIiwiYXVkIjoiVldqU1hvOUY0eFBMbEFtMktNeXJMb0s4bVd3c2hYYjQiLCJleHAiOjE0NzMyMDQ0NzQsImlhdCI6MTQ3MzE2ODQ3NCwidiI6MCwiZCI6eyJmYl9pZCI6ImZhY2Vib29rfDEzOTI1Mzk3OTc0NDI4NzAifSwiYXpwIjoiVldqU1hvOUY0eFBMbEFtMktNeXJMb0s4bVd3c2hYYjQifQ.2fsK1YWNycT3iJvFncprEcoUNr2WIEwz9ZCKFHYTFOg"

Gotten from Auth0: auth0.GetDelegationToken()

What is wrong?

arcosmin commented 7 years ago

You need the Database Secret from Project Settings -> Service Accounts -> Database Secrets

image