Skip to main content

OAuth2.PostLogoutRedirect

Class OAuth2.PostLogoutRedirect Extends %CSP.Page [ Final, System = 4 ]

This is the landing page for post-logout redirects from an OpenID Connect Provider used from InterSystems IRIS OAuth 2.0 client code. The redirect is processed here and then redirected to the eventual target. This class SHOULD NOT be used as the redirectURL passed into %SYS.OAuth2.Authorization:GetLogoutEndpoint(). This class simply does some processing before redirecting to that provided redirectURL. This class is used internally by InterSystems IRIS. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.

Parameters

UseSession

Parameter UseSession = 0;

CSPURL

Parameter CSPURL = "/csp/sys/oauth2/OAuth2.PostLogoutRedirect.cls";

Methods

OnPage

ClassMethod OnPage() As %Status [ Internal ]

Should never get here. The work is done in OnPreHttp and then redirect back to real target. If we got here, it means there was an error with the redirect.

OnPreHTTP

ClassMethod OnPreHTTP() As %Boolean [ Internal ]

Event handler for PreHTTP event: this is invoked before the HTTP headers for a CSP page have been sent.

HandleOptions

ClassMethod HandleOptions() As %Boolean

HandleRequest

ClassMethod HandleRequest() As %Boolean

RegisterLogout

ClassMethod RegisterLogout(state As %String) As %String [ Private ]

FinishLogout

ClassMethod FinishLogout(state As %String) [ Private ]

GetPostLogoutRedirectURL

ClassMethod GetPostLogoutRedirectURL(client As OAuth2.Client) As %String [ Internal ]

Get the URL without location to be used as the post logout redirect URL for logout requests.