Skip to content

[C#] Added ApiClient (Pluggable) and authentication (API key and HTTP basic auth) #808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 5, 2015

Conversation

wing328
Copy link
Contributor

@wing328 wing328 commented May 29, 2015

  • Added pluggable ApiClient
  • Added configuration for authentication and API client
  • Added authentication for api key and http basic auth

Tested with AddPet, UpdatePetWithForm, GetPetById, UploadFile and no issues found.

@wing328
Copy link
Contributor Author

wing328 commented May 29, 2015

@boazsapir If I remember correctly, you used the add default parameter method for authentication-related setting in C#. This PR will add the authentication via a Configuration object as follows:

Configuration.api_key["auth_name"] = "your_api_key";

Also please note that this PR will change the methods for default headers from static to non-static.

Hope this helps.

@wing328 wing328 mentioned this pull request May 30, 2015
@wing328
Copy link
Contributor Author

wing328 commented Jun 3, 2015

Fixed and tested. Please give it another try.

@lakeba
Copy link

lakeba commented Jun 4, 2015

Perfect.

fehguy added a commit that referenced this pull request Jun 5, 2015
[C#] Added ApiClient (Pluggable) and authentication (API key and HTTP basic auth)
@fehguy fehguy merged commit 26d9215 into swagger-api:develop_2.0 Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants