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

[4.x] Allow customisation of authentication logic #256

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

joelbutcher
Copy link
Owner

This PR

  • moves the logic used for handling request errors on return back from an OAuth flow to an action
  • moves the authentication logic used for creating and authenticating users returning from an OAuth flow into an action
  • Allows developers to override both of these via overriding the authenticatesOauthCallbackUsing and handlesOAuthCallbackErrorsUsing bindings:
Socialstream::authenticatesOauthCallbackUsing(AuthenticateOauthCallback::class);
Socialstream::handlesOAuthCallbackErrorsUsing(HandleOauthCallbackErrors::class);

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.

1 participant