You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Globegitter are you thinking that in this example, the customer model already exists or would be created? I think expecting/requiring this might be a nice way to approach this.
Ultimately the ability to define the model and/or attributes when setting this up would be great. Supporting the field:type syntax used for the resource/api generation might be ideal. The challenge I see though with that is knowing what fields the user is defining for username and password. Maybe defining these via explicit parameters to the command would solve this.
Thinking a syntax like this: sane install sane-auth customer firstName:string lastName:string --un=email --pwd=secretField
And this way we would also know the fields we needed to dynamically generate the registration routes action handler for createUser...
or if the model already exists, we would just omit the fields but still identify the un/pwd fields sane install sane-auth customer --un=email --pwd=secretField
In this scenario we'd have to parse out the required fields if we wanted to include these in the createUser handler. I guess documenting that the user would have to manually update this might be ok though depending on how big of a task that parsing is.
So instead of a fixed 'user' model, one can pass
sane install sane-auth customer
or whatever to consistently have thecustomer
model being used.The full API in the sane addon-system for that is still WIP and this issue will help implement that.
The text was updated successfully, but these errors were encountered: