Add DescopeFlowHook for customizing how flow pages look and behave #81
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issues
Resolves https://github.com/descope/etc/issues/8778
Resolves https://github.com/descope/etc/issues/8541
Description
DescopeFlowHook
class for customizing how flow pages look and behave, together with some built-in hooks to support most common use cases. See the documentation for more details and examples.DescopeFlowHook
extension and give them descriptive names:DescopeFlow
objects with a plainString
value instead of having to use!
onURL
's optional initializer.Minor changes
DescopeFlowCoordinator
class is now available when building for macOS.DescopeFlowViewController
class is nowopen
for subclassing, and thecreateFlowView
method can be overridden in subclasses to use a customDescopeFlowView
instance (consider using the newDescopeFlowHook
feature instead of inheritance when possible).enable*
hooks.Breaking changes
DescopeFlowView
class theprepareConfiguration
andprepareWebView
have been renamed (consider using the newDescopeFlowHook
feature instead of inheritance when possible):prepareConfiguration
->willCreateWebView
prepareWebView
->didCreateWebView
DescopeFlowViewDelegate
protocol the failure and success methods have been renamed to be consistent with the other delegates:flowViewDidFailAuthentication
->flowViewDidFail
flowViewDidFinishAuthentication
->flowViewDidFinish
Must