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

Implement session token exchange flow #70

Merged
merged 5 commits into from
Jun 30, 2022

Conversation

mikenachbaur-okta
Copy link
Contributor

No description provided.

import AuthFoundation

/// An authentication flow class that exchanges a Session Token for access tokens.
public class SessionTokenFlow: AuthenticationFlow {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't looked closely at many of these, but should this be final? I think final is a good default for classes, and it should be explicitly designed to be extended if it's not marked final.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't been marking the classes as final since some of them required subclassing to override behaviours in tests. You bring up a good point though, since after auditing my code, it doesn't appear I need to do that anymore.

@mikenachbaur-okta mikenachbaur-okta merged commit 20f94c0 into master Jun 30, 2022
@mikenachbaur-okta mikenachbaur-okta deleted the man-OKTA-509682-SessionTokenFlow branch June 30, 2022 17:07
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.

None yet

3 participants