You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be which could put your confidential information at risk.
#828
Open
KSGuptha opened this issue
Mar 11, 2024
· 1 comment
Describe the bug
The certificate for this server is invalid. You might be connecting to a server that is pretending to be which could put your confidential information at risk.
Server does not have fully trusted SSL. How to bypass or ignore ssl error for AppAUth sdk in SwiftUI.
I have tried this
OIDURLSessionProvider.setSession(URLSession(configuration: .default, delegate: self, delegateQueue: nil))
but receiving
Token exchange error: Issued at time is more than 600 seconds before or after the current time
How to resolve this issue?
Code
OIDAuthorizationService.perform(tokenExchangeRequest) { [self] response, error in
if let tokenResponse = response {
print("Received token response with accessToken: (tokenResponse.accessToken ?? "DEFAULT_TOKEN")")
} else {
print("Token exchange error: (error?.localizedDescription ?? "DEFAULT_ERROR")")
}
self.authState!.update(with: response, error: error)
}
Expected behavior
AppAuth sdk should bypass or ignore SSL issue in iOS SwiftUI and should receive access token.
Environment
Device: [ e.g. iPhone 13,etc ]
The text was updated successfully, but these errors were encountered:
AppAuth sdk should bypass or ignore SSL issue in iOS SwiftUI and should receive access token.
I am not sure if we agree with this statement. AppAuth relies on TLS protected channels (source) - we would recommend making sure the server you are using has a valid SSL certificate.
Describe the bug
The certificate for this server is invalid. You might be connecting to a server that is pretending to be which could put your confidential information at risk.
Server does not have fully trusted SSL. How to bypass or ignore ssl error for AppAUth sdk in SwiftUI.
I have tried this
OIDURLSessionProvider.setSession(URLSession(configuration: .default, delegate: self, delegateQueue: nil))
but receiving
Token exchange error: Issued at time is more than 600 seconds before or after the current time
How to resolve this issue?
Code
OIDAuthorizationService.perform(tokenExchangeRequest) { [self] response, error in
if let tokenResponse = response {
print("Received token response with accessToken: (tokenResponse.accessToken ?? "DEFAULT_TOKEN")")
} else {
print("Token exchange error: (error?.localizedDescription ?? "DEFAULT_ERROR")")
}
self.authState!.update(with: response, error: error)
}
Expected behavior
AppAuth sdk should bypass or ignore SSL issue in iOS SwiftUI and should receive access token.
Environment
The text was updated successfully, but these errors were encountered: