swagger-api / swagger-api/swagger-codegen
NSURLSession HTTP Load Failed with unsecured Domain
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I am using swagger for api request response in swift.But whenever I called with unsecure domain,api fails. ex api "https://192.168.0.151:8081/api/events" .. I think I have to get URLCredential ,but how?
I am using 3.0.5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the generated Swift client request from the issue against the example URL and inspect how the client handles the untrusted or unsecured domain. Determine whether the failure is caused by TLS validation or generated-client behavior; done means identifying a supported configuration or documenting that this domain cannot be used safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100