-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kerberos Authentication issue: SpnegoEngineException: No LoginModules configured for " #528
Comments
I experience the same issue when upgrading from Play 2.6 to Play 2.8 on Java 11 I downgraded to |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Here are workaround which i'm found
And then use as
Don't use
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Play Version
2.8.1
API
Scala
Operating System
CentOS Linux release 7.7.1908 (Core)
JDK
OpenJDK Runtime Environment (build 1.8.0_232-b09)
Library Dependencies
N/A
Expected Behavior
The playframework doc says it supports KERBEROS AuthScheme (https://www.playframework.com/documentation/2.8.x/ScalaWS#Configuring-WS). I am trying to connect an end-point which requires Kerberos authentication from a Play web application.
-Djava.security.auth.login.config=/path/to/jaas.conf
Content of jaas.conf:
I expected play framework to use my jaas.conf and load Kerberos login module. And then use the ticket cache from the location specified in ticketCache above. Prior to running the code I had performed kinit and verified that the ticket cache had the valid token.
Actual Behavior
Is there any guide or example on how to use the WSAuthScheme.KERBEROS authentication? There are no examples or any config references for Kerberos authentication in Play framework doc (https://www.playframework.com/documentation/2.8.x/ScalaWS#Configuring-WS).
After tracing the underlying asynchttp client code, I noticed that the following line sets the loginContextName to empty string.
https://github.com/AsyncHttpClient/async-http-client/blob/master/client/src/main/java/org/asynchttpclient/spnego/SpnegoEngine.java#L178
Which is responsible for the exception: play.shaded.ahc.org.asynchttpclient.spnego.SpnegoEngineException: No LoginModules configured for "
Is there a way to configure Play server, so the loginContextName is set to a value, say "SomeContext" as in my jaas.conf? The bug seems to be with play framework not specifying a default loginContextName or allowing user to specify one.
The text was updated successfully, but these errors were encountered: