Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make AuthSession final and add a delegate protocol to intercept and provide custom errors #224

Merged
merged 17 commits into from
Mar 30, 2023

Conversation

mdmathias
Copy link
Collaborator

This change is motivated by the fact that Swift classes (even @objc and NSObject subclasses) cannot themselves be subclassed in Objective-C. Thus, we need to provide some mechanism for GSI-iOS to receive, and potentially modify, errors before they are delivered to the clients. The delegate protocol added here is that solution.

@mdmathias mdmathias added this to the 3.0.0 milestone Jan 19, 2023
@mdmathias mdmathias requested a review from petea January 19, 2023 20:09
GTMAppAuth/Sources/AuthSessionDelegate.swift Outdated Show resolved Hide resolved
GTMAppAuth/Sources/AuthSessionDelegate.swift Outdated Show resolved Hide resolved
GTMAppAuth/Sources/GTMAppAuthExternalError.swift Outdated Show resolved Hide resolved
GTMAppAuth/Sources/GTMAppAuthExternalError.swift Outdated Show resolved Hide resolved
GTMAppAuth/Sources/AuthSession.swift Show resolved Hide resolved
@mdmathias mdmathias merged commit ca86011 into master Mar 30, 2023
@mdmathias mdmathias deleted the mdmathias/no-longer-open branch March 30, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants