-
Notifications
You must be signed in to change notification settings - Fork 773
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
Making the FlowSessions and UICoordinators generic #196
Conversation
4e29b98
to
67c291a
Compare
This looks good, nice work! Can we settle on a different naming convention though? I find "UserAgentUI" and "UserAgentFlowSession" slightly odd. How about we go with "external user-agent" names to match the RFC 8252 terminology. So that would mean:
|
Codecov Report
@@ Coverage Diff @@
## master #196 +/- ##
==========================================
+ Coverage 66.51% 67.04% +0.53%
==========================================
Files 41 41
Lines 3993 4003 +10
Branches 73 73
==========================================
+ Hits 2656 2684 +28
+ Misses 1335 1317 -18
Partials 2 2
Continue to review full report at Codecov.
|
e572a99
to
f9fdd58
Compare
Good point! I've renamed the classes, methods, and docs to use the external terminology! |
Code itself looks good, but all of the examples are broken with this PR currently. The reason is that they use the Thinking more broadly than the examples, literally everyone will be impacted by this change. To avoid that, I think we should do the following: Keep the old OIDAuthorizationService.m will need to be updated too like so:
That way we can avoid most impact of these changes. |
Very good idea @WilliamDenniss . I've just finish implementing it and it works in the iOS example project. I'm making sure it won't break the other ones, and I'll update the PR and rebase it to resolve these conflicts. edit: it still broke the Mac version. I've decided to keep the flow session property with the old name edit2: awesome work on the custom browser!! I hope you don't mind I've renamed it to match the naming convention of the other classes in this PR |
4ce37de
to
c8c6864
Compare
Source/OIDAuthorizationService.m
Outdated
@@ -171,6 +171,14 @@ - (void)didFinishWithResponse:(nullable OIDAuthorizationResponse *)response | |||
} | |||
} | |||
|
|||
- (void)failAuthorizationFlowWithError:(NSError *)error { | |||
[self failAuthorizationFlowWithError:error]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is calling itself right now, causing an infinite loop. It should call the new [self failExternalUserAgentFlowWithError:error]
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WilliamDenniss @luksfarris Please let us know if this will be reviewed and merged. Also can you confirm on the invoking user agent flow for RP Initiated logout - #191 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dgommers I had missed that. Just fixed and rebased
@jaishankar I'll reply your comment on issue #191 soon
…ed for more than just authorization purposes. Relates to issue openid#195
6254430
to
c3cf1c7
Compare
LGTM. I kept your commit, but applied some additional refactoring on the names (dropping the "UICoordinator" since it's a bit superfluous). Merged as part of #212. |
Awesome! Thank you! |
So they can be used for more than just authorization purposes. Relates to issue #195