> @@ -101,10 +101,20 @@ protected void bindErrorHandlers() {
>        return 
> MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.create(authException,
>                compose(new Function<Credentials, String>() {
>                   public String apply(Credentials in) {
> -                    checkState(in.identity.indexOf("@") != 1,
> -                            "identity should be in 
> project...@developer.gserviceaccount.com format");
> -
> -                    Project project = 
> api.getProjectApi().get(Iterables.get(Splitter.on("@").split(in.identity), 
> 0));
> +                    // ID should be of the form 
> project...@developer.gserviceaccount.com 
> +                    // OR (increasingly often) 
> project_id-extended_...@developer.gserviceaccount.com
> +                    // where project_id is the NUMBER;
> +                    // HERE we also accept simply "project" as the identity, 
> if no "@" is present;
> +                    // this is used in tests, but not sure if it is valid in 
> the wild.

> Plus (if I were Google) it would make sense not to require the @... !  Thx.

Does anyone know if it's possible to log in to a Google Cloud console with just 
`123845678986` if your ID is 
[`123845678...@project.gserviceaccount.com`](https://developers.google.com/compute/docs/authentication)

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/9/files#r7535089

Reply via email to