This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<EntityDescriptor | |
xmlns="urn:oasis:names:tc:SAML:2.0:metadata" entityID="localhost"> | |
<RoleDescriptor | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol" | |
xsi:type="IDPSSODescriptorType"> | |
<KeyDescriptor use="signing"> | |
<KeyInfo | |
xmlns="http://www.w3.org/2000/09/xmldsig#"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_PORT => "9443", | |
CURLOPT_URL => "https://localhost:9443/oauth2/token", | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => "", | |
CURLOPT_MAXREDIRS => 10, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export a public certificate | |
keytool -export -alias wso2carbon -file key.crt -keystore wso2carbon.jks | |
or | |
keytool -export -keystore pathToKeystore -rfc -alias aliasNameForCertificate | |
#print out the certificate | |
openssl x509 -text -inform DER -in key.crt | |
or | |
keytool -printcert -rfc -file pathToCertificate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1]. http://googletesting.blogspot.co.uk/2015/04/just-say-no-to-more-end-to-end-tests.html | |
[2]. http://misko.hevery.com/2008/07/30/top-10-things-which-make-your-code-hard-to-test/ | |
[3]. http://googletesting.blogspot.com/2008/08/by-miko-hevery-so-you-decided-to.html | |
[4]. https://drive.google.com/a/wso2.com/file/d/0B7G7aijG9EvMVU40bHZ5bEV4MTg/view?usp=sharing | |
[5]. https://www.youtube.com/watch?v=XcT4yYu_TTs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Constructor ##### | |
Ask what you need directly | |
public X(Config config) { | |
user = config.getUser(); | |
// blah | |
y = config.getY(); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2017-10-05 01:54:25,782] ERROR {org.wso2.carbon.identity.scim2.common.internal.SCIMCommonComponent} - Error in reading information from identity tables at SCIMCommonComponentStartup. | |
org.wso2.charon3.core.exceptions.CharonException: Error while parsing scim2-schema-extension.config file! | |
at org.wso2.charon3.core.config.SCIMUserSchemaExtensionBuilder.readConfiguration(SCIMUserSchemaExtensionBuilder.java:119) | |
at org.wso2.charon3.core.config.SCIMUserSchemaExtensionBuilder.buildUserSchemaExtension(SCIMUserSchemaExtensionBuilder.java:65) | |
at org.wso2.carbon.identity.scim2.common.internal.SCIMCommonComponent.activate(SCIMCommonComponent.java:66) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:498) | |
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Update Identity Extensions | |
mvn versions:update-properties -Dincludes=org.wso2.carbon.identity.* -DgenerateBackupPoms=false | |
// Update Identity Connectors packed by default | |
mvn versions:update-properties -Dincludes=org.wso2.carbon.extension.identity.* | |
// Run in release profile with signing disabled | |
mvn clean install -P wso2-release -Dgpg.skip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | |
* | |
* WSO2 Inc. licenses this file to you under the Apache License, | |
* Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<u>Servlet execution threw an exception</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet execution threw an exception | |
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) | |
org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) | |
org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124) | |
</pre></p><p><b>root cause</b> <pre>java.lang.NoSuchMethodError: javax.ws.rs.InternalServerErrorException.validate(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response; | |
javax.ws.rs.InternalServerErrorException.<init>(InternalServerErrorException.java:92) | |
org.apache.cxf.jaxrs.utils.SpecExceptions.toInternalServerErrorException(SpecExceptions.java:77) | |
org.apache.cxf.jaxrs.utils.ExceptionUtils.toInternalServerErrorExc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wso2.identity.integration.test.listeners; | |
import org.testng.ITestContext; | |
import org.testng.ITestListener; | |
import org.testng.ITestResult; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardOpenOption; |