Questions tagged [urlauthenticationchallenges]
7 questions
6
votes
0 answers
Unit testing for URLSessionDelegate method - Swift
I have a custom delegate class called CertificatePinningDelegate which conforms to URLSessionDelegate. I'm using the delegate method
urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping…

Shifat Rahman
- 61
- 2
4
votes
2 answers
Trying to understand URLSession Authentication challenges
I am attempting to download a PDF from a URL.
private func downloadSessionWithFileURL(_ url: URL){
var request = URLRequest(url: url)
request.addValue("gzip, deflate", forHTTPHeaderField: "Accept-Encoding")
let sessionConfig =…

RyanTCB
- 7,400
- 5
- 42
- 62
2
votes
2 answers
How to implement iOS Mutual authentication between client and server?
In one of my application i'm trying to implement certificate Mutual authentication between client and server for my iOS app using URLSession. I was able to extract the identityRef and trust and certificate chain and in didReceivechallenge method i'm…

Madhu
- 869
- 1
- 17
- 37
0
votes
1 answer
Using multiple JWT Scheme in ASP.NET core
I wonder how ASP.NET core behaves when there are multiple JWT schemes in project.
Does it challenges all the schemes ? If yes how can I get the scheme name (in my controller function) in where the challenge was successful ?
user17686011
0
votes
0 answers
how to use .antMatchers("/").not() method in spring security, and i am using spring MVC
I wanted to permit 100 url's if the user do not have the given permission and also want to restrict him only to a single page, how can i do it using spring security, or can someone help me with antMatchers() to proceed with my requirement, thank you…

shashank
- 11
- 7
0
votes
1 answer
URL Authentication Not Working on Apcahe2.4 version with Amazon Linux AMI
Apache 2.4 Version configuration file is enabled with "mod_rewrite" module.
LoadModule rewrite_module modules/mod_rewrite.so
Authentication Modules Loaded and shared the output for the command : apachectl -M | grep 'auth'
auth_basic_module…

Marikkannan
- 1
- 2
0
votes
1 answer
How to check if WKWebView URLAuthenticationChallenge is failed or succeeded?
I am using WKWebView to open a url but before that it authenticates the user. It is working fine when we input the correct credentials but in case of wrong credentials, I am unable to find any delegate or function that can detect the failure.
Code: …

Bmacin
- 235
- 1
- 12