Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

Bundle is NOT whitelisted in AEM | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

Bundle is NOT whitelisted in AEM by Rashid Jorvee blog

Abstract

While using the loginAdministrative() method of SlingRepository class you might see an error "Bundle is not whitelisted". To get this method work we have to whitelist the bundle in OSGi configuration "Apache Sling Login Admin Whitelist" this helps us to defines which bundles can use SlingRepository.loginAdministrative().

Below is the code snippet of creating session using loginAdministartive method.

@Reference
private SlingRepository repository

Session session = repository.loginAdministrative(null);

Read Full Blog

Bundle is NOT whitelisted in AEM

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
0 Replies