IOS https authentication

前端 未结 2 833
粉色の甜心
粉色の甜心 2021-02-06 12:29

I want my application to authenticate against appliance i.e passing username and password over https.

I looked at few examples and basically build the following:

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 13:09

    You must use NSURLConnectionDelegate delegate to handle NSURLConnection events.

    For authentication there are two delegates methods:connection:canAuthenticateAgainstProtectionSpace: and connection:didReceiveAuthenticationChallenge:

    See examples in URL Loading System Programming Guide

提交回复
热议问题