Skip to content

Instantly share code, notes, and snippets.

View omindu's full-sized avatar

Omindu Rathnaweera omindu

  • Colombo, Sri Lanka
View GitHub Profile
@omindu
omindu / buildAllExtensions.sh
Last active August 5, 2017 20:20 — forked from pulasthi7/buildAllExtensions.sh
Clones all the IS extensions repos
echo "building framework"
cd identity-framework
mvn clean install -Dmaven.test.skip=true
if [ $? -ne 0 ]
then
cd ..
echo Build failed at identity-framework
notify-send "Build failed at identity-framework"
exit 1
else
$ wum-dev update wso2esb-4.9.0 1077
Connecting to WSO2 Update...
Updating wso2esb-4.9.0...
165 released updates and 1 update(s) in testing state are available
45 already downloaded, 121 to download
Verifying downloaded updates...
Downloading updates... [0/121]
unexpected fault address 0x6a01c14660aa
fatal error: fault
<?xml version="1.0" encoding="UTF-8"?>
<!--
# Copyright 2015 WSO2 Inc. (http://wso2.org)
#
# 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
#
public User getUser(String uniqueUserId) throws IdentityStoreException, UserNotFoundException {
//Pre handler
Map<String, Object> eventProperties = new HashMap<>();
eventProperties.put(IdentityStoreConstants.UNIQUE_USED_ID, uniqueUserId);
Event event = new Event(IdentityStoreInterceptorConstants.PRE_GET_USER_BY_ID, eventProperties);
IdentityMgtMessageContext messageContext = new IdentityMgtMessageContext(event);
try {
@omindu
omindu / samlsso_notification.jsp
Last active July 12, 2016 20:55
Modified samlsso_notification.jsp to POST SAML error response to ACS URL
<%--
~ Copyright (c) 2016, 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
~
NameCallback usernameCallback = new NameCallback("username");
PasswordCallback passwordCallback = new PasswordCallback("password", false);
usernameCallback.setName("admin");
passwordCallback.setPassword(new char[]{'a', 'd', 'm', 'i', 'n'};
Callback[] callbacks = {usernameCallback, passwordCallback};
try {
//Authentication
@omindu
omindu / osgi> b 15
Last active September 3, 2017 04:07
osgi> b 15
axiom_1.2.11.wso2v10 [15]
Id=15, Status=ACTIVE Data Root=/product-is/modules/distribution/target/wso2is-5.1.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/15/data
"No registered services."
No services in use.
Exported packages
org.jaxen.saxpath.base; version="1.1.1"[exported]
org.apache.axiom.om.impl.serialize; version="1.2.11.wso2v10"[exported]
org.apache.axiom.util.stax; version="1.2.11.wso2v10"[exported]