wso2is

How to protect REST API with wso2 IS?

送分小仙女□ 提交于 2020-01-07 02:31:19
问题 I now have a NodeJS REST API. It is CRUD service. Does anyone know how to secure/protect my APIs step by step with wso2 OAuth2? 回答1: If you simply want to protect your REST API with OAuth2 use the WSO2 API Manager. You can follow the quick start guide to get started. Details related to adding your API and enabling OAuth2 protection is mentioned here in the quick start guide. 来源: https://stackoverflow.com/questions/42569535/how-to-protect-rest-api-with-wso2-is

wso2is custom authenticationendpoint, redirect page not used

风流意气都作罢 提交于 2020-01-06 10:56:39
问题 I am developing saml sso using wso2is. I customized the authentication endpoint according the blog post below 1. Basically I just deployed a war on my server and configured application-authenticators.xml to use it: <Authenticators> <Authenticator name="BasicAuthenticator" disabled="false" factor="1"> <!-- <Status value="10" loginPage="/authenticationendpoint/login.do" /> --> <Status value="10" loginPage="https://servlet.example.com/customlogin/login.do" /> </Authenticator> </Authenticators>

WSO2 sh wso2server.sh -Dmigrate -Dcomponent=identity is not running the migration scripts

半世苍凉 提交于 2020-01-06 06:41:33
问题 I am migrating WSO2 Idenitity server as per https://docs.wso2.com/display/IS530/Upgrading+from+a+Previous+Release I copied the scripts to wso2is-km-5.3.0/dbscripts/identity/migration-5.2.0_to_5.3.0 folder. But after running sh wso2server.sh -Dmigrate -Dcomponent=identity , it doesnt look like its running the scripts.None of the new tables are getting created. Any clue? [ec2-user@ip-171-30-1-7 bin]$ sh wso2server.sh -Dmigrate -Dcomponent=identity JAVA_HOME environment variable is set to /usr

How the external authentication handled in WSO2 APIM for an external/Third Party APIs

爱⌒轻易说出口 提交于 2020-01-06 04:53:25
问题 I am using WSO2 APIM (2.5.0) and IS (5.6.0). They both are integrated and working well. Now, if I onboard an third party API in API Management and using oauth token I can be able to access it. But question is how to handle any external or third party APIs which has its own authentication. SO basically, using WSO2 APIM token I can be able to access the onboarded API to use but we will not be able to get any response as the onboarded API has its own authentication (basic or oauth). How to

Can't get user information after login successfully in WSO2 Identity server

感情迁移 提交于 2020-01-05 04:22:08
问题 After login successfully into WSO IS with service URL (https://localhost:9443/services/") I tried to get User Information as below : try { UserRealm realm = WSRealmBuilder.createWSRealm(serviceURL, authCookie, configCtx); UserStoreManager storeManager = realm.getUserStoreManager(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } But I had exception relating to this as below image. I can't get any info. I tried and found out that the main error is I can't

WSO2 Identity Server JWT Access token

喜夏-厌秋 提交于 2020-01-04 11:06:58
问题 I'm trying to receive a JWT access_token from WSO2 Identity Server when logging in with password grant_type. But I can't find any way to configure this. When I sign in I get a guid as access_token. I found this, but this is the way to get the access_token guid when you have a JWT: https://docs.wso2.com/display/ISCONNECTORS/Configuring+JWT+Grant+Type Also I enable JWT Token generation using this tutorial, but I'm still receiving the guid: https://docs.wso2.com/display/IS510/JWT+Token

WSO2 Identity Server JWT Access token

こ雲淡風輕ζ 提交于 2020-01-04 11:03:04
问题 I'm trying to receive a JWT access_token from WSO2 Identity Server when logging in with password grant_type. But I can't find any way to configure this. When I sign in I get a guid as access_token. I found this, but this is the way to get the access_token guid when you have a JWT: https://docs.wso2.com/display/ISCONNECTORS/Configuring+JWT+Grant+Type Also I enable JWT Token generation using this tutorial, but I'm still receiving the guid: https://docs.wso2.com/display/IS510/JWT+Token

Getting only sub in UserInfoEndpoint

与世无争的帅哥 提交于 2020-01-03 17:19:50
问题 I am just following what is on the guide I've already populated the user's profile information but so far I only get sub . I want to get something same like in the guide: { "sub":"admin", "email":"admin@wso2.com", "website":"https://wso2.com", "name":"admin", "family_name":"admin", "preferred_username":"admin", "given_name":"admin", "profile":"https://wso2.com", "country":"Sri Lanka" } CONFIG Identity Server - AWS Cloud with Domain and SSL + Nginx Proxy Sample Web App - local machine UPDATE:

Issue starting WSO2 IS example playground2

匆匆过客 提交于 2020-01-03 05:18:30
问题 I have followed all the steps form the tutorial, but can't start the example. As I start the server and go to localhost:8080/playground2 / I enter all the fields, then it redirects me to a page where I log in with my admin account and the when I go to localhost:9443/oauth2/authorize it gives me an exception when I check the server console, this is the error I see 回答1: Finally i found what was the problem. I solved the issue by clearing all the browser cookies. Not quite sure why this happened

rest apis for wso2 Identity server

我与影子孤独终老i 提交于 2020-01-01 21:54:09
问题 In the link http://blog.facilelogin.com/2008/10/wsas-hiddedn-services.html I saw WSo2 Soap apis , can I get it's equivalent rest apis. And an example which shows how to pass authentication details. I need this one for wso2 Identity server. 回答1: In Identity server, You can find many management web services API that can be used for authentication, authorization, user management and so on. Could you let us know the API that you are looking for.. then we can say what is exact web service that you