Post

Replies

Boosts

Views

Activity

Reply to Clean OAuth2 token in swift
EDIT2: I've tried appDelegate.oauth2?.forgetClient() appDelegate.oauth2 = OAuth2CodeGrant(settings: OAuthParams ) appDelegate.oauth2!.authConfig.authorizeContext = KronosWebsite?.window//KronosWebsite the WKWebview runOauth()` and in the console I've this now [Debug] OAuth2: Forgetting client credentials and removing them from keychain [Warn!] OAuth2: Failed to delete credentials from keychain: Error Domain=swift.keychain.error Code=-25300 "(null)"
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’22
Reply to Wait in Appdelegate::application end of a callback method from Viewcontroller to end
I've a solution by deporting the call of the URL which logs the user (with the Oauth token stored in keychain) from viewDidAppear to viewDidLoad
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Clean OAuth2 token in swift
I've solved this issue, I just had to clean cookies for the SFSafariViewController (I've done that in PHP)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Clean OAuth2 token in swift
I've tried to empty keychain but maybe I need to access data stored with accounts keychainAccountForClientCredentials and keychainAccountForTokens, is this possible and how?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Clean OAuth2 token in swift
EDIT2: I've tried appDelegate.oauth2?.forgetClient() appDelegate.oauth2 = OAuth2CodeGrant(settings: OAuthParams ) appDelegate.oauth2!.authConfig.authorizeContext = KronosWebsite?.window//KronosWebsite the WKWebview runOauth()` and in the console I've this now [Debug] OAuth2: Forgetting client credentials and removing them from keychain [Warn!] OAuth2: Failed to delete credentials from keychain: Error Domain=swift.keychain.error Code=-25300 "(null)"
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Clean OAuth2 token in swift
EDIT: In fact the first logoff woks well but if I relog I can not sign off anymore and I have that line in the console when it fail [Debug] OAuth2: Did exchange code for access [true] and refresh [true] tokens
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Creating jwt after signing with apple
maybe this issue is the call to hash_hmac, I have a key like this: $pem_content = " -----BEGIN PRIVATE KEY----- XXXX -----END PRIVATE KEY-----"; but I don't know how to use it as the 3rd parameter of hash_hmac
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’21