-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Password Reset Link params without POST /password #1070
Comments
@wmlutz I don't think you need a client and expiry token, just a password reset token, to reset the password. That token services as authentication. |
@zachfeldman I'm still having troubles. Going into console I grab a password reset token and tested with this curl req:
But am getting I admittedly am not the best or most experienced guy in the room - can you tell what I'm missing? |
I'm using the jToker implementation for my app: |
https://github.com/lynndylanhurley/j-toker/blob/master/src/j-toker.js#L1033 Looks like I need to send password, password confirmation, email, and reset_password_token. |
|
@lynndylanhurley What I'm trying to do is skip this part:
I figured out what I need to do though to do this manually. It's basically following build_auth_header from https://github.com/lynndylanhurley/devise_token_auth#model-concerns at my own API endpoint. Got it working via curl now. |
I am running a Rails API, doing a lot of email branding with SendGrid, and am trying to not use ActionMailer. Therefore I want to do the password reset 'manually.' I.e. not using the POST /password endpoint which uses ActionMailer.
To do it manually a couple of things need to happen: I want to generate a url with query params to pass to my SendGrid API. This will be a link to the page that takes password and password_confirmation. That link needs to have query params with the proper authentication info which will then be put in the header the password and confirmation are sent.
A password reset token seems to not be a problem with @resource.reset_password_token which will be in the PUT header at access-token. Uid is fine too. But client and expiry for that token, I can't figure out how to get in @resource's controller.
Help appreciated.
The text was updated successfully, but these errors were encountered: