> +        assertNotNull(token, "no token when authorizing password based 
> credential");
> +    }
> +
> +    /** OAuth isn't registered as a provider intentionally, so we fake one. 
> */
> +    @Override protected ProviderMetadata createProviderMetadata() {
> +        return forApiOnEndpoint(AuthorizationApi.class, 
> endpoint).toBuilder().id("oauth").build();
> +    }
> +
> +    @Override protected Properties setupProperties() {
> +        Properties props = super.setupProperties();
> +        props.put(CREDENTIAL_TYPE, 
> CredentialType.CLIENT_CREDENTIALS_SECRET.toString());
> +        resource = "https://management.azure.com/";;
> +        props.put(RESOURCE, resource);
> +        endpoint = checkNotNull(setIfTestSystemPropertyPresent(props, 
> OAuthProperties.AZURE_ENDPOINT), OAuthProperties.AZURE_ENDPOINT);
> +        identity = checkNotNull(setIfTestSystemPropertyPresent(props, 
> OAuthProperties.AZURE_IDENTITY), OAuthProperties.AZURE_IDENTITY);
> +        credential = checkNotNull(setIfTestSystemPropertyPresent(props, 
> OAuthProperties.AZURE_CREDENTIAL), OAuthProperties.AZURE_CREDENTIAL);

Change these properties to use the jclouds default ones.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/941/files/f375a9fa56cf71f32d857e40f5b93b3e2ef9e9b2#r57816187

Reply via email to