Retrieving cookies from google using PHP/CURL - php

I'm trying to create a script that allows users to login once (using same username & password on the domain) so that they can access the portal and gmail, instead of signing in twice (one to the portal & the other to their gmail).
I have been trying to retrieve cookies from the gmail but having no luck. Has anyone attempted this before with success?
Please let me know, thanks

Use Google Accounts Authentication and Authorization.
Ah PHP library is available.

Related

Authenticate specific gmail account Google API in PHP

I receive confirmation from users in my gmail account. I want to read them with a server side php script to display confirmation on my website. I got OAuth 2.0 client IDs and a service key from Google APis. How do I use these keys with the specific gmail account to get the emails? I cannot find any simple documentation.
You can not use a service account to access a normal users Gmail account. This is because there is no way to preauthorize it.
What you need to do is have the users authenticate your application using Oauth2 and get a refresh token for each user. Then you will be able to use the refresh token in your server sided script to request a new access token which you can use to read there gmails. The Google PHP client library team has created some examples for using their library which might help you. Google-api-php-client
Side note: If the users you are speaking of are part of a Google domains account then you can do it by giving service account permissions to access the users emails.

Logging into Office365 email using PHP

I have an application which I would like to integrate with my company's Office365 email through a single sign on.
Here is how I was thinking of doing it:
My application can take the email address and password (or username) which users have logged into it and pass it out to a web service (in this case a PHP page).
The PHP page takes the username and password and users them to sign into Office365 email.
The user is redirected to the email page.
We are using Office365 with a local Azure tenancy and local AD.
I have used this same methodology to integrate with Open SSO, however, I can not find any information in how to authenticate to Office365 pragmatically using PHP.
Can anyone advise how this is done / where I can look?
Thanks,
-Max
Take a look at this other post that should help you out:
Using PHP and LDAP to connect to Microsoft Office 365
--- Bob ---
I appear to be closer to the answer. Take a look at my question here to view the code - Sending custom HTTP request with PHP
There is also a blog post by MSDN which will provide you with more information here - http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspx

How to fetch contacts from yahoo in iOS

For yahoo I am using SocialSample app of yahoo. I can login to yahoo account but it redirects me to a url which I am providing as a fallback url in session authorization.
[self.session sendUserToAuthorizationWithCallbackUrl:#"www.yahoo.com"];
I have no idea how to redirect from browser to my app. I have searched stackoverflow and there is this link How to use Yahoo! contact api in iOS application? in which php script is advised to use. But I have no experience in php. So I am unable to understand the whole logic behind this.
Also when I tried to create a project on developer.yahoo.com, it asks me to provide a domain name while I select private access to user.
help me on these issue.

How to make web application as Use Application-owned Accounts in server side google drive PHP

i wanna make web application use google drive sdk on PHP. when user login to my web using its own credential (ex username : lalala) will automatically login to user google account without user know like background login(silent mode) no redirect to google. username, email and password user save in mysql. user can upload file to google drive with my web application but not redirect to drive.google.com. how to make it? can someone give me an full example, please...
ClientLogin which implements basic authorization is deprecated across the Google products, you need to implement OAuth2 workflow for user accounts.

Social accounts VS site account [duplicate]

Is there a php library that has all the stuff I need to do logins via fb, google, twitter, yahoo etc?
Something like how the SO one works.
Thanks
OAuth is different from the open-id facebook uses oauth by that you can actually pull some facebook data while with open-id u can maintain the session just authentication is done by the open-id provider (google)
you can use the Janrain-engage for this purpose and there is also a open-source lib available named "open-id enabled" thats too now under janrain.. google it

Categories