liferay / liferay-mobile-sdk

Other
47 stars 56 forks source link

Wescreenlet not authenticated by liferay instance in Xamarin #79

Open Noufalt opened 5 years ago

Noufalt commented 5 years ago
Screen Shot 2019-09-11 at 4 02 11 PM

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();_ 3) 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 state .

can someone check this if any other settings required to be done on this . (Attached screenshot )

Repo :- https://github.com/Noufalt/LiferayScreenSamples/tree/master/testliferayScreen/BasicLoginScrnLet

Noufalt commented 5 years ago

Can someone please look on this issue ?