secureauthcorp / saidp-sdk-java Goto Github PK
View Code? Open in Web Editor NEWJava SDK for SecureAuth IdP API
Home Page: https://www.secureauth.com
License: BSD 3-Clause "New" or "Revised" License
Java SDK for SecureAuth IdP API
Home Page: https://www.secureauth.com
License: BSD 3-Clause "New" or "Revised" License
Add exception handling in the SDK. This will allow users of the SDK to not be required to parse responses to identify errors in response.
Add support for the use of a spring template versus the use of jersey 1.x
@rrowcliffe @thomasleplus @CharlieC3 @elordahl
We are using websphere 9 as app server running on JAVA8 , and have currenlty support to TLS1.0 , TLS1.1 and TSL 1.2.
Error:Already connected javax.ws.rs.ProcessingException: Already connected error on making API calls
Stack :
https://XXXX:443/secureauth1/api/v1/adaptauth
Error:Already connected
javax.ws.rs.ProcessingException: Already connected
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:236)
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:655)
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:652)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:422)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:652)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:412)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:321)
at org.secureauth.sarestapi.resources.SAExecuter.executePostRequest(SAExecuter.java:406)
at org.secureauth.sarestapi.SAAccess.adaptiveAuthQuery(SAAccess.java:188)
Properties set when creating api connection :
ssl=true
selfSigned=false or selfSigned=true ( both have same issue)
We also added self-signed cert on websphere , dint make any difference .
NOTE : I can make https calls from my local machine without any issue with the following property settings and no certs in place:
ssl=true
selfSigned=true
PS . found this piece of code in SAExceuter.java
org.secureauth.sarestapi.resources.SAExecuter#createConnection
ctx = SSLContext.getInstance("TLS"); does it supposed to be TLSv1.0 /TLSv1.2 ?
@sa-rrowcliffe
validateUserPin call always returns pin as invalid even providing right pin value
scenario:
step1: deliverAdHocOTPByPhone ==> (userid , phoneNumber) ==>
{
"status": "valid",
"message": "",
"user_id": "userid",
"otp": 495723
}
step 2: validateOTP (userid, 495723) ==>
{
"status": "invalid",
"message": "PIN is invalid."
}
Note : this is happening with v1.0.1 and later API versions
Need to support delivery of One Time Passcodes in native languages.
This will need to become an option to add Accept Language as a configurable parameter
Add support for 9.0 IDM feature support
Is the current group-id correct? The maven metadata currently looks like:
<dependency>
<groupId>org.secureauth.sarestapi</groupId>
<artifactId>saRestApi</artifactId>
<version>1.0.1-SNAPSHOT</version>
</dependency>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.