I am trying to use Firebase from C# using the "rest api". The rules in our Firebase DB require authentication in order to read a write, and we use custom authentication - using a custom authorization server we have here.
So, I created a user and requested a token for that user from our authorization server. Then I try to use that token with simple get request, as described here. Unfortunately, the request failed, with 403 error code.
Then I try to run exactly the same request - using the same user id and token - from the JS SDK (by calling signInWithCustomToken) - and the request succeeded. I even try to use the simulator with the token and the path I was trying to access - and according to the simulator, I should have access to the resource.
How is that possible? Is there something I missed that is required in order to use the rest api and custom authentication?