login registered user automatically


hi,

 

i have 2 use cases user should login automatically without prompting him login page.

in detail:

case 1:

as user registered should make him login , redirect home page.

case 2:

whenever promotional email sent registered users , if tries access site link, should show page directly without prompting him login page.

 

all our sites cug enabled sites, whenever request coming cug page, request redirected login page automatically if user not logged in.

 

but want suppress behavior , make him login in above 2 use cases.

 

 

currently using token based authentication our sites extending abstractauthenticationhandler.

 

in forums found can use sso handler, there no detail explanation on that.

 

any suggestions worth welcomed.

 

thanks,

shyam

i think can implement both use case in custom authentication handler

 

http://www.wemblog.com/2013/03/how-to-create-custom-authentication.html

 

try return null or valid credentialinfo in http://sling.apache.org/apidocs/sling6/org/apache/sling/auth/core/spi/authenticationhandle r.html#extractcredentials(javax.servlet.http.httpservletrequest, javax.servlet.http.httpservletresponse) above 2 cases.

 

extract credential has access request , response object.

 

yogesh




More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account