8000 GitHub - grroma/FreeIpaClient: Client web api for FreeIPA
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

grroma/FreeIpaClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeIpaClient

The client implements interaction with the API of the FreeIPA server.

dotnet add package FreeIpaClient --version 6.0.0

DI registration

For the FreeIpaClient's work, input parameters are required: HttpClient() and FreeIpaConfig()

Register DI in Startup.cs. For example:

 public void ConfigureServices(IServiceCollection services)
{
  // ...
    services.AddScoped<IFreeIpaApiClient, FreeIpaApiClient>(options => 
        new FreeIpaApiClient(new HttpClient(), new FreeIpaConfig
        {
            Host = new Uri("https://ipa.demo1.freeipa.org/ipa/"),
            User = "admin",
            Password = "Secret123",
            ApiVersion = "2.251"
        }));
   // ...            

Options example

{
  "FreeIPA": {
    "Host": "https://ipa.demo1.freeipa.org/ipa/",
    "User": "admin",
    "Password": "Secret123"
  }
}

Implements methods:

FreeIPA API navigator (maybe you need authorization : admin / Secret123)

- ping
- user_find
- user_add
- user_mod
- stageuser_find
- stageuser_add
- stageuser_mod
- passwd
- user_show
- user_disable
- user_enable
- user_del
- user_undel
- stageuser_del
- stageuser_activate

Tests

You can run tests to verify that your application is working correctly. To do this, edit the file testsettings.json

About

Client web api for FreeIPA

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0