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

feat: Added functionality to sync and update the disabled status for a user #9

Merged
merged 11 commits into from
Jul 29, 2020

Conversation

jverhoeks
Copy link
Contributor

*Issue #8

Description of changes:

This PR add the functionality to synchronise the Active/Disabled State for a user between Gsuite and AWS SSO.
It contains added logic and a new function UpdateUser.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jverhoeks jverhoeks changed the title Added functionality to sync and update the disabled status for a user feat: Added functionality to sync and update the disabled status for a user Jul 28, 2020
Copy link
Contributor

@katallaxie katallaxie left a comment

Choose a reason for hiding this comment

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

👍 this is really great work. Left some suggestions. Ping me if you feel ready for the next round and then get this merged.

internal/aws/client.go Outdated Show resolved Hide resolved
internal/aws/client.go Outdated Show resolved Hide resolved
internal/aws/client.go Outdated Show resolved Hide resolved
internal/aws/client.go Outdated Show resolved Hide resolved
@@ -54,6 +54,7 @@ type Client interface {
FindGroupByDisplayName(string) (*Group, error)
FindUserByEmail(string) (*User, error)
IsUserInGroup(*User, *Group) (bool, error)
UpdateUser(*User) (*User, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to not use references here, but return the values.

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 copied the logic from the other functions. I kept the pointer in the function declaration but changed all functions to return values instead of named return values and referencs

internal/sync.go Show resolved Hide resolved
internal/sync.go Outdated Show resolved Hide resolved
Copy link
Contributor

@katallaxie katallaxie left a comment

Choose a reason for hiding this comment

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

👍

@katallaxie katallaxie merged commit 6a62ff8 into awslabs:master Jul 29, 2020
dancorne pushed a commit to fac/ssosync that referenced this pull request Nov 6, 2023
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.

2 participants