Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Wescreenlet not authenticated by liferay instance in Xamarin #79

Open
Noufalt opened this issue Sep 11, 2019 · 1 comment
Open

Wescreenlet not authenticated by liferay instance in Xamarin #79

Noufalt opened this issue Sep 11, 2019 · 1 comment

Comments

@Noufalt
Copy link

Noufalt commented Sep 11, 2019

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();
  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 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
Copy link
Author

Noufalt commented Sep 18, 2019

Can someone please look on this issue ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant