Skip to content

Implement RP-initiated logout #132

Description

@zachmargolis

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:

+ (id<OIDAuthorizationFlowSession>)
    presentAuthorizationRequest:(OIDLogoutRequest *)request
       presentingViewController:(UIViewController *)presentingViewController
                       callback:(OIDAuthorizationCallback)callback;

and add the necessary OIDLogoutRequest and such as needed, and expand OIDAuthorizationFlowSession to check for logout URLs to continue with as well as authorize URLs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions