Esri's documentation indicates that an implementation of OAuthAuthorizeHandler is available in the toolkit (below). I'm having trouble locating it. Has it been removed or am I being stupid? Also, is there a canonical example of how to implement such an object? I'm particularly interested in any nuances around handling token timeouts. A number of the online samples show slightly different implementations. For example these two help topic show some differences in the implementation:
ServerInfo Class
and
IOAuthAuthorizeHandler Interface
public Esri.ArcGISRuntime.Security.IOAuthAuthorizeHandler OAuthAuthorizeHandler { get; set; }
Member of Esri.ArcGISRuntime.Security.AuthenticationManager
Summary:
Gets or sets the component sets the component that handles authorization by a resource owner in an oauth workflow.
Remarks:
The ArcGISRuntime SDK doesn't provide any default OAuthAuthorizeHandler implementation but the ArcGIS Runtime Toolkit for .NET provides such a component.
This toolkit component can be set by code like: AuthenticationManager.Current.OAuthAuthorizeHandler = new Esri.ArcGISRuntime.Toolkit.Security.OAuthAuthorizeHandler();