MaikuB/flutter_appauth

SSL Certificate

alexcontra opened this issue · 7 comments

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

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

@MaikuB can you help us with this ?

I am also searching for the same

MaikuB commented

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

@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
openid/AppAuth-Android#115
openid/AppAuth-iOS#424
I think for the JS-Implementation the browser has to trust the root cert - therefore there is no callback.

Hi @svsk417 Did you tried to integrate this ?

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. :)