-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement RP-initiated logout #132
Comments
Yes, this is in scope for the library. Would be happy to review a PR. |
@WilliamDenniss great! Here's a PR adding some of the basic objects needed for serialization: #138 Things get tricky for me when trying to figure out a right way to add on to Which would be preferred?
|
@zachmargolis / @WilliamDenniss , Any update please on this Pullrequest, I am looking for this capability too! |
@jaishankar Hi, thanks for pinging. I am no longer working on an OIDC project so I'm not working to update this PR right now, but please feel free to pick ip #138 and address the feedback if you'd like! |
I created PR #191 based on Zach's suggestion |
I need to implement logout into my application, which is using AppAuth-iOS and an OIDC IdentityServer. I understand building this into AppAuth-iOS has been partially worked on. From reading this and the different PRs-relating to it. Are there any updates on when this might be introduced to the library? Happy to help, although not really that big on Objective-C knowledge (only Swift). Alternatively if it is a while off, does anyone have any ideas of how I would go about implementing this into the app without AppAuth-iOS doing it all for me? Currently, once you login, you are completely unable to logout, even after re-installing the app, due to Safari persisting the data. |
Hi @andrewlord1990 regarding your question:
You just need to check the logout url in the discovery document and call it in the browser passing the correct parameters. Here's an example https://github.com/okta/okta-sdk-appauth-ios/pull/30/files |
@luksfarris Thanks very much, that's awesome! |
Recently our project switched to AppAuth with the outlook on the new logout feature, which we did have in our previous library. Unfortunately, it has been hanging here for quite a while now. Our team has enough time to finish it up next week. However, the current status is not very clear to me. For example, what is pending for further processing of #196? Not sure if it should point directly to master either. @luksfarris and @WilliamDenniss, maybe you could indicate what work items are left so we can finish it for next week? Just trying to unload you and unlock ourselves. |
I've separated the work in 3 pull requests: 1 - PR #191 fixed the previously opened PR (#138) that contained the RP-Initiated logout Request/Response classes. Those were merged to the branch On my personal project I'm just calling the logout url in the browser myself, without going through AppAuth-iOS, so you shouldn't be blocked by this as well if you're under a deadline like I was |
Thanks for all of this information and the effort to get this feature implemented. This will be really useful when I come to implement log out soon! Appreciate it 🙏 |
tl;dr is it OK to submit a PR to add RP-initiated logout to this repo?
Hi there,
For our IDP, we implemented RP-initiated logout (http://openid.net/specs/openid-connect-session-1_0.html#RPLogout). We'd like to encourage our clients to use this library but it doesn't currently support this feature.
As an outline, we could add another method to the
OIDAuthorizationService
like this:and add the necessary
OIDLogoutRequest
and such as needed, and expandOIDAuthorizationFlowSession
to check for logout URLs to continue with as well as authorize URLs.The text was updated successfully, but these errors were encountered: