Re: [Dev] CORS ERROR in Custom Service API

2018-07-13 Thread Dushani Wellappili
Hi Shib,

If I have understood correctly, you are asking about configuring
Cross-Origin Resource Sharing for a particular API. Please refer this [1]
documentation for enabling API based CORS configurations and see whether it
works for you.


[1]
https://docs.wso2.com/display/AM200/Enabling+CORS+for+APIs#EnablingCORSforAPIs-EnablingCORSPerAPI

Thanks.

Regards,
Dushani Wellappili
Software Engineer - WSO2

Email : dusha...@wso2.com
Mobile : +94779367571
Web : https://wso2.com/



*Dushani Wellappili*
Software Engineer - WSO2

Email : dusha...@wso2.com
Mobile : +94779367571
Web : https://wso2.com/




On Fri, Jul 13, 2018 at 4:46 PM shibsankar  wrote:

> Hi ,
>
> I'm  getting  CORS  ERROR  in  my OrderWorkFlow service API  invocation.
>
>
> Which  *file / **files*  has the  CORS configuration in WSO2  for   *Custom
> Service  **API*  ?
>
>
> *Error :*
>
> Failed to load 
> *http://xx-xx-xxx-xx-xx..xx.xxx.xxx:8280/bsi/custOrderWorkflow/v1/init
> :
> The value of the 'Access-Control-Allow-Origin' header in the response must
> not be the wildcard '*' when the request's credentials mode is 'include'.
> Origin 'http://localhost ' is therefore not allowed
> access. The credentials mode of requests initiated by the XMLHttpRequest is
> controlled by the withCredentials attribute.*
>
> Regards
> Shib
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] CORS ERROR in Custom Service API

2018-07-13 Thread shibsankar
Hi ,

I'm  getting  CORS  ERROR  in  my OrderWorkFlow service API  invocation.


Which  *file / **files*  has the  CORS configuration in WSO2  for   *Custom
Service  **API*  ?


*Error :*

Failed to load 
*http://xx-xx-xxx-xx-xx..xx.xxx.xxx:8280/bsi/custOrderWorkflow/v1/init
:
The value of the 'Access-Control-Allow-Origin' header in the response must
not be the wildcard '*' when the request's credentials mode is 'include'.
Origin 'http://localhost ' is therefore not allowed
access. The credentials mode of requests initiated by the XMLHttpRequest is
controlled by the withCredentials attribute.*

Regards
Shib
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IAM: org.apache.rahas.TrustException while executing SSO with WS-Trust scenario

2018-07-13 Thread Achini Jayasena
- iam-gr...@ws02.com
+ iam-gr...@wso2.com


*Thanks & Best Regards!*

*Achini Jayasena*
*Software Engineer - QA | WSO2*

Email: achi...@wso2.com
Mobile: +943 882 897

[image: http://wso2.com/signature] 

On Tue, Jul 3, 2018 at 2:55 PM, Achini Jayasena  wrote:

> + dev@wso2.org
>
>
> *Thanks & Best Regards!*
>
> *Achini Jayasena*
> *Software Engineer - QA | WSO2*
>
> Email: achi...@wso2.com
> Mobile: +943 882 897
>
> [image: http://wso2.com/signature] 
>
> On Mon, Jul 2, 2018 at 7:36 PM, Achini Jayasena  wrote:
>
>> Hi All,
>>
>> Could you help to solve following issue.
>>
>> *Scenario:* SSO with WS-Trust
>> *Reference:* https://docs.wso2.com/display/IS550/WS-Trust
>> *Issue Description:* Executing sts-clien.sh file (file location:
>> IS-SAMPLES/modules/samples/sts/sts-client) create following exception
>> *Issue: *
>>
>> achini@achini-ThinkPad-X1-Carbon-5th:~/IS/is-samples/modules/samples/sts/sts-client$
>> export CLASSPATH=$CLASSPATH:../lib/*:target/*
>> achini@achini-ThinkPad-X1-Carbon-5th:~/IS/is-samples/modules/samples/sts/sts-client$
>> $JAVA_HOME/bin/java org.wso2.carbon.identity.samples.sts.Client $@
>> log4j:WARN No appenders could be found for logger
>> (org.apache.axis2.deployment.FileSystemConfigurator).
>> log4j:WARN Please initialize the log4j system properly.
>> > xmlns:xs="http://www.w3.org/2001/XMLSchema;
>> ID="urn:uuid:2971E96344F259222F1530539326505"
>> IssueInstant="2018-07-02T13:48:46.497Z" Version="2.0">ht
>> tps://localhosthttp://www.w3.org/2000/09/xmldsig#;>
>> 
>> http://www.w3.org/2
>> 001/10/xml-exc-c14n#" />
>> http://www.w3.org/2000/09/xmldsig#rsa-sha1;
>> />
>> 
>> 
>> http://www.w3.org/2
>> 000/09/xmldsig#enveloped-signature" />
>> http://www.w3.org/2001/10/xml-exc-c14n#
>> ">http://www.w3.org/20
>> 01/10/xml-exc-c14n#" PrefixList="xs" />
>> 
>> http://www.w3.org/2000/09/xmldsig#sha1; />
>> MJkaDjwfnE9CERG2E/Qhcjr+ig4=
>> 
>> 
>> 
>> HX2GsquRrgmoLjPbjSKJUGn938VpsgfzjkyzkWDSkW/M6+UbjsuJYnC+ZjeX
>> wX10a/sE/kFe5J9z
>> js451ikBqs8cxxAemZ/wR+1HQINXB9L7feYtx8IF/xjEe/vJ9Oms4p0IqHhx
>> Soktlv6RNd2v1m9t
>> m6vrTYH+Srj++GVuX+gSK4GY/04DLMenv4Se8UyOK2qfU5RWQrYa/Le+
>> 1lsN51yFIxTUpNzNn4/+
>> /W7gM6Wa8M0cIc3eVVWIBvyPe9q9PctAG2f0s7d3TSAvDRqKGi58CpuPG11r
>> 10aF39Knk31WemzX
>> a49583MLJx+l+zxU4V0+74TSV+lROYX6tkHoyQ==
>> 
>> MIIDSTCCAjGgAwI
>> BAgIEAoLQ/TANBgkqhkiG9w0BAQsFADBVMQswCQYDVQQGEwJVUzELMAkGA1UE
>> CBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxDTALBgNVBAoTBFdTTzIx
>> EjAQBgNVBAMTCWxv
>> Y2FsaG9zdDAeFw0xNzA3MTkwNjUyNTFaFw0yNzA3MTcwNjUyNTFaMFUxCzAJ
>> BgNVBAYTAlVTMQsw
>> CQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzENMAsGA1UEChME
>> V1NPMjESMBAGA1UE
>> AxMJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
>> luZFdW1ynitztkWL
>> C6xKegbRWxky+5P0p4ShYEOkHs30QI2VCuR6Qo4Bz5rTgLBrky03W1GAVrZx
>> uvKRGj9V9+PmjdGt
>> au4CTXu9pLLcqnruaczoSdvBYA3lS9a7zgFU0+s6kMl2EhB+rk7gXluEep7l
>> IOenzfl2f6IoTKa2
>> fVgVd3YKiSGsyL4tztS70vmmX121qm0sTJdKWP4HxXyqK9neolXI9fYyHOYI
>> LVNZ69z/73OOVhkh
>> /mvTmWZLM7GM6sApmyLX6OXUp8z0pkY+vT/9+zRxxQs7GurC4/C1nK3rI/0y
>> SUgGEafO1atNjYml
>> FN+M3tZX6nEcA6g94IavyQIDAQABoyEwHzAdBgNVHQ4EFgQUtS8kIYxQ8UVv
>> VrZSdgyide9OHxUw
>> DQYJKoZIhvcNAQELBQADggEBABfk5mqsVUrpFCYTZZhOxTRRpGXqoW1G05bO
>> xHxs42Paxw8rAJ06
>> Pty9jqM1CgRPpqvZa2lPQBQqZrHkdDE06q4NG0DqMH8NT+tNkXBe9YTre3EJ
>> CSfsvswtLVDZ7GDv
>> THKojJjQvdVCzRj6XH5Truwefb4BJz9APtnlyJIvjHk1hdozqyOniVZd0QOx
>> LAbcdt946chNdQvC
>> m6aUOputp8Xogr0KBnEy3U8es2cAfNZaEkPU8Va5bU6Xjny8zGQnXCXxPKp7
>> sMpgO93nPBt/liX1
>> qfyXM7xEotWoxmm6HZx8oWQ8U5aiXjZ5RKDWCCq4ZuXl6wVsUz1iE61suO5y
>> Wi8=> nature>admin> Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"
>> />> NotOnOrAfter="2018-07-02T13:53:46.497Z">> iction>https://localhost:10443/services/echo
>> > ons>http://wso2.org/claims/emailaddress; NameFormat="http://wso2.org/cl
>> aims/emailaddress">http://www.w3.org/2
>> 001/XMLSchema-instance" xsi:type="xs:string">ad...@wso2.com
>> http://wso2.org/claims/givenname; NameFormat="http://wso2.org/cl
>> aims/givenname">http://www.w3.org/2
>> 001/XMLSchema-instance" xsi:type="xs:string">admin> ml2:AttributeValue>> AuthnInstant="2018-07-02T13:48:46.504Z">
>> urn:oasis:names:tc:SAML:2.0:
>> ac:classes:Password> nContext>
>> Renewing 2.0
>> org.apache.rahas.TrustException: Error in renewing token from : "
>> https://localhost:9443/services/wso2carbon-sts;
>> at org.apache.rahas.client.STSClient.renewToken(STSClient.java:386)
>> at org.wso2.carbon.identity.samples.sts.Client.run(Client.java:153)
>> at org.wso2.carbon.identity.samples.sts.Client.main(Client.java:94)
>> Caused by: org.apache.axis2.AxisFault: java.lang.NullPointerException
>> at org.apache.axis2.util.Utils.getInboundFaultFromMessageContex
>> t(Utils.java:531)
>> at org.apache.axis2.description.OutInAxisOperationClient.handle
>> Response(OutInAxisOperation.java:375)
>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>> utInAxisOperation.java:421)
>> at org.apache.axis2.description.OutInAxisOperationClient.execut
>>