siri
March 29, 2019, 7:13pm
1
Hi There,
Question: Is there any way to configure the Auth0 alert message when clearing a session.
When Auth0’s clear session method is called a permission alert is displayed which says
Current Behaviour: “SampleApp” Wants to Use “sampleserver.com ” to Sign In
Expected Behaviour: “SampleApp” Wants to Use “sampleserver.com ” to Sign Out
Is there any way we can configure the message or avoid showing this alert.
Platform : iOS
Auth0 SDK: 1.14
Xcode Version: 10.1
iOS Version: 12.1
Best Regards,
Srilatha
Hey there @siri !
Not 100% sure about it but let me research it and get back to you once I have something to share!
Hey again!
It seems like our docs doesn’t provide any info whether it’s possible to customise that message:
https://auth0.com/docs/quickstart/native/ios-swift/03-user-sessions
Let me play a bit more with credentialsManager
class and see if you can somehow manipulate it’s properties to achieve that!
Hey there!
I checked CredentialsManager
class:
// swiftlint:disable file_length
import Foundation
import SimpleKeychain
import JWTDecode
#if WEB_AUTH_PLATFORM
import LocalAuthentication
#endif
#if canImport(Combine)
import Combine
#endif
/// Credentials management utility for securely storing and retrieving the user's credentials from the Keychain.
///
/// - Warning: The Credentials Manager is not thread-safe, except for the
/// ``CredentialsManager/credentials(withScope:minTTL:parameters:headers:callback:)`` method. Do not call its non
/// thread-safe methods and properties from different threads without proper synchronization.
///
/// ## See Also
///
This file has been truncated. show original
Credentials
class:
and CredentialsManagerSpec
class:
import Combine
import Quick
import Nimble
import SimpleKeychain
import OHHTTPStubs
#if SWIFT_PACKAGE
import OHHTTPStubsSwift
#endif
#if WEB_AUTH_PLATFORM
import LocalAuthentication
#endif
@testable import Auth0
private let AccessToken = UUID().uuidString.replacingOccurrences(of: "-", with: "")
private let NewAccessToken = UUID().uuidString.replacingOccurrences(of: "-", with: "")
private let TokenType = "bearer"
private let IdToken = UUID().uuidString.replacingOccurrences(of: "-", with: "")
private let NewIdToken = UUID().uuidString.replacingOccurrences(of: "-", with: "")
private let RefreshToken = UUID().uuidString.replacingOccurrences(of: "-", with: "")
This file has been truncated. show original
and there’s no way you can change the info message there. I also went through all other classed available in the SDK. It seems like there is no way to configure that message, unfortunately.
system
Closed
May 10, 2019, 1:29pm
6
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.