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

Oauth apple support #221

Merged
merged 3 commits into from
Jan 10, 2020
Merged

Oauth apple support #221

merged 3 commits into from
Jan 10, 2020

Conversation

lolmx
Copy link
Contributor

@lolmx lolmx commented Dec 19, 2019

Adds support for oauth-apple

Copy link
Member

@bocharsky-bw bocharsky-bw 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 👍

public function getProviderOptions(array $configuration)
{
return [
'clientId' => $configuration['client_id'],
Copy link
Member

Choose a reason for hiding this comment

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

Ah, wait, client_secret is missing here :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apple does not have a client_secret, they use the key_file instead

Copy link
Member

Choose a reason for hiding this comment

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

In this case, we should remove client_secret from the docs I think

public function getProviderOptions(array $configuration)
{
return [
'clientId' => $configuration['client_id'],
Copy link
Member

Choose a reason for hiding this comment

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

In this case, we should remove client_secret from the docs I think

type: apple
# add and configure client_id and client_secret in parameters.yml
client_id: '%env(OAUTH_APPLE_CLIENT_ID)%'
client_secret: '%env(OAUTH_APPLE_CLIENT_SECRET)%'
Copy link
Member

Choose a reason for hiding this comment

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

No client_secret? We need to find a way to remove this line then to avoid confusion. I wonder if we have any other clients in this bundle that don't have client_secret as well, how do we remove this field from docs?

Copy link
Contributor Author

@lolmx lolmx Jan 8, 2020

Choose a reason for hiding this comment

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

at beginning i removed it and added the needed custom params, but it causes the build to fail ><
i've also tried to add a comment on the line, same, build fails..

i dunno :/

@weaverryan weaverryan merged commit 9593c04 into knpuniversity:master Jan 10, 2020
@weaverryan
Copy link
Member

I'll fix up the README - my weird script for it probably needs to be tweaked :)

@weaverryan
Copy link
Member

Tagged in 1.32.0.

Thanks!

@Jampire Jampire mentioned this pull request Feb 6, 2020
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.

3 participants