[keycloak-user] Problem when having no auth-method

Rodrigo Sasaki rodrigopsasaki at gmail.com
Thu Jun 5 08:29:12 EDT 2014


Submitted the PR,

please let me know if I failed at anything regarding this, this is my first
PR


On Thu, Jun 5, 2014 at 9:02 AM, Rodrigo Sasaki <rodrigopsasaki at gmail.com>
wrote:

> Sure, I'll look into it right now
>
>
>
> On Thu, Jun 5, 2014 at 5:35 AM, Stian Thorgersen <stian at redhat.com> wrote:
>
>> That looks good to me, do you fancy submitting a PR?
>>
>> ----- Original Message -----
>> > From: "Rodrigo Sasaki" <rodrigopsasaki at gmail.com>
>> > To: keycloak-user at lists.jboss.org
>> > Sent: Wednesday, 4 June, 2014 8:02:26 PM
>> > Subject: [keycloak-user] Problem when having no auth-method
>> >
>> > Hi,
>> >
>> > I was trying to deploy some of my company's applications on keycloak,
>> and in
>> > one of them I got this error:
>> >
>> > Caused by: java.lang.NullPointerException
>> > at
>> >
>> org.keycloak.subsystem.extension.KeycloakAdapterConfigDeploymentProcessor.deploy(KeycloakAdapterConfigDeploymentProcessor.java:73)
>> > at
>> >
>> org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)
>> > [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
>> > ... 5 more
>> >
>> > I went to investigate and I found that on line 73 of
>> > KeycloakAdapterConfigDeploymentProcessor there was this:
>> >
>> > loginConfig.getAuthMethod().equalsIgnoreCase("KEYCLOAK")
>> >
>> > and I did some digging and it happens that in this particular project,
>> there
>> > is no auth-method identified on web.xml, so loginConfig.getAuthMethod
>> > returned null.
>> >
>> > All I did was change the comparison to this:
>> >
>> > "KEYCLOAK".equalsIgnoreCase(loginConfig.getAuthMethod())
>> >
>> > And it all works. I don't know if this defines a problem in the scope
>> of your
>> > project, but it would be good to inform you
>> >
>> >
>> > --
>> > Rodrigo Sasaki
>> >
>> > _______________________________________________
>> > keycloak-user mailing list
>> > keycloak-user at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>
>
> --
> Rodrigo Sasaki
>



-- 
Rodrigo Sasaki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140605/c3a0378e/attachment.html 


More information about the keycloak-user mailing list