Authentication without password

Authentication without password

by Alan Dabien Barroso -
Number of replies: 7
Hi,

I am trying to create an authentication method that the user doesn't have to type the password, so i can log in moodle from an external site.
I've tried to create a simple authentication method, like making the function user_login() always return true, but it isn't working.
Can someone help me? What am i doing wrong? Is there some kind of alternative to what I am trying to do?

Thanks
Average of ratings: -
In reply to Alan Dabien Barroso

Re: Authentication without password

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
A user without a password? Isn't that the "Guest user"?
In reply to Visvanath Ratnaweera

Re: Authentication without password

by Alan Dabien Barroso -
No, that's not it. A guest user don't have a profile neither can enroll in a course.
It's a little complicated what i have to do, but it involves an external site authenticating the user.
In reply to Alan Dabien Barroso

Re: Authentication without password

by Amy Dominick -

BUMP

Hi, I'm just wondering if anyone found a solution to this - I have the same question. Thank you!

In reply to Amy Dominick

Re: Authentication without password

by Glenys Hanson -
Hi Amy,

Have you seen the list of Authentication methods? Does none of them suit your case?

Cheers,
Glenys
In reply to Glenys Hanson

Re: Authentication without password

by Amy Dominick -

Hi Glenys,

I went through the Authentication methods and I found that external database would likely work for us - except we have encrypted passwords and the developer finds it a bad idea to decrypt them in order to pass to another database. We store sensitive information in our student database but would not in the Moodle. I thought there might be a way to use External database without the password since we have unique user login names, but I didn't see anything in docs or forums other than this post. Your thoughts are appreciated!

Amy

In reply to Amy Dominick

Re: Authentication without password

by Glenys Hanson -
Hi Amy,

I'm afraid I can't help any more - I just run a very small Moodle site for an association so don't have that kind of problem.

But I did a Google search for "Moodle authentication encrypted passwords" and there were a lot links that seem to discuss your problem.

Cheers,
Glenys
In reply to Glenys Hanson

Re: Authentication without password

by Amy Dominick -
OH. That's a great idea. I will see what I can find! Thank you!