Giter Club home page Giter Club logo

open-authentication-module's People

Contributors

erwin-t-hoen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

open-authentication-module's Issues

Anonymous users enabled causes login trouble

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.

Missing License

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

httpclient timeout

@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

issue while callback happens from facebook / custom oauth login...

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 !!

seeing this specific mendix runtime error...request com.mendix.core.CoreRuntimeException

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;
}

Missing library in mendix 9.6

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.