Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

How can I offer Google OAuth login to new users?

By
thenon
on 4/3/13, 1:47 PM 2,917 views

Trying to get google apps login via Oauth working.

What is the link between a user and a google user in OpenERP? Is it the login field, or the email field?

Thanks.

Are you still looking for an answer to this?

Martin
on 4/10/13, 12:59 AM

I am. I saw a bug on launchpad which looked like it might be relevant. Haven't tried the latest nightly yet.

thenon
on 4/10/13, 7:40 AM

Am I right that you want to enable Google managed logins for existing users who are currently logging in with UID/PWD?

Martin
on 4/10/13, 10:50 AM

Indeed.

thenon
on 4/10/13, 10:51 AM

May I suggest a better question, "How can I offer Google OAuth login to existing UID/PWD users?

Martin
on 4/10/13, 10:55 AM
0

Gustavo

--Gustavo--
950
| 2 1 4
Buenos Aires, Argentina
--Gustavo--

Python developer, big fan of sailing

Gustavo
On 4/3/13, 4:53 PM

It is the "OAuth User ID" field in the user form.

Can't see any such field anywhere unfortunately. I have technical options enabled.

thenon
on 4/3/13, 4:55 PM

do you have the auth_oauth module enabled?

Gustavo
on 4/3/13, 4:58 PM

I do yes - I've filled in my google oauth details within the setup page. If I log out, there is a login with google button.

thenon
on 4/3/13, 5:24 PM
0

Martin

--Martin--
1978
| 5 6 8
Cornwall, Canada
--Martin--

Analysing, designing, coding and mentoring since 1975. Kilobytes to terabytes. Punch cards to punchy sites. My OpenERP video series: http://www.youtube.com/playlist?list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye My Google Speadsheets --> OpenERP Data Pump project: http://martinhbramwell.github.io/GData_OpenERP_Data_Pump My email (with spaces removed) : mhb . warehouseman @ gmail . com

Martin
On 4/12/13, 8:35 AM

Hi Thenon,

I'm pretty sure I have the answer for you.

http://www.youtube.com/watch?v=qCRCJgAiJmU&list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye

Please have a look at this video and let me know if I missed anything. I'm still thinking about how to do it in bulk (100s of users)

The 2nd video in the series shows someone signing up to OpenERP using their Google account, and becoming a new user of the system. See minute 01:39 through to 02:00.

The URL for that is : http://www.youtube.com/watch?v=RHOjSJoXad0

Your video shows users signing themselves up. I don't want that, as its a closed environment - all the users are already have google apps accounts. I want to create OE accounts, and link them to the google apps accounts so they can log in with their google credentials.

thenon
on 4/12/13, 9:27 AM

The point of the video is that "password change" emails, sent to users contain a special link that gives them the opportunity to stop using UID/PWD authentication and start using Google authentication.

Martin
on 4/12/13, 2:48 PM

I don't want them to EVER have a username and password. That's the entire point of single sign on, federated credentials. I now see that the title you suggested for this question is in fact misleading, I'll change back to what I had originally.

thenon
on 4/12/13, 2:55 PM

I have updated my answer to respond to that.

Martin
on 4/12/13, 3:33 PM

Thanks Martin, appreciate the answers etc. but I think something is being missed here. If you see my earlier comment, I do not want people to be able to sign up with any account they have. I have a big organisation. Only some of them must be on OE. I want to create OE accounts, and then just link them (like for example, via email address or some other oauth token) to their google accounts. So they don't create an account. I do. Then they're linked. And then they can log in.

thenon
on 4/12/13, 4:26 PM

But . . . you do know that you can create an account for them in OE and send them the invitation email, yes? If so, then you are really asking how to block password use, right? An easy way to do that would be to have a cron job run an update on the user table setting all passwords to a random sequence every hour or so. You can alter the invitation email to inform your users that you will not permit passwords to be used. That's done in Settings | Technical | Email | Templates -- record named "Reset Password".

Martin
on 4/12/13, 5:18 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/3/13, 1:47 PM
Seen: 2917 times
Last updated: 3/16/15, 8:10 AM