コード例 #1
0
        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);
        }
コード例 #2
0
 protected BaseCrudApiClient(CoreDockerClient dockerClient, string baseUrl)
     : base(dockerClient, baseUrl)
 {
 }
コード例 #3
0
 public AuthenticateApiClient(CoreDockerClient coreDockerClient) : base(coreDockerClient, "connect")
 {
     _coreDockerClient = coreDockerClient;
 }
コード例 #4
0
 public UserApiClient(CoreDockerClient dockerClient)
     : base(dockerClient, RouteHelper.UserController)
 {
 }
コード例 #5
0
 public PingApiClient(CoreDockerClient coreDockerClient) : base(coreDockerClient, RouteHelper.PingController)
 {
 }
コード例 #6
0
ファイル: ProjectApiClient.cs プロジェクト: jacodv/CoreDocker
 public ProjectApiClient(CoreDockerClient dockerClient)
     : base(dockerClient, RouteHelper.ProjectController)
 {
 }
コード例 #7
0
 public BaseGetApiClient(CoreDockerClient dockerClient, string baseUrl)
     : base(dockerClient, baseUrl)
 {
 }
コード例 #8
0
 protected BaseApiClient(CoreDockerClient coreDockerClient, string baseUrl)
 {
     CoreDockerClient = coreDockerClient;
     _baseUrl         = baseUrl;
 }