Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROTOTYPE: Auth separation #2405

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

// ExponentialBackOffInitializer could be internal to Google.Apis.Auth (with code duplication).
// We add it to the AuthorizationCodeFlow and ServiceCredential, but we don't expose it.
// ExponentialBackOffPolicy is exposed via the DefaultExponentialBackOffPolicy propert in AuthorizationCodeFlow and ExternalAccountCredential.

namespace Google.Apis.Http
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ You may obtain a copy of the License at
limitations under the License.
*/

// Note: the only reference to this is in ServiceAccountCredential. If we throw a different exception,
// e.g. InvalidOperationException, we could remove GoogleApiException, SingleError and RequestError.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With some of the initiatives around making errors more actionable I'd still expect things to move in the direction of using specific exception types with structured error messages, even for auth endpoints.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. We should work out what to do on that front then; but it's worth at least being aware that this is the only current usage.


using System;
using System.Net;

Expand Down