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(oidc): add spotify provider #2024

Merged
merged 6 commits into from
Dec 8, 2021
Merged

feat(oidc): add spotify provider #2024

merged 6 commits into from
Dec 8, 2021

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Dec 6, 2021

Related issue(s)

Closes #1985

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security. vulnerability, I
    confirm that I got green light (please contact
    [email protected]) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

@aeneasr aeneasr requested a review from zepatrik as a code owner December 6, 2021 17:04
@aeneasr aeneasr merged commit 0064e35 into master Dec 8, 2021
@aeneasr aeneasr deleted the feature/spotify-oidc branch December 8, 2021 08:00
Copy link

@bradleyess bradleyess left a comment

Choose a reason for hiding this comment

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

👋🏼 sorry for reviving such an old PR here.

Email: user.Email,
Picture: userPicture,
Profile: user.ExternalURLs["spotify"],
Birthdate: user.Birthdate,

Choose a reason for hiding this comment

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

Hey there! I'm looking to make a contribution here in order to get Country from the Spotify API. Would it be simple as adding Country: user.country into the Claims struct here?

My apologies - I'm not familiar with the providers or Go. But I'd love to make my first very simple contribution to Kratos.

Should this change be accepted, what is the average turn-around on a release for a non-breaking change like this making it to Ory Cloud? This is a requirement for a system I am building.

Copy link
Member

Choose a reason for hiding this comment

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

Would it be simple as adding Country: user.country into the Claims struct here?

Not sure, but I suggest you try it with a local Kratos instance and your patch. Make sure to check the spotify docs on the exact key and scopes needed.

what is the average turn-around on a release for a non-breaking change like this making it to Ory Cloud?

Days, but we can prioritize this when requested.

Copy link
Member

Choose a reason for hiding this comment

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

The country of the user, as set in the user's account profile. An ISO 3166-1 alpha-2 country code. This field is only available when the current user has granted access to the user-read-private scope.

from https://developer.spotify.com/documentation/web-api/reference/#/operations/get-current-users-profile

peturgeorgievv pushed a commit to senteca/kratos-fork that referenced this pull request Jun 30, 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.

4 participants