Fork me on GitHub

Subject:*
Name/Email:*
Message Icon:*
Message:*
url email imgsrc image php hide code quote
SAMPLE
alignleft aligncenter alignright bold italic underline linethrough   


 [more...]
Options:*
 

 

 
View requirements*
Reply No requirement
Confirmation Code*
  The code is case-insensitive  Click the image for a new code. | Maximum attempts: 8
   
Re: login to custom php app using icms login credential ?

by fiammybe on 2019/1/3 23:04:56

As a follow-up on this, you could implement this using a OAuth2 server, where the OAuth2 server lets the user login in your ImpressCMS site, and then notify your other webapp that the user is verified. That means custom development on both sides, and i don't think that this has been attempted before for an ImpressCMS site. 

This would be the most flexible solution, in the likes of logging in with Twitter, Google, Microsoft or Facebook into a site.


Re: login to custom php app using icms login credential ?

by fiammybe on 2018/11/2 2:07:14

I totally agree with @skenow. This way you don't need to duplicate the login procedure in ImpressCMS, and you can still use the existing userbase.

 


Re: login to custom php app using icms login credential ?

by skenow on 2018/10/21 11:56:12

So - you want to have your login be the login from your ImpressCMS site, with all their users and passwords, and the rest of the content be restricted, but not an icms site?

Then, each of your pages must check for a valid user, like your ICMS site does (icms::$user is set and meets your criteria).

To access this information, the easiest way I see is to require mainfile.php in all your pages, which will give you a connection to the db that holds the users and the salt key stored in the trust path to complete the authorization.


login to custom php app using icms login credential ?

by mulaus on 2018/10/14 16:03:55

Hi

i would like to build a custom php application without using icms but i would like to use icms user/password from 
user table to login to my system 

is there any code script out there that i can use