swagger-api / swagger-api/swagger-codegen

NSURLSession HTTP Load Failed with unsecured Domain

Open
#6,979 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Swift General: Question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.