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
PHNhbWwyOkFzc2VydGlvbiBJRD0iXzQ4ZWM0N2ViNjViODUwMGE0NTQyM2RjOGYxOWI5OGExIiBJc3N1ZUluc3RhbnQ9IjIwMTctMDMtMDJUMjE6MDQ6MzYuNTI5WiIgVmVyc2lvbj0iMi4wIiB4bWxuczpzYW1sMj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmFzc2VydGlvbiIgeG1sbnM6eHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIj48c2FtbDI6SXNzdWVyIEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm5hbWVpZC1mb3JtYXQ6ZW50aXR5Ij5sb2NhbGhvc3Q8L3NhbWwyOklzc3Vlcj48ZHM6U2lnbmF0dXJlIHhtbG5zOmRzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCjxkczpTaWduZWRJbmZvPg0KPGRzOkNhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiLz4NCjxkczpTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiLz4NCjxkczpSZWZlcmVuY2UgVVJJPSIjXzQ4ZWM0N2ViNjViODUwMGE0NTQyM2RjOGYxOWI5OGExIj4NCjxkczpUcmFuc2Zvcm1zPg0KPGRzOlRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNlbnZlbG9wZWQtc2lnbmF0dXJlIi8%2BDQo8ZHM6VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48ZW |
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.sample.user.store.manager; | |
import org.apache.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.wso2.carbon.CarbonConstants; | |
import org.wso2.carbon.user.core.UserRealm; | |
import org.wso2.carbon.user.core.UserStoreException; | |
import org.wso2.carbon.user.core.claim.ClaimManager; | |
import org.wso2.carbon.user.core.jdbc.JDBCRealmConstants; | |
import org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager; |
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
@Override | |
public boolean doAuthenticate(String userName, Object credential) throws UserStoreException { | |
if (CarbonConstants.REGISTRY_ANONNYMOUS_USERNAME.equals(userName)) { | |
log.error("Anonymous user trying to login"); | |
return false; | |
} | |
Connection dbConnection = null; | |
ResultSet rs = null; |
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
TID: [-1] [] [2017-03-09 00:39:46,956] DEBUG | |
{org.apache.synapse.transport.http.wire} - HTTPS-Listener I/O dispatcher-26 >> "POST /subscriber/v1.0.0/* HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire} | |
TID: [-1] [] [2017-03-09 00:39:46,957] DEBUG | |
{org.apache.synapse.transport.http.wire} - HTTPS-Listener I/O dispatcher-26 >> "Host: md-bdadev-127.verizon.com:7443[\r][\n]" {org.apache.synapse.transport.http.wire} | |
TID: [-1] [] [2017-03-09 00:39:46,957] DEBUG | |
{org.apache.synapse.transport.http.wire} - HTTPS-Listener I/O dispatcher-26 >> "Content-Length: 345[\r][\n]" {org.apache.synapse.transport.http.wire} | |
TID: [-1] [] [2017-03-09 00:39:46,957] DEBUG | |
{org.apache.synapse.transport.http.wire} - HTTPS-Listener I/O dispatcher-26 >> "Accept: application/json[\r][\n]" {org.apache.synapse.transport.http.wire} | |
TID: [-1] [] [2017-03-09 00:39:46,957] DEBUG | |
{org.apache.synapse.transport.http.wire} - HTTPS-Listener I/O dispatcher-26 >> "Accept-Encoding: gzip, deflate, br[\r][\n]" {org.apache.synapse.transport.http.wir |
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-03-09 22:57:58,419] ERROR {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore} - Error while storing session data | |
java.io.NotSerializableException: org.apache.tomcat.util.net.jsse.JSSESupport | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) | |
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) | |
at java.util.HashMap.internalWriteEntries(HashMap.java:1785) | |
at java.util.HashMap.writeObject(HashMap.java:1362) | |
at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:498) | |
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028) |
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. | |
* | |
* Licensed 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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
<ServiceProvider> | |
<ApplicationID>3</ApplicationID> | |
<ApplicationName>travelocity.com</ApplicationName> | |
<Description>travelocity Service Provider</Description> | |
<IsSaaSApp>false</IsSaaSApp> | |
<InboundAuthenticationConfig> | |
<InboundAuthenticationRequestConfigs> | |
<InboundAuthenticationRequestConfig> | |
<InboundAuthKey>travelocity.com</InboundAuthKey> | |
<InboundAuthType>samlsso</InboundAuthType> |
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
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
#ServerName www.example.com |
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
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
#ServerName www.example.com |
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
private static OkHttpClient getUnsafeOkHttpClient() { | |
try { | |
// Create a trust manager that does not validate certificate chains | |
final TrustManager[] trustAllCerts = new TrustManager[]{ | |
new X509TrustManager() { | |
@Override | |
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, | |
String authType) throws CertificateException { | |
} |