Skip to content

Before social login redirect#792

Merged
steinkel merged 10 commits into
CakeDC:8.nextfrom
rochamarcelo:before-social-login-redirect
May 29, 2019
Merged

Before social login redirect#792
steinkel merged 10 commits into
CakeDC:8.nextfrom
rochamarcelo:before-social-login-redirect

Conversation

@rochamarcelo

Copy link
Copy Markdown
Collaborator

No description provided.

@rochamarcelo

Copy link
Copy Markdown
Collaborator Author

Related to #782

@codecov-io

codecov-io commented May 28, 2019

Copy link
Copy Markdown

Codecov Report

Merging #792 into 8.next will decrease coverage by <.01%.
The diff coverage is 70%.

Impacted file tree graph

@@             Coverage Diff              @@
##             8.next     #792      +/-   ##
============================================
- Coverage      81.6%   81.59%   -0.01%     
- Complexity      605      606       +1     
============================================
  Files            61       61              
  Lines          1870     1875       +5     
============================================
+ Hits           1526     1530       +4     
- Misses          344      345       +1
Impacted Files Coverage Δ Complexity Δ
src/Controller/Component/UsersAuthComponent.php 80.59% <ø> (ø) 28 <0> (ø) ⬇️
src/Auth/SocialAuthenticate.php 53.57% <0%> (-0.33%) 76 <0> (ø)
src/Model/Behavior/SocialBehavior.php 92.43% <100%> (+0.06%) 28 <1> (+1) ⬆️
src/Controller/Traits/LinkSocialTrait.php 71.28% <100%> (+0.87%) 25 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cab9315...eb02023. Read the comment docs.

@rochamarcelo
rochamarcelo requested a review from steinkel May 28, 2019 18:15

@steinkel steinkel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks good, a couple comments mostly questions

Comment thread composer.json Outdated
$location = $provider->getAuthorizationUrl($authParams);

$response = $response->withLocation($provider->getAuthorizationUrl($authParams));
$this->dispatchEvent(UsersAuthComponent::EVENT_BEFORE_SOCIAL_LOGIN_REDIRECT, compact('location', 'request'));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

event could return another location for example?

$this->request->getSession()->write('temporary_credentials', $temporaryCredentials);
}
$authUrl = $provider->getAuthorizationUrl($temporaryCredentials);
$this->dispatchEvent(UsersAuthComponent::EVENT_BEFORE_SOCIAL_LOGIN_REDIRECT, [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what does the event could return?

@steinkel
steinkel merged commit 8b3fee7 into CakeDC:8.next May 29, 2019
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