-
-
Notifications
You must be signed in to change notification settings - Fork 99
Define API for classes utilizing OmniAuth::Identity::Model #108
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
Conversation
@btalbot release 3.0.5 is out with the fix. Please let me know if there are any issues. |
Hi @pboling Thank you for the updates, they are much better than what existing previously. However, there are two issues I've run into while testing code with your changes.
|
Oops, I didn't see this before I released more fixes in 3.0.7. I will continue working on this @btalbot. Both of the points you make are valid, and haven't been fully resolved by the most recent release. |
@btalbot The fix for both issues was fairly simple. It is impossible to use the It just means that some implementations can't use |
That is simple and does seem to allow the ::create method to be used when #validating? is false. How should validation be configured to use the #save but without actually using the validation feature? Seems like we will need to create a valid on_validation block which just always returns true? |
@btalbot No, the default for |
What is expected config for an app to use |
They will not use In this context, the only reason to use |
Yes, the 3.0.8 release does resolve the backward compatibility issue and tests using existing implementations now pass. Thank you. A future step is to remove the use of the deprecated |
Also, future implementers will need to know that the on_validation call() provides a hash parameter and not For example
|
@btalbot - Working on a fix.
Fixes
:on_validation
Added
#save
,#persisted?
and::create
onOmniauth::Identity::Model
@since
YARD tags to interface methodsOmniauth::Strategies::Identity.registration_phase
to supportOmniauth::Identity::Model
-inheriting classes that do not define#save
.