get_authentication_policy


Description:

public abstract OAuth2ServiceNavigationPolicy get_authentication_policy (Source source, string uri)

Used to decide what to do when the server redirects to the next page.

The default implementation always returns ALLOW .

This method is called before extract_authorization_code and can be used to block certain resources or to abort the authentication when the server redirects to an unexpected page (like when user denies authorization in the page).

Parameters:

this

an OAuth2Service

source

an associated Source

uri

a URI of the navigation resource

Returns:

one of OAuth2ServiceNavigationPolicy