on 03-06-2019 9:02 AM
Hi All
I am using angular for my front end development and deployed in HCP but logout functionality is not working.
here is my neo-app.json
{
"authenticationMethod": "none",
"logoutPage": "/#/logout",
"routes":[{
"path": "/services/userapi",
"target": {
"type": "service",
"name": "userapi"
},
"description": "UserAPI"
}]
}
and here is the response I have received but its no logging out from the system.
please help
Hi Krishna ,
Try giving relative path of a custom logout page(like logout.html) where you want to redirect after successful logout in 'logoutPage' config.
I have attached sample logout.html and neo-app.json for your reference.
Thanks,
Manu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi krishna ,
I am not angular developer but I faced same issue with SAPUI5. If you will follow my way , you should be able to resolve this for angular as well. Here I am sharing one screenshot which have my project structure(to reference same in angular project) , change for logoutPage config in neo-app.json and on logout button press event code -
I would guess it's an issue with the # sign. I would think that this will not be interpreted as a real page but only as an anchor in the current page. You might get some inspiration from my project HTML5UserAPI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.