37
Views
3
Comments
Login REST API does not redirect to default page
Application Type
Reactive

Hii Everyone,

I have built a login API in OutSystems using inbuilt user_login action but if I consume this API in place of the do_login server action it is not redirecting me to the default page.

Please check what is wrong with this API. 

AuthAPI_CS.oml
2023-04-06 11-24-23
Paulo Zacarias

Hi Priyam, 

I checked the attached OML. On the consumers of the login API, you will need to add a landing screen / redirect node with the URL of the screen. 

In that _CS module you shared there's no screen, so it's difficult for the community to understand why after login the user is not being redirected to the desired screen because we don't know where this is consumed.

Regards, 

PZ

2023-05-30 15-29-12
Priyam

Hii Paulo,

Thanks for reply.

please try to consume this api and check if it is working properly.

2023-05-30 15-29-12
Priyam

Please look at this oml file where I have consumed this API.

AuthAPI.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.