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

How to customize Omniauth payload #974

Closed
mattfordham opened this issue Oct 10, 2017 · 3 comments
Closed

How to customize Omniauth payload #974

mattfordham opened this issue Oct 10, 2017 · 3 comments

Comments

@mattfordham
Copy link

Using "overrides" I am successfully customizing the data passed back to the front-end overriding methods such as render_validate_token_success and render_create_success, as described in the docs. That said, I have not been able to find any information on doing the same in OmniauthCallbacksController.

I do not need a simple .to_json representation of User model, and need to add additional data... how can I achieve this?

@zachfeldman
Copy link
Contributor

Hi @mattfordham !

Have you tried just overriding the methods in the omniauthcallbackscontroller, and calling code before or after super to achieve what you're trying to do?

@mattfordham
Copy link
Author

Yes, and I got that working. Just wanted to make sure there wasn't a "hook" like render_create_success. It seems not. Thanks!

@zachfeldman
Copy link
Contributor

Glad to hear it's working

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

No branches or pull requests

2 participants