MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
270 stars 243 forks source link

How to pass data in http header? #281

Closed ketulrastogi closed 2 years ago

ketulrastogi commented 2 years ago

Hi MaikuB,

Thank you so much for this amazing package. We are using it for the last 6 months. I want to know how can we pass custom data in the HTTP header.?

We are using IdentityServer and we want to pass a tenant in the header to the identity user from which tenant it belongs.

I tried passing the tenant field in additionalParameters to AuthorizationTokenRequest, but it didn't make any effect.

Please guide us to solve this issue.

Thanks Ketul

MaikuB commented 2 years ago

Not possible. additionalParameters are passed to the query string. If you want to pass headers then you may need to look into your custom auth solution

davideravasi commented 1 year ago

Any update here? Still not possible in August 2023?

abdallah-odeh commented 7 months ago

Also need this feature here