Mobile app version of vmapp.org
Login or Join
Angela700

: Use Outlook password for website verification I am currently building an internal employee dashboard for our global company (it is hosted on an external website for logistical reasons) I'd like

@Angela700

Posted in: #Authentication #Email #Password

I am currently building an internal employee dashboard for our global company (it is hosted on an external website for logistical reasons)

I'd like (need) to password protect the page as we will be displaying sensitive information, my question is, is it possible to integrate with Outlook passwords?

We have over 350 staff all of whom use outlook on a daily basis, I'd love for the website to check whether the visitor is logged into Outlook and if they're not, prompt them to log in.

Is it possible?? If it is I'll get is developed straight away.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

2 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin317

I'd handle protected pages the usual way.

If a user lands on a page with sensitive information you can protect the page this way:


check if the user already is logged in (and eventually has the permissions to see the page)
if True: show content
if False: ask for a username and a password(*)
server side you will check its credential connecting to the mail server using the provided user/pass. If the mail server allows the connection to happen, you can log the user into the site and show the page, otherwise redisplay user/password form.


Authentication (any process by which you verify that someone is who they claim they are) is handled by this procedure. Authorization (any process by which someone is allowed to be where they want to go, or to have information that they want to have) must be coded ad hoc.

(*) To log the user in, the username and password it provides must be the same used in Outlook.

10% popularity Vote Up Vote Down


 

@Chiappetta492

Best way to do this, is to create a script that would log in to SMTP account by PHP, with SSL. If the process succeeds - set a cookie/session and let him go on.

Here is some code snippet PHP SMTP mailer

You don't need most of it, just the top part where it try to log

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme