public async Task <string> GetAccessTokenForAuthClient() { string accessToken = await this.GetAccessToken(new HttpRequestMessage { Content = new FormUrlEncodedContent( FunctionalTestHelpers.GetAccessTokenKeyValuePair( FunctionalTestConstants.IdentityTestUser, _funcTestClientSecret, "client_credentials", "fabric/authorization.read fabric/authorization.write")) }).ConfigureAwait(false); return(accessToken); }
public async Task <string> GetAccessTokenForInstaller() { string accessToken = await this.GetAccessToken(new HttpRequestMessage { Content = new FormUrlEncodedContent( FunctionalTestHelpers.GetAccessTokenKeyValuePair( "fabric-installer", this.args.InstallerClientSecret, "client_credentials", "fabric/identity.manageresources fabric/authorization.read fabric/authorization.write fabric/authorization.manageclients")) }).ConfigureAwait(false); return(accessToken); }