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

Complete account linking in authflow #4159

Merged
merged 30 commits into from Apr 26, 2024

Conversation

tung2744
Copy link
Contributor

@tung2744 tung2744 commented Apr 23, 2024

ref #4134 #4146
ref DEV-1223 DEV-1231

@tung2744 tung2744 changed the base branch from main to account-linking April 23, 2024 06:53
@tung2744 tung2744 changed the title [WIP] Complete account linking in authflow Complete account linking in authflow Apr 23, 2024
@tung2744
Copy link
Contributor Author

Ready for review,
Also addressed comments in #4149

@@ -74,7 +74,7 @@ func (i *IntentSignupFlowStepIdentify) GetVerifiableClaims(_ context.Context, _
return nil, nil
}

m, ok := authflow.FindMilestoneInCurrentFlow[MilestoneDoCreateIdentity](flows.Nearest)
m, ok := authflow.FindFirstMilestone[MilestoneDoCreateIdentity](flows.Nearest)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems using milestone with nested steps could easily cause bugs, I am thinking about should we redefine milestone as "node / intent created by this intent". i.e. We always search in flows.Nearest only.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure. I think we need to review the existing usage of milestone, and classify each usage into different groups. If we only have a group ("node / intent created by this intent"), then we can change the behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@louischan-oursky louischan-oursky merged commit df8cd2e into authgear:account-linking Apr 26, 2024
7 checks passed
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

2 participants