Comments (5)
Actually it should not be capitalized. The way it's written is the correct way to call the logout function, it's a method of an instance of WebAppStrategy
, in all of our samples we refer to that by webAppStrategy
.
@ebaek What error did you get?
https://github.com/ibm-cloud-security/appid-serversdk-nodejs/blob/master/lib/strategies/webapp-strategy.js#L554
from appid.
Hi @ebaek,
Thank you for opening an issue. I will update the capitalization and I've forwarded your question about logout to a developer on the team. Either myself or they will reach out with an answer as soon as we can.
Please don't hesitate to open more issues or provide general feedback in the future as you work with the service so that we can continue to improve the experience.
- Shawna
from appid.
Thanks for getting back to me! In the Node.js documentation under quick start guide (https://cloud.ibm.com/docs/services/appid?topic=appid-web-node) and the Web apps guide under securing your Apps (https://cloud.ibm.com/docs/services/appid?topic=appid-web-apps), the instance of WebAppStrategy is referred to as const WebAppStrategy = require("ibmcloud-appid").WebAppStrategy;
- perhaps for clarity all the samples should be consistent?
This is the error I get when I invoke WebAppStrategy.logoutSSO(). SSO is enabled on the App ID service and while WebAppStrategy.logout() works, WebAppStrategy.logoutSSO() does not.
from appid.
Hey @ebaek , we'll update the docs to make it more clear, thanks.
In the code snippet you shared, WebAppStrategy
is the class. The logoutSSO
is a method as you can see in the GitHub repository I shared with you. Meaning, you have to create an instance of WebAppStrategy
in order to call that method.
Like -
let webAppStrategy = new WebAppStrategy(.....);
....
webAppStrategy.logoutSSO();
Thanks,
from appid.
@TalAviel Ah gotcha- thanks so much!
from appid.
Related Issues (20)
- Prohibited term: blacklist HOT 1
- video in doc is set to private HOT 3
- No result HOT 1
- Regex dialect is unclear HOT 1
- RSR appId
- Swagger has incorrect links to IAM HOT 1
- AppId and Kubernetes Ingress page needs clarification HOT 3
- Java Sample App Does not compile HOT 1
- Example Java Web Sample program does not compile HOT 1
- 1:543799408450:android:93b3a892e0e92bb7 HOT 1
- Delete user profile with REST instruction incorrect HOT 1
- Policy: Avoid Password Reuse -> max 8 times, not 10 as the documentation says HOT 2
- GitHub HOT 1
- Keyword not replaced HOT 1
- Documentation correction needed for S2S authorization for App ID HOT 2
- Page not found for authorizarion Grant Flow and Resource Owner Password Credentials HOT 1
- Role assigned to Application doesn't return in JWT token HOT 1
- Broken link on ibm.com page HOT 1
- AppID is not supported on Openshift cluster HOT 1
- cli parameters for kms configuration missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appid.