public OAuthPasswordApi(string identifier, string clientId, string clientSecret, string serverUrl, string tokenUrl, string refreshUrl) : base(identifier, clientId, clientSecret, tokenUrl, refreshUrl) { BaseAddress = new Uri(serverUrl); Scopes = new [] { "null" }; CurrentShowAuthenticator = (WebAuthenticator obj) => { var auth = obj as IBasicAuthenicator; if (auth != null) { BasicAuthApi.ShowAuthenticator(auth); } }; }