Ember Simple Auth Registration Authenticator
This addon provides an OAuth2 password grant Authenticator that allows passing of user profile information for user registration.
Installation
ember install ember-simple-auth-registration
Use
In your application create an authorizer that extends from oauth2-password-registration
:
// app/authenticators/register.js; ;
Then in your registration action:
let identification password = this;let userData = /* get your user data some way */ {};this;
This will JSON stringify the userData
variable and pass it as a user_data
parameter to your server.
Customization
You will likely want to customize the registrationEndpoint
to match the API route for your registration:
// app/authenticators/register.js; ;