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

Extract images and team domain from identity only auth #33

Merged
merged 1 commit into from
Nov 23, 2019
Merged

Extract images and team domain from identity only auth #33

merged 1 commit into from
Nov 23, 2019

Conversation

ibash
Copy link
Contributor

@ibash ibash commented Jul 28, 2019

When using sign in with slack the team domain and image urls are provided. This pulls them out into info and credentials.

Copy link
Member

@taj taj left a comment

Choose a reason for hiding this comment

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

Looks good to me.
I'll leave it open to give @ueberauth/developers a chance to look at it.

@ueberauth/developers do we bump versions in this case?

@ibash
Copy link
Contributor Author

ibash commented Jul 29, 2019

@tajchumber I'm still fairly new to elixir, are my changes idiomatic?

@taj
Copy link
Member

taj commented Jul 30, 2019

@ibash don't worry about it :)
the PR looks good!

Copy link
Member

@doomspork doomspork left a comment

Choose a reason for hiding this comment

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

Thank you for getting involved @ibash and submitting these improvements, some quick feedback 🎉

lib/ueberauth/strategy/slack.ex Outdated Show resolved Hide resolved
lib/ueberauth/strategy/slack.ex Outdated Show resolved Hide resolved
Copy link
Contributor

@Hanspagh Hanspagh left a comment

Choose a reason for hiding this comment

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

Overall looks very good, I have one change request and one question.

For now the code looks either in the user or identity to find image_urls and team_image_urls, I am not fully into the slack API, but would it be possible that some image_urls would be in the user and some other image_urls would be in the identity and with this solution we would only parse some of them?

lib/ueberauth/strategy/slack.ex Outdated Show resolved Hide resolved
@ibash
Copy link
Contributor Author

ibash commented Jul 30, 2019

@Hanspagh I don't think so, because the identity object comes when using the "sign in with slack" api, vs user comes from "add to slack" api.

When using sign in with slack the team domain and image urls are
provided. This pulls them out into info and credentials.
@ibash
Copy link
Contributor Author

ibash commented Jul 30, 2019

@Hanspagh @doomspork updated!

@Hanspagh
Copy link
Contributor

Looks good to me @doomspork ?

@doomspork doomspork merged commit 2643ca3 into ueberauth:master Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants