MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
269 stars 238 forks source link

SSL Certificate #450

Closed alexcontra closed 9 months ago

alexcontra commented 9 months ago

Hello, I'm using this library for authentication service. Is there any way to apply SSL pinning certificate on the package services ? Or it will be available in the near future?

Thanks in advice!

cc: @MaikuB

Amanvein commented 9 months ago

Hi @alexcontra, I have searching for the same but didn't get any idea

alexcontra commented 9 months ago

@MaikuB can you help us with this ?

Amanvein commented 9 months ago

I am also searching for the same

MaikuB commented 9 months ago

The plugin doesn't support this. If you're after this functionality then you would need to see if the native SDKs that the plugin reference supports it and contribute to this plugin to add this functionality in

svsk417 commented 7 months ago

@alexcontra I have taken a little look into this and found that the iOS as well as the Android side support a callback for cert validation https://github.com/openid/AppAuth-Android/issues/115 https://github.com/openid/AppAuth-iOS/issues/424 I think for the JS-Implementation the browser has to trust the root cert - therefore there is no callback.

alexcontra commented 7 months ago

Hi @svsk417 Did you tried to integrate this ?

svsk417 commented 7 months ago

Hi @alexcontra, no I didn't, but I think it should be not that hard, if one would think of an reasonable abstraction. I just wanted to point out, that it should be possible. :)