public async Task <TokenResponseModel> Login(string adminUser, string adminPassword) { var token = await GetToken(new TokenRequestModel() { ClientId = "coredocker.api", ClientSecret = "super_secure_password", UserName = adminUser, Password = adminPassword }); CoreDockerClient.SetToken(token); return(token); }
protected BaseCrudApiClient(CoreDockerClient dockerClient, string baseUrl) : base(dockerClient, baseUrl) { }
public AuthenticateApiClient(CoreDockerClient coreDockerClient) : base(coreDockerClient, "connect") { _coreDockerClient = coreDockerClient; }
public UserApiClient(CoreDockerClient dockerClient) : base(dockerClient, RouteHelper.UserController) { }
public PingApiClient(CoreDockerClient coreDockerClient) : base(coreDockerClient, RouteHelper.PingController) { }
public ProjectApiClient(CoreDockerClient dockerClient) : base(dockerClient, RouteHelper.ProjectController) { }
public BaseGetApiClient(CoreDockerClient dockerClient, string baseUrl) : base(dockerClient, baseUrl) { }
protected BaseApiClient(CoreDockerClient coreDockerClient, string baseUrl) { CoreDockerClient = coreDockerClient; _baseUrl = baseUrl; }