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

deprecate LinkedIn OAuth 2.0 mapper #79

Open
wants to merge 1 commit into
base: 6.next-cake4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Docs/Documentation/Social.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ We have mappers to allow you a quick start with these providers:
- Facebook
- Google
- Instagram
- LinkedIn
- Pinterest
- Tumblr
- Twitter
- LinkedIn (deprecated, it's not working with the OAuth 2.0 provider. They switched to OpenID-Connect.)

You must define 'options.redirectUri', 'options.clientId' and
'options.clientSecret' for any provider you want to enable. eg,
Expand Down
3 changes: 3 additions & 0 deletions config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
'callbackLinkSocialUri' => Router::fullBaseUrl() . '/callback-link-social/twitter',
]
],
/**
* linkedIn Provider is not working for OAuth 2.0, they switched to OpenID-Connect.
*/
'linkedIn' => [
'service' => 'CakeDC\Auth\Social\Service\OAuth2Service',
'className' => 'League\OAuth2\Client\Provider\LinkedIn',
Expand Down
3 changes: 3 additions & 0 deletions src/Social/Mapper/LinkedIn.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace CakeDC\Auth\Social\Mapper;

/**
* @deprecated LinkedIn OAuth 2.0 is not working anymore since they switched to OpenID-Connect
*/
class LinkedIn extends AbstractMapper
{
/**
Expand Down
Loading