-
Notifications
You must be signed in to change notification settings - Fork 139
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
Serializer Registration #92
Conversation
fd27301
to
88761bb
Compare
747870f
to
e3f8ed2
Compare
7690fc7
to
0a3848b
Compare
@scrogson Recently came across a good use case here: ueberauth/ueberauth#87. If you don't have time, I would be happy to pick up the flag on this one. Otherwise, I can review if you are still interested in merging this PR! |
Hey @snewcomer, I've got a new design that I want to work on that will remove the need for a centralized configuration and rely on the configuration to be on the |
226fef3
to
652d939
Compare
This is looking great @scrogson. Lmk if you need an 👁yet! |
718fc46
to
ea4411c
Compare
Signed-off-by: Sonny Scroggin <sonny@scrogg.in>
ea4411c
to
92aa2ea
Compare
@snewcomer @doomspork I'd love some eyes on this! ❤️ |
@scrogson Happy Holidays homie! I will take a peek this weekend and get back to you. Hope all is well with your family 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good @scrogson! I have only 1 real question and it's the purpose of OAuth2.Serializer.Null
. This seems so different from how most Elixir libraries work, I'm not sure it's a win or potential source for confusion. I think you could pull maybe_warn_missing_serializer
function out and do away with a serializer that doesn't really serialize.
Looks great! Not much for me to comment on :) How does this look (references this PR)? ueberauth/ueberauth_google#58 |
@snewcomer hey, sorry for the delay. That PR looks like it will be perfect once this lands. Thanks for that. I need to clean up a few things and I'll try to get it merged and a new version published. |
@doomspork calling for one last review.... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @scrogson 👍
@scrogson was it an intentional decision that this PR changes version requirement for I was trying to update |
This PR changes the way serializers are registered. It removes the need for serializers to be added to the
:oauth2
application config.Instead, serializers are now registered in code with
OAuth2.Client.put_serializer/3
. This allows wrapper libraries to provide custom serializers without users needing to be concerned with configuring the:oauth2
application./cc @tsubery (#88)