Questions tagged [authenticationchallenge]

14 questions
3
votes
3 answers

Authorization Code Flow with PKCE in Angular with angular-oauth2-oidc

I want to use the code flow with PKCE in my Angular SPA and for convenience I use this library: angular-oauth2-oidc If you click on the link, it says that with this configuration you will use the code flow with PKCE: let authConfig: AuthConfig = { …
0
votes
0 answers

chrome content_shell : stuck in cloudflare challenge

I am studying web browser using chromium content_shell in Linux. I got chromium open source code and build it. I know content_shell is for layout…
0
votes
0 answers

Unable to redirect uri after cas authentication with WSO2 provider using asp.net core authorization

[enter image description here][1]I am trying to authenticate my .net core application using cas with Wso2 identity provider although the autentication is succesful but on redirect uri i am getting webpage not found error with cas ticket not able to…
0
votes
0 answers

HttpRequest.GetOwinContext Authentication Challenge Forces Redirect to Login

It appears that whenever this code executes, it forces a redirect of the user to the login page: request.GetOwinContext().Authentication.Challenge("OpenIdConnect"); I have tried adding this line before it based on some comments I saw in another…
0
votes
1 answer

Windows Authentication - Postman (HttpContext Name is Null)

My question is similar to Postman Windows Authentication (NTLM) not working but there are no answers to it so far. I have used a .NetCore rest api (netcoreapp3.1). In launchsettings.json { "iisSettings": { "windowsAuthentication": true, …
0
votes
0 answers

Do authentication challenge NSURLAuthenticationMethodClientCertificate with crt and pem

I need to implement authentication challenge on iOS 14, I was given a crt and a private key in form of a pem file. I do know how to create a SecKey and SecCertificate out of it, but for the challenge I need an SecIdentity: public init(identity:…
swalkner
  • 16,679
  • 31
  • 123
  • 210
0
votes
1 answer

iOS: trigger NSURLErrorServerCertificateUntrusted instead of NSURLErrorCancelled when failing the AuthenticationChallenge

I'm handling the server trust authentication challenge in a custom way (comparing the public key from the server trust with a hashed local version) through the urlSessionDelegate, similarly to how it is done here: How do I accept a self-signed SSL…
agirault
  • 2,509
  • 20
  • 24
0
votes
1 answer

IOS: Difference between proposedCredentials and URLCredential for trust

In URLSession:task:didReceiveChallenge:completionHandler:, is there a difference between using .proposedCredential vs URLCredential(trust:) of the server trust object in the challenge protection space? This is to pass back as the second parameter in…
agirault
  • 2,509
  • 20
  • 24
0
votes
1 answer

Adding an authentication challange logic to my website

I am developing a website using node.js as server. I want to create a challenge based authentication logic. The idea is that the client doesn't send the password to the server, but when he is trying to authenticate to the server, the server sends…
Andrea Fresa
  • 351
  • 2
  • 18
0
votes
1 answer

NSURLSession AuthChallenge repeatedly thrown for Client Certificate

When I connect to an SSO X509 connection that requires client certificate, I provide the credential and it succeeds. Next time the didReceiveChallenge delegate method is hit, auth method is NSURLAuthenticationMethodServerTrust and I have the…
0
votes
0 answers

NSURLSession didReceiveChallenge called for every request

I have gone through this link Why is a HTTPS NSURLSession connection only challenged once per domain? In case of NSURLConnection, didReceiveChallenge was not called for every request. In case of NSURLSession, it is called for every request. How can…
user584263
  • 375
  • 5
  • 18
0
votes
2 answers

Image download - NSURLSession received Authentication Challenge

I'm trying to download simple image from url http://d1vqbpto5tbbz0.cloudfront.net/blog/wp-content/uploads/2014/08/25215844/ios-logo1.png This is simple url access through browser without any login. I have tried with this…
PK86
  • 1,218
  • 2
  • 14
  • 25
0
votes
1 answer

URLSession in Swift 3 - URLAuthenticationChallenge

Below is the snippet for making request. request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.setValue("application/json", forHTTPHeaderField: "Accept") let configurationId = String(format:…
Ankit Thakur
  • 4,739
  • 1
  • 19
  • 35
-1
votes
1 answer

Cancelling NSURLAuthenticationChallenge causes the NSURLConnection to fail with error

I'm using AFNetworking. I've subclassed AFURLConnectionOperation and am using setWillSendRequestForAuthenticationChallengeBlock to override the handling of AuthenticationChallenge. I'm setting the Authorization header in every request and the server…