Logout on asset-share not working for aem 6.5 | Community
Skip to main content
srinivas_chann1
Level 7
January 18, 2022
Solved

Logout on asset-share not working for aem 6.5

  • January 18, 2022
  • 1 reply
  • 855 views

Hi ,

I am able to login to asset share using the OOTB asset share functionality, but logout does not work

1>

the code used is 

<a class="cmp-user__action" href="#" data-asset-share-id="cmp-user-menu__logout-link">Log Out
</a> 

 

When we click on that it hits the code

// Events
$("body").on("click", ns.Elements.selector("cmp-user-menu__logout-link"), function() {
cart.clear();
});

 

But the issue it doesn't logout the user.

2>

I tried with adding 

<a class="cmp-user__action" href="/system/sling/logout.html" data-asset-share-id="cmp-user-menu__logout-link">Log Out</a> 

 

Here again it does not logout the user and shows up 404 error message

 

Not Found

The requested URL /system/sling/logout.html was not found on this server.

 

Could some one help me to resolve the issue

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @srinivas_chann1, I am not sure if you are accessing AEM directly or via Apache/dispatcher. If you are connected via Apache/Dispatcher please check if /system/sling/logout.html is not blocked there - you can also try to connect to your AEM instance directly and try use /system/sling/logout.html. Alternatively you can try to use /system/sling/logout so without html extension.

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
January 18, 2022

Hi @srinivas_chann1, I am not sure if you are accessing AEM directly or via Apache/dispatcher. If you are connected via Apache/Dispatcher please check if /system/sling/logout.html is not blocked there - you can also try to connect to your AEM instance directly and try use /system/sling/logout.html. Alternatively you can try to use /system/sling/logout so without html extension.