RE: Xamarin - WebScreenlet not authenticated by loginscreenlet

Noufal T, modified 6 Years ago. New Member Post: 1 Join Date: 9/24/19 Recent Posts
Hello ,I am using webscreenlet to show url in Xamarin.Android app . But every time when i see the page in webscreenlet it asks for sign in . As per the documentation below I have implemented it .WebType.LIFERAY_AUTHENTICATED (default): Displays a Liferay Portal page that requires authentication. The user must therefore be logged in with Screens via Login Screenlet or a SessionContext method. For this WebType, the URL you must pass to the WebScreenletConfiguration.Builder constructor is a relative URL. For example, if the full URL is http://screens.liferay.org.es/web/guest/blog, then the URL you must supply to the constructor is /web/guest/blog.Kindly see the steps I have done .
  1. Authenticated user by LoginScreenlet
    2)in success case redirected to an Activity implmented with IWebListener and provided url with a configuration below
    WebScreenletConfiguration webScreenletConfiguration = new WebScreenletConfiguration
    .Builder("/web/guest/myprofile")
    .SetWebType(WebType.LiferayAuthenticated)
    //.AddRawJs(Resource.Raw.js_master, "js_master.js")
    //.AddRawCss(Resource.Raw.css_master, "css_master.css")
    .Load();
  2. When I run the app i am able to login succussfully, but after login webscreenlet shows guest page , but as per documentation if I authenticate with loginscreenlet it should show landing page with logged in state .
can someone check this if any other settings required to be done on this .Repo :-
https://github.com/Noufalt/LiferayScreenSamples/tree/master/testliferayScreen/BasicLoginScrnLet
Nikita Dubina, modified 5 Years ago. New Member Posts: 4 Join Date: 3/6/20 Recent Posts
Hello! Do you solve this issue? I have the same seems to be.
thumbnail
Sarai Diaz, modified 5 Years ago. New Member Posts: 23 Join Date: 6/14/16 Recent Posts
Hello, thanks for sharing the repository. I'll take a look.