Posted in 2factor Auth best practice, Please help
Thank you, Chris. I have watched the Gorails 2factor Auth tutorial. I have a couple of questions that leave me with a few questions.
- I imagine a scenario where a person has left their laptop open, and a passerby changes their settings to remove 2-factor auth.
- Can I add a feature requiring the user to enter their password to change the 2-factor setting?
- Is this requiring a password for the setting change convention, or am I adding unneeded complexity?
- Do you know of a tutorial that shows how to add a password to a change in settings? If this is commonplace?
Posted in Strava API auth please HELP
I am attempting to create a very simple rails API app. I need to be able to authenticate within my application in order to access my data. authentication is a four-part process, I have done this successfully with Postman but now I need to do this within my application. the doc's on strava https://developers.strava.com/docs/getting-started/#getsupport. I could use an example of how to walk through his process please let me know of any example apps or the best tutorial here on this site or somewhere else.
Thank you for any help
Issue : Rails Credentials
What am I attempting to do: Add Twitter Api_key & Api_key_secret key to my rails app using the rails credentials:edit --enviroment=developement command.
environment details: editor Atom
list of errors and attempts to resolve them:
ran: rails credentials:edit --enviroment=developement
traceback:`edit': wrong number of arguments (given 1, expected 0) (ArgumentError)
ran: EDITOR="atom --wait" rails credentials:edit
which: creates a ####.credentials.yml file, but the command line is now left hanging. I am not able to exit and save any edits to the file. Forcing me to control + c to make the command line usable again.
Thank you for your help
Thanks for this tutorial! when pushing the connect to Twitter button, I receive this error
400 Bad Request
Extracted source (around line #254):
self.token_request(http_method, uri.path, token, request_options, arguments)
raise OAuth::Unauthorized, response
I adjusted to using a post method in the views/main/index file
to match the new requirements for omniauth.
'<%=button_to "Connect Twitter", "/auth/twitter", method: :post, class: "btn btn-primary" %>
An error occurs when I run Rails C and then run Rails.application.credentials.twitter I receive nil as my response, but when run 'EDITOR="atom --wait" rails credentials: edit I can see the saved Twitter api_key