MaikuB / flutter_appauth

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

Unwanted sign-in confirmation pop-up appears in iOS #346

Closed Nandhini-Saravanakumar closed 2 years ago

Nandhini-Saravanakumar commented 2 years ago

While calling endSession for logout, unwanted sign-in confirmation pop-up appears in iOS.

(note: sign-in through facebook or google )

Nandhini-Saravanakumar commented 2 years ago

final FlutterAppAuth _appAuth = FlutterAppAuth(); EndSessionRequest endSessionRequest = EndSessionRequest( serviceConfiguration: AuthorizationServiceConfiguration( tokenEndpoint: oktaConfigData.authOktaUrl + oktaConfigData.authOktaTokenPath, authorizationEndpoint: oktaConfigData.authOktaUrl + oktaConfigData.authOktaAuthPath, endSessionEndpoint: oktaConfigData.authOktaUrl + oktaConfigData.authOktaEndSessionPath), idTokenHint: oktaTokenResponseModel.idToken, postLogoutRedirectUrl: oktaConfigData.authOktaLogoutRedirect); final logout = await _appAuth.endSession(endSessionRequest);

MaikuB commented 2 years ago

Whilst you may not want it, this is actually the expected behaviour with how the native auth APIs work. A reminder that this plugin leverages another library to do the heavy lifting too.

Closing as this is the expected behaviour and not an issue with the plugin itself

Nandhini-Saravanakumar commented 2 years ago

@MaikuB any way to avoid appearing this sign-in confirmation pop-up on calling endSession (logout action)