C# Desktop Application Session Handling

Obaid Khan7 years ago

I have compiled library from swagger code. When create an instance of DefaultApi(), I get a response from the server and I get information of admin account. When I request to get a list of users or Devices, I get unauth 401 error. Please help me in managing session in C#.
Best Regards

Anton Tananaev7 years ago

You can either use basic auth header, or create a session and use cookie.

Obaid Khan7 years ago

How should I use basic Auth header. Please guide me I am stuck in this since last month.

Obaid Khan7 years ago

Can you please share sample android or C# code. That would be very helpful.

Anton Tananaev7 years ago

I don't have any C# samples.

Obaid Khan7 years ago

Do you have android sample?

Anton Tananaev7 years ago

Yes, source code is available on GitHub.

Obaid Khan7 years ago

Please just send basic short java code for authentication. I will get an idea from it.

Obaid Khan7 years ago

That is just a web view of the manager. I want to use google map in android.

Anton Tananaev7 years ago
Obaid Khan7 years ago

Oh Anton. You are my hero. Thank you so much brother.
God bless you.

Obaid Khan7 years ago

Just a last Question. Is there native version or IOS too?

Anton Tananaev7 years ago

Have you tried checking before asking question?

Obaid Khan7 years ago

Yes I tried checking but could not found it in your repositories. :(

Anton Tananaev7 years ago

How about replacing "android" with "ios" in the link?

https://github.com/tananaev/traccar-manager-ios/tree/native