Skip to content

Instantly share code, notes, and snippets.

@khadirbaaoua
khadirbaaoua / Podfile
Created May 18, 2020 11:31
Patch to okta-react-native's iOS pod (OktaOidc) so that logout can be functional when logging out from an Okta instance that uses a delegation from another Okta instance
# ....
# declare the usual stuff: platform, target, pods ...
# ....
post_install do |installer|
# DISCLAIMER : THIS IS A WORKAROUND TO FIX AN OKTA LOGOUT ISSUE WHEN OKTA IS USING
# A DELEGATION TO ANOTHER OKTA INSTANCE
file_name = "./Pods/OktaOidc/Okta/OktaOidc/OIDAuthorizationService+EndSession.m"
puts "### /!\\ OKTA LOGOUT DIRTY FIX /!\\ ###"
puts "replacing matchesRedirectonURL function in #{file_name}"
text = File.read(file_name)