how to add confirmation of user in authentication from mail? [closed] - ruby-on-rails

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have authentication process but it saves the user when sign up and login can be done once sign up is completed. I want to send a mail to the user to conform the account, only then he must be able to login. How can i add this feature in my existing authentication system?

There is a pretty good gem that helps you with user authentication workflows. Devise can be found here: http://rubygems.org/gems/devise
But if you want to develop your own authentication system, you need to save the user on the database, and use a column for to manage the registration state (e.g. registered / confirmed).
To send e-mails to the user, please take a look at the action mailer documentation page: http://guides.rubyonrails.org/action_mailer_basics.html

Related

Invitation based authentication in Rails [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm new to ROR and trying to build an invite based auth. Currently, I'm using Omniauth-facebook to have login using fb on my site. However, I want the users to have a custom url like - "www.mysite.com/invite/" which they can share to drive signup. I would also track these referrals so that I could incentivise users to drive such logins. I'm absolutely clueless about how to proceed and any starting pointers would be great.
One way could be to have a route for '/invite/:invite_code' and before the "/auth/facebook" is triggered I could read the invite code and increment the counter but then how do I check if the "/auth/facebook" was called from the invite page only. Does this sound correct? Or are there better solutions out there?
Thanks a lot!
You would make a POST to auth/facebook having more or less this code in you OmniAuth callbacks controller:
def facebook
Invitation.increment if request.env['omniauth.params'][:from_invitation_page]
# OR
# Invitation.increment if request.env['omniauth.origin'].match /your_invitation_url/
See that:
request.env['omniauth.origin']
is set automatically, while:
request.env['omniauth.params']
is set rendering a link like:
omniauth_authorize_path(:user, :facebook, var: 'value', var2: 'value2' )
Source

How to add a privacy URL [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
When making an app, where or how do you get a privacy URL? Same with a terms of use URL?
You specify the Privacy/ToU URLs in the "App Details" section of your App Dashboard. Facebook does not provide hosting for this and you should create these pages on your personal/company app development website.
You need privacy policy and terms and conditions and host them on the web. You have basically three options for obtaining these documents:
Do it by yourself
Hire a lawyer
Use an automatic service, like iubenda, that automatically generates a privacy policy optimized for your facebook app (and soon terms and conditions): https://www.iubenda.com/en/facebook (I'm the founder of this service, so feel free to ask any question ;) )

How can we check if an url is correct [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
we have an app where the user get there own userspace an can create entries without login.
we generate an dynamic link
Like
localhost://apps/{owncode}/userspace
The owncode is calculated by us an the code will saved into the database
The user can add entries for his userspace.
localhost://apps/{owncode}/entries/new
How can I compare (check is its correct} the {owncode} from the database with the url. Because we want to catch if someone call the url by try and error.
You can't check that without forcing the user to log in. You should also not be using anything in the URL to identify their "userspace." It should all be tucked away in the session, associated with the logged in user's account.
If you at least want to make owncode hard to guess, you could generate a ridiculously long hashed string. But this is not recommended, it would not guarantee any security, and users could still try and guess the strings for other "userspaces" without your app being able to do anything about it.

How to start developing with Twitter for Blackberry [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am new to bb app development. Now I'm supposed to develop a Twitter application for blackberry. How do I start my application.. is there any Twitter API for blackberry?
I have created the UI of the login page, but how to start with authenticating username and password? I have registered my app in twitter now I have the consumer key and secret, but I dont know how to use that.
Anyone knows about twitter apps for blackberry or have any sample code for Twitter?
You may use TwitterAPIMe.
You may find how to use the API in the link.
I used it, it's easy and working well with good performance.
PS, you must be RIM4.6 or higher

Social Media connect [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am want to add social media connect to my web app which includes twitter, Facebook and Linkedin.
I want to include twitter connect to my site. But I am not getting how to do it. I have implemented the fb connect to my app.
I am also look for good linkedin connect to my site how do I include it. Please let me know
One of the simplest ways to integrate Twitter with your website is by using #anywhere. Take a look at the documentation and see if it seems to be a good fit for your application.

Resources