Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
352 stars 108 forks source link

Sign out? #138

Open kentcb opened 4 years ago

kentcb commented 4 years ago

Hi,

Is sign out not supported when using full browser? I can't see any code hitting the endsession endpoint. I've been trying to find a way to "hack" this in by overriding logOut in my OAuthApi, but it's turning out to be far from trivial. Best I can tell, I'd need to:

  1. Construct the endsession URI
  2. Somehow trigger this URI to open in the browser (hoping I can use the same mechanism that opens the authorize endpoint in the browser, but not sure how flexible the code is yet)
  3. Hope that I can redirect back to the same redirect URI and have SimpleAuthCallbackActivity pick it up and just work, but doubting that