erwin-t-hoen / open-authentication-module Goto Github PK
View Code? Open in Web Editor NEWAvailable in the Mendix App Store
Available in the Mendix App Store
When you have anonymous users enabled you are not able to login via the callback because of an existing session that is being detected and used in the loginhelper.
If you change line 52 of /oauthmodule/actions/custom/LoginHelper.java into
if (activeSession.getId().toString().equals(cookie) && !activeSession.getUser().isAnonymous()) {
It will ignore any anonymous user session and overwrite the anonymous user session with a fresh user session.
Greetings,
Are there any future plans for updating the module for Mendix Studio Pro 9 version?
This repository is missing a LICENSE file. What are the terms of use for this module? Are free to modify and use the source code as we please for our Mendix projects?
Thanks,
Brian
@Erwin-t-Hoen , thank you for the module you made, we use it every day.
One question, when using your module in a custom Java action, how would you advice to implement a http client timeout, we noticed there is no default timeout. Connections can hang indefinitely
I am successfully able to log into the facebook / custom oauth login and then authenticate / authorize the user credentials. But, when the callback happens (http:///callback/facebook?xxx), it fails saying that there is an error while processing request. This comes from the java code 'processRequest()' of oauthcallback.java class.
Essentially, this takes the oauthtoken_url as the input...but fails when it tries to execute the url...not sure if the issue is in the code which picks this up or its the way we are passing the oauthtoken url...need help here !!
Exception occurred while processing request com.mendix.core.CoreRuntimeException: Missing Oauth configuration, please contact the application administrator
Not sure what's the issue here...but its failing at a point in code where its trying to add something into IContext object (oauthconfig class)
private OAuthConfig getConfig(IContext context){
try {
OAuthConfig configuration = XPath.create(context, OAuthConfig.class).first();
if (configuration == null) {
throw new CoreRuntimeException(
"Missing Oauth configuration, please contact the application administrator");
}
return configuration;
} catch (CoreException e) {
Core.getLogger("OauthCallback").error("Something went wrong while retrieving the Oauth configuration. \n"+ e);
}
return null;
}
Hello Erwin,
Im trying to use your module in my app. And it worked for a while but then i got this error.
Its missing librarys how do i fix this? Could you please help.
Buildfile: D:\Mendix\Microservices Transport-main\deployment\build_core.xml
compile:
[javac] Compiling 209 source files to D:\Mendix\Microservices Transport-main\deployment\run\bin
[javac] D:\Mendix\Microservices Transport-main\javasource\loginweb\actions\DecodeJWT.java:36: error: package oidc.proxies does not exist
[javac] oidc.proxies.JWT mxJWT = new oidc.proxies.JWT(getContext());
[javac] ^
[javac] D:\Mendix\Microservices Transport-main\javasource\loginweb\actions\DecodeJWT.java:36: error: package oidc.proxies does not exist
[javac] oidc.proxies.JWT mxJWT = new oidc.proxies.JWT(getContext());
[javac] ^
[javac] D:\Mendix\Microservices Transport-main\javasource\loginweb\actions\DecodeJWTPlainText.java:36: error: cannot find symbol
[javac] return new String(Base64.getDecoder().decode(jwt.getPayload()));
[javac] ^
[javac] symbol: method getPayload()
[javac] location: variable jwt of type DecodedJWT
[javac] D:\Mendix\Microservices Transport-main\javasource\loginweb\actions\DecodeVerifyJWTPlainText.java:58: error: method RSA256 in class Algorithm cannot be applied to given types;
[javac] Algorithm algorithm = Algorithm.RSA256((RSAPublicKey) jwk.getPublicKey(), null);
[javac] ^
[javac] required: RSAKey
[javac] found: RSAPublicKey,
[javac] reason: actual and formal argument lists differ in length
[javac] D:\Mendix\Microservices Transport-main\javasource\loginweb\actions\DecodeVerifyJWTPlainText.java:69: error: incompatible types: com.auth0.jwt.JWTVerifier cannot be converted to com.auth0.jwt.interfaces.JWTVerifier
[javac] JWTVerifier verifier = verification.build(); //Reusable verifier instance
[javac] ^
[javac] D:\Mendix\Microservices Transport-main\javasource\loginweb\actions\DecodeVerifyJWTPlainText.java:71: error: cannot find symbol
[javac] return new String(Base64.getDecoder().decode(jwtv.getPayload()));
[javac] ^
[javac] symbol: method getPayload()
[javac] location: variable jwtv of type DecodedJWT
[javac] Note: D:\Mendix\Microservices Transport-main\javasource\system\UserActionsRegistrar.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 6 errors
BUILD FAILED
D:\Mendix\Microservices Transport-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details.
Total time: 3 seconds
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.