Authentication based on IP

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/11/2009 2:45:51 PM
Gravatar
Total Posts 18

Authentication based on IP

I've looked, but maybe missed something? Is there any existing mechanism to autenticate based on the browsers IP?

I have a request to let users on an internal Intranet (IP range) access our (mojoPortal-based) site without having to supply sign-in details.

Thanks,

 

Allister

6/12/2009 8:18:35 AM
Gravatar
Total Posts 18444

Re: Authentication based on IP

Hi Allister,

No nothing based on IP address. On a windows domain you can use Windows Authentication instead of Forms authentication and users will be automatically signed in.

Hope it helps,

Joe 

6/12/2009 8:35:18 AM
Gravatar
Total Posts 18

Re: Authentication based on IP

Many thanks and no problem; I feel a 'hack' coming on :-)

Allister

6/12/2009 10:57:53 AM
Gravatar
Total Posts 18444

Re: Authentication based on IP

Thanks for the beers Allister!

I don't see how you can authenticate a user based on ip address unless you have a table mapping ip addresses to specific users. If ip addresses are assigned by dhcp and not static there is no way to do it, you can know its a user on the local network but you can't know which user, so how will roles be applied?

Best,

Joe

6/12/2009 11:17:10 AM
Gravatar
Total Posts 18

Re: Authentication based on IP

You're very welcome (and even more deserving).

We use your CMS for our power monitoring service, and the particular client (a large school in the UK) simply wants their local users (on their Intranet) to access their account (power usage information) without logging in.

My initial thought was I'd simply map their external IP to an account in a hard-coded fashion (I'm bad I know). I rationalized that if this requirement came up again, then I'd have to create a mapping table, but why create work if this is a one-off.

I'm now wondering if I can provide them a unique URL to map to a pre-authenticated account? Might not really be secure (at least with the IP solution I know the request is coming from within their Intranet) - not that this stuff is really sensitive!

Anyway, it's no big problem, and certainly no fault/limitation of mojoPortal. If I come up with anything elegant (unlikely), I'll volenteer the solution back to you.

Have a good weekend,

 

Allister

You must sign in to post in the forums. This thread is closed to new posts.