Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM login pop-up comes up in custom login functionality

Avatar

Avatar
Level 1
vinitals
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
vinitals
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
vinitals
Level 1

26-10-2018

Hi we had implemented custom authentication handler for login functionality where-in credentials are verified using SQL. This was implemented some time ago and worked perfectly fine. Currently, I see an AEM login pop-up(the one which you can see in felix console after an inactive session) is appearing on click of submit and my mapped servlet is throwing a 401 on live and 403 on publishers. This functionality is working fine on author. Any inputs how do I resolve this issue and get rid of the AEM pop-up because of which my login functionality has stopped working?

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

26-10-2018

Are all of the files and OSGi bundles that are on Author (where it's working) on PUBLISH.

In the login article we have where we use the Default security hook that AEM Provides for log in functionality:

var valid = validateForm();

if(valid){

$.ajax({type: "POST",

url: $('#url').val(),

data: { j_username: $("#userId").val(), j_password: $("#inputPassword").val(),j_validate: "true" },

success:function(data,textStatus,jqXHR ){;

window.location.href=getRedirectPath();

},

error: function(XMLHttpRequest, textStatus, errorThrown) {

$("#errordiv").val("Invalid User Name or Password");

}});

} else{

$("#errordiv").val("Invalid User Name or Password");

}

});

});

All the same content must be on Publish Server. Usually when something works on Author and not Publish - settings or content are not located on the PUB instance.

Avatar

Avatar
Level 1
lokeshb93001514
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
lokeshb93001514
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
lokeshb93001514
Level 1

26-10-2018

Are you seeing that session timeout login popup in publish instance as well?

Avatar

Avatar
Level 1
vinitals
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
vinitals
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
vinitals
Level 1

28-10-2018

Yes the login pop-up is on publishers as well