Closed achabill closed 7 years ago
UWP Using: var firebaseConfig = new FirebaseConfig { AuthSecret = id_token, BasePath = FirebaseBaseURL } and calling PutAsync() throws exception with Message : "Failed to validate MAC"
var firebaseConfig = new FirebaseConfig { AuthSecret = id_token, BasePath = FirebaseBaseURL }
PutAsync()
id_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3NpbXBsZXNvY2lhbG1lZGlhLmF1dGgwLmNvbS8iLCJzdWIiOiJmYWNlYm9va3wxMzkyNTM5Nzk3NDQyODcwIiwiYXVkIjoiVldqU1hvOUY0eFBMbEFtMktNeXJMb0s4bVd3c2hYYjQiLCJleHAiOjE0NzMyMDQ0NzQsImlhdCI6MTQ3MzE2ODQ3NCwidiI6MCwiZCI6eyJmYl9pZCI6ImZhY2Vib29rfDEzOTI1Mzk3OTc0NDI4NzAifSwiYXpwIjoiVldqU1hvOUY0eFBMbEFtMktNeXJMb0s4bVd3c2hYYjQifQ.2fsK1YWNycT3iJvFncprEcoUNr2WIEwz9ZCKFHYTFOg"
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3NpbXBsZXNvY2lhbG1lZGlhLmF1dGgwLmNvbS8iLCJzdWIiOiJmYWNlYm9va3wxMzkyNTM5Nzk3NDQyODcwIiwiYXVkIjoiVldqU1hvOUY0eFBMbEFtMktNeXJMb0s4bVd3c2hYYjQiLCJleHAiOjE0NzMyMDQ0NzQsImlhdCI6MTQ3MzE2ODQ3NCwidiI6MCwiZCI6eyJmYl9pZCI6ImZhY2Vib29rfDEzOTI1Mzk3OTc0NDI4NzAifSwiYXpwIjoiVldqU1hvOUY0eFBMbEFtMktNeXJMb0s4bVd3c2hYYjQifQ.2fsK1YWNycT3iJvFncprEcoUNr2WIEwz9ZCKFHYTFOg"
Gotten from Auth0: auth0.GetDelegationToken()
auth0.GetDelegationToken()
What is wrong?
You need the Database Secret from Project Settings -> Service Accounts -> Database Secrets
UWP Using:
var firebaseConfig = new FirebaseConfig { AuthSecret = id_token, BasePath = FirebaseBaseURL }
and callingPutAsync()
throws exception with Message : "Failed to validate MAC"id_token:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3NpbXBsZXNvY2lhbG1lZGlhLmF1dGgwLmNvbS8iLCJzdWIiOiJmYWNlYm9va3wxMzkyNTM5Nzk3NDQyODcwIiwiYXVkIjoiVldqU1hvOUY0eFBMbEFtMktNeXJMb0s4bVd3c2hYYjQiLCJleHAiOjE0NzMyMDQ0NzQsImlhdCI6MTQ3MzE2ODQ3NCwidiI6MCwiZCI6eyJmYl9pZCI6ImZhY2Vib29rfDEzOTI1Mzk3OTc0NDI4NzAifSwiYXpwIjoiVldqU1hvOUY0eFBMbEFtMktNeXJMb0s4bVd3c2hYYjQifQ.2fsK1YWNycT3iJvFncprEcoUNr2WIEwz9ZCKFHYTFOg"
Gotten from Auth0:
auth0.GetDelegationToken()
What is wrong?