While authenticating our email account using MailKit (VB.net), as below code
clientIMAP.Authenticate("email#address.com", "myPassword")
Is it possible to "hide" my email address and password? This is because I am not the only who who will access the source code,, and I don't really wanna show my account details to the others.
Was thinking on creating an email account just for this project purpose, but still wants to know if there is any other way.
Related
I have an account on Gmail. I have implemented login with google service on a project.
Now the Question is, What method is the optimal or the best practice which is followed regarding the account?
There are two ways:
I make an account with normal email and password sign up.
Login with Google
What if I use the same email and get registered with two different accounts on the project or there should be error saying "the account is already exists with this email"??
So lets see if i follow you.
You have a system which has two login options.
Create new user register with your email
Login with your googel account.
In the event a user uses their gmail email address and trys to login with the ir google account your getting an error that the email already exists.
The issue being that both system are trying to create a new user. This is where the issue is. Your system should be checking if the email exits if it does then link the accounts sources rather then creating a new user. SO the user would have to login sources one for normal login and password and the other as an external source being google.
How you achieve this depends upon your system.
I have a whitelisted Twitter app that can request and receive email address of a twitter account when the owner of the account accepts and logs in through my app.
Now, I plan to connect it to my already available "Sign-up/Login by email" flow seamlessly.
The problem is, logged in Twitter user may not have verified their email account. In that case they can hijack a user on my system who signed-up with that email.
Therefore, I have to be sure that they have verified their email address. Otherwise I have to automatically send a confirmation link to the email address of the just-signed-in twitter user.
Is there any way to detect if the user confirmed their email address on Twitter? If not, what is the general solution to this problem? At least, how do you solve it for yourselves?
I found out that if the user does not verify their email address, Twitter will not return the email address even though it is there. So, if you receive an email address from Twitter, that should mean that the email address of the user is verified.
If anyone finds that this is not correct, please leave your comment or your findings.
Twitter returns a 0 length string in field email if user didn't verify his email.
...
translator_type: 'none',
email:''}
I came across this problem with a company's intranet that we run (powered by Wordpress) - it's got us all stumped.
When attempting to authenticate a user using the Google Contacts API, an error is returned after granting permission to access the user's contact list and before full authentication is given, but no details are given as to what the error actually is.
It was working absolutely fine until one day in late April/early May it suddenly stopped working.
We we're using the following scope: http://www.google.com/m8/feeds/contacts/default/full.
An interim solution has been put into place, using the Google+ API instead. This is working well, except that the API is not providing the user's email address after authenticating, only their profile details.
We absolutely need the email address in order to limit access to the website to people with certain email addresses, as well as intergrate properly with WordPress' user management, generating new user accounts and linking them to authenticated email addresses.
We'd really appreciate any help!
You're not providing much in the way of details, but Google+ Sign-in should have what you want, and it comes with pre-cooked PHP code, see https://developers.google.com/+/quickstart/php
Also, you can go through the basic login flow and if you use a scope like "openid email" you’ll definitely get the email address; see https://developers.google.com/accounts/docs/OAuth2Login
I would like to create a feedback form for users to give feedback for the app. Is there access to the users email address from the app? can the app ask for permissions? If I don't have access how can i hyperlink to the users email client for a windows8 app store app?
If you want to open up the users mail client you can do something like this:
await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:support#email.co.uk?subject=App Feedback"));
That's what I've used for our support link and it opened up the Mail app with the subject set correctly :o)
You can get the user's email address by getting the principal name - this is documented to be typically the address but you cant be sure so use an email validator to check If its actually the email address. If not prompt the user to enter it for you.
var principalName = await Windows.System.UserProfile.UserInformation.GetPrincipalNameAsync();
The best you can do is ask them for their email address or use the Contact Picker. Like John mentioned you may be able to get a valid email address from the display name but do not rely on this to be true as its not an email address field.
I'm building an address book application. I'd like to allow users to click on a contact in my application, and be directed to their yahoo or gmail webmail, to the compose page, with the "to" field populated with data that I supply. Is this possible?
As for Yahoo I really don't know. For Gmail you can. Just use the bellow URL (changing variables accordingly).
https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=user#example.com
It was just yesterday that I asked a if anyone knew where to find all of Gmail's variables.