openid / AppAuth-iOS

iOS and macOS SDK for communicating with OAuth 2.0 and OpenID Connect providers.
https://openid.github.io/AppAuth-iOS
Apache License 2.0
1.75k stars 762 forks source link

User get automatically login after logout but when I restart app user does not login automatically. #421

Open asheesh5391 opened 5 years ago

asheesh5391 commented 5 years ago

Previous AppAuth version 0.9.0 working as expected.

Current AppAuth version 1.0.0 facing logout issue:

Case 1: Below iOS 11

its working fine as expected.

Case 2: iOS 11 and above facing logout issue

Step 1. User logins Step 2. User restarts app Step 3. User open login again and see login page without automatically redirect.

But if omit Step 2 (without restart app), then user login automatically.

NOTE: We are using SFSafariViewController to logout by passing logout URL.

WilliamDenniss commented 5 years ago

I'm a little confused here, the title mentions logout, but I don't see any logout related steps in Case 2.

AppAuth 1.1.0 has native support for Logout, maybe you should try that? My guess is you're using a different user-agent for login, and logout and that the cookie state is not consistent.

agiokas commented 4 years ago

@asheesh5391

I'm facing the same issue. Were you able to find a solution for this?

Previous AppAuth version 0.9.0 working as expected.

Current AppAuth version 1.0.0 facing logout issue:

Case 1: Below iOS 11

its working fine as expected.

Case 2: iOS 11 and above facing logout issue

Step 1. User logins Step 2. User restarts app Step 3. User open login again and see login page without automatically redirect.

But if omit Step 2 (without restart app), then user login automatically.

NOTE: We are using SFSafariViewController to logout by passing logout URL.