<div dir="ltr">I just tried implementing my AuthenticationProvider, and here's what I did<div><br></div><div>I copied the <b>authentication-model </b>and renamed it to <b>authentication-test</b> which is the directory where I will implement my provider. (I renamed all references so there wouldn't be duplicates, I just wanted to use the same file structure)</div>
<div><br></div><div>I deleted the Java files and created <b>TestAuthenticationProvider.java</b> and <b>TestAuthenticationProviderFactory.java</b></div><div><b><br></b></div><div>In both of them I implemented the correct interfaces, and passed on the EntityManager from the Factory to the Provider via the <b>create</b><i style="font-weight:bold"> </i>method on the constructor.</div>
<div><br></div><div>I altered the <b>pom.xml</b> in <b>keycloak/authentication</b> adding my new module like this</div><div><br></div><div><div><modules></div><div> <module>authentication-api</module></div>
<div> <module>authentication-model</module></div><div> <module>authentication-picketlink</module></div><div> <module>authentication-test</module></div><div></modules></div>
</div><div><br></div><div>I altered the <b>pom.xml</b> in <b>keycloak/server</b> adding a new dependency like this:</div><div><br></div><div><div><dependency></div><div> <groupId>org.keycloak</groupId></div>
<div> <artifactId>keycloak-authentication-model</artifactId></div><div> <version>${project.version}</version></div><div></dependency></div><div><dependency></div><div> <groupId>org.keycloak</groupId></div>
<div> <artifactId>keycloak-authentication-test</artifactId></div><div> <version>${project.version}</version></div><div></dependency></div><div><dependency></div><div> <groupId>org.keycloak</groupId></div>
<div> <artifactId>keycloak-authentication-picketlink</artifactId></div><div> <version>${project.version}</version></div><div></dependency></div></div><div><br></div><div>which is the correct artifactId that I defined in the <b>keycloak/authentication/authentication-test/pom.xml</b></div>
<div><b><br></b></div><div>I also created a <b>keycloak/authentication/authentication-test/src/main/resources/META-INF/services/org.keycloak.authentication.AuthenticationProviderFactory</b> with the following content:</div>
<div><br></div><div>org.keycloak.authentication.test.TestAuthenticationProviderFactory<br></div><div><br></div><div>the package and folder names are all correct.</div><div><br></div><div>Now I can deploy it all just fine, but when I access the admin login page, I get this output on my console:</div>
<div><br></div><div><div>16:12:33,964 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:33,965 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:33,966 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:33,966 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:33,966 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:33,967 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:33,967 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,015 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,016 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,017 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,018 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,019 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,020 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,021 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,037 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,037 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,037 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,037 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,038 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,038 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,038 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,039 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,039 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,039 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,040 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,040 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,041 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,041 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,041 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,042 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,042 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,042 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,043 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,043 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,044 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,050 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,050 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,051 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,051 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,052 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,052 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,053 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,054 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,055 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,056 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,057 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,058 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,058 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,059 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,059 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,060 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,060 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,065 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,066 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,066 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,068 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,085 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,086 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,086 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,086 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,087 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,090 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,091 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,093 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,093 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,094 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,095 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,095 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,096 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,097 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,142 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,142 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,143 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,143 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,143 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,143 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,144 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,144 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,144 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,145 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,145 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,146 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,146 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,147 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,153 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,154 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,155 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,156 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,156 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,157 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,157 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,165 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,166 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,166 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,167 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,167 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,168 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,168 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,175 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,175 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,176 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,177 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,178 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,178 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,179 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,181 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,181 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,182 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,182 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,183 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,183 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,184 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,195 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,195 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,196 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,196 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,197 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,197 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,198 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,198 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,208 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,208 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,210 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,211 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,211 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,212 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-3) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,212 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,213 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,213 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,213 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,214 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,215 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,215 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,216 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,216 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,217 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,217 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,218 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,219 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,219 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,220 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,221 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,222 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,222 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,222 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,223 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,223 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,236 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,236 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,237 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,238 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,238 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,239 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,239 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-1) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,253 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,254 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,254 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,255 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,255 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,255 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,256 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,256 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,256 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,257 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,257 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,258 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,258 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,259 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,259 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-2) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,260 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,260 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,261 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-6) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,262 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,263 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,264 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-5) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,370 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field uriInfo of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,371 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field request of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,371 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field response of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,372 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field session of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div>
<div>16:12:34,372 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field providers of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,373 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field providerSession of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>
16:12:34,373 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field keycloak of subresource org.keycloak.services.resources.admin.AdminConsole will not be injected according to spec</div><div>16:12:34,448 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field providers of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div>
<div>16:12:34,449 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field securityContext of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div><div>
16:12:34,449 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field uriInfo of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div><div>16:12:34,450 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field headers of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div>
<div>16:12:34,450 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field request of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div><div>16:12:34,451 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field response of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div>
<div>16:12:34,451 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field session of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div><div>16:12:34,452 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field transaction of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div>
<div>16:12:34,452 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field clientConnection of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div><div>
16:12:34,453 WARNING [org.jboss.resteasy.core.ResourceLocator] (http--127.0.0.1-8080-4) Field providerSession of subresource org.keycloak.services.resources.TokenService will not be injected according to spec</div><div>16:12:34,460 INFO [org.keycloak.services.resources.TokenService] (http--127.0.0.1-8080-4) TokenService.loginPage</div>
<div>16:12:34,474 INFO [org.keycloak.services.resources.TokenService] (http--127.0.0.1-8080-4) Checking cookie...</div><div>16:12:34,474 INFO [org.keycloak.services.managers.AuthenticationManager] (http--127.0.0.1-8080-4) authenticateIdentityCookie</div>
<div>16:12:34,474 INFO [org.keycloak.services.managers.AuthenticationManager] (http--127.0.0.1-8080-4) authenticateCookie could not find cookie: KEYCLOAK_IDENTITY</div><div>16:12:34,475 INFO [org.keycloak.services.resources.TokenService] (http--127.0.0.1-8080-4) createLogin() now...</div>
</div><div><br></div><div>I seem to have messed up something on the ResourceLocator, but I don't know what I did wrong, I followed the instructions to the letter. I also checked the war and I see that the new jar is created correctly<br>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 10:39 AM, Rodrigo Sasaki <span dir="ltr"><<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Alright then.<div><br></div><div>I guess I should alter the dependencies in pom.xml then, I just thought that there was another way defined, perhaps on a different layer, and that not having access to Persistence in this layer was because it was defined this way.</div>
<div><br></div><div>But that sounds simple enough, thank you for your help!</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 10:30 AM, Stian Thorgersen <span dir="ltr"><<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Add a persistence-unit for it to:<br>
<br>
* standalone/deployments/auth-server.war/WEB-INF/classes/META-INF/persistence.xml<br>
<br>
Then use Persistence.createEntityManagerFactory(name) in AuthenticationProviderFactory.init, and create a new EntityManager in AuthenticationProviderFactory.init and pass into AuthenticationProvider.<br>
<div><br>
----- Original Message -----<br>
> From: "Rodrigo Sasaki" <<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>><br>
</div><div><div>> To: "Marek Posolda" <<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>><br>
> Cc: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> Sent: Thursday, 22 May, 2014 2:20:39 PM<br>
> Subject: Re: [keycloak-user] Migrating Users Database<br>
><br>
> Hmm, I see..<br>
><br>
> In that case, since I'm using JPA, what would be the best way for me to get<br>
> access to an EntityManager on my implementation of the<br>
> AuthenticationProvider?<br>
><br>
><br>
> On Mon, May 19, 2014 at 5:20 PM, Marek Posolda < <a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a> > wrote:<br>
><br>
><br>
><br>
> Hi Rodrigo,<br>
><br>
> it's not "Settings and Authentication", but it's tab "Settings" and then top<br>
> bar called "Authentication" inside it. It will be opened if you login to<br>
> admin console and then open URL:<br>
> <a href="http://localhost:8081/auth/admin/#/realms/keycloak-admin" target="_blank">http://localhost:8081/auth/admin/#/realms/keycloak-admin</a> (Replace<br>
> 'keycloak-admin' with name of your realm, for example 'test'). Once you open<br>
> it, you can click to button "Add provider" and your provider should be<br>
> available in the list of available authentication providers.<br>
><br>
> For the inspiration, you can take a look at the existing implementations, for<br>
> example this one:<br>
> <a href="https://github.com/keycloak/keycloak/tree/master/authentication/authentication-picketlink" target="_blank">https://github.com/keycloak/keycloak/tree/master/authentication/authentication-picketlink</a><br>
> and it's configuration in file:<br>
> <a href="https://github.com/keycloak/keycloak/blob/master/authentication/authentication-picketlink/src/main/resources/META-INF/services/org.keycloak.authentication.AuthenticationProviderFactory" target="_blank">https://github.com/keycloak/keycloak/blob/master/authentication/authentication-picketlink/src/main/resources/META-INF/services/org.keycloak.authentication.AuthenticationProviderFactory</a><br>
> . Note that it's using standard java ServiceLoader mechanism described here<br>
> - <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html" target="_blank">http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html</a><br>
><br>
> You don't need implement RealmAdapter . RealmAdapter is not related to<br>
> authentication SPI. It's implementation of interface RealmModel, which is<br>
> part of model-api. You need to implement model-api just in case that you<br>
> want to create your own storage for all keycloak data, but implementing<br>
> whole model-api is much more complicated and challenging than implementation<br>
> of authentication-api.<br>
><br>
> So in shortcut, you need to implement AuthenticationProvider interface, which<br>
> will be able to read data from your internal database.<br>
><br>
> Marek<br>
><br>
><br>
> On 19.5.2014 18:05, Rodrigo Sasaki wrote:<br>
><br>
><br>
><br>
> I have done most of what you mentioned, although I didn't find the "Settings<br>
> and Authentication" part on the Realm Settings. I couldn't add the new<br>
> provider to it like you said, and the version I'm using is the one available<br>
> on the github repo.<br>
><br>
> Also I saw that I should probably implement a RealmAdapter aswell, to provide<br>
> access to my table structure, is that correct? If so, how should I configure<br>
> Keycloak to use my adapter to find users, and not it's default one? Or at<br>
> least not only it's default one<br>
><br>
><br>
> On Fri, May 16, 2014 at 4:50 AM, Stian Thorgersen < <a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a> > wrote:<br>
><br>
><br>
><br>
> We will add some documentation to this soon, but you basically need to:<br>
><br>
> - Implement<br>
> <a href="https://github.com/keycloak/keycloak/blob/master/authentication/authentication-api/src/main/java/org/keycloak/authentication/AuthenticationProviderFactory.java" target="_blank">https://github.com/keycloak/keycloak/blob/master/authentication/authentication-api/src/main/java/org/keycloak/authentication/AuthenticationProviderFactory.java</a><br>
> - Implement<br>
> <a href="https://github.com/keycloak/keycloak/blob/master/authentication/authentication-api/src/main/java/org/keycloak/authentication/AuthenticationProvider.java" target="_blank">https://github.com/keycloak/keycloak/blob/master/authentication/authentication-api/src/main/java/org/keycloak/authentication/AuthenticationProvider.java</a><br>
> - Add a<br>
> 'META-INF/services/org.keycloak.authentication.AuthenticationProviderFactory'<br>
> that contains the fully qualified name of your AuthenticationProviderFactory<br>
> implementation<br>
><br>
> Build as a JAR and drop into<br>
> keycloak/standalone/deployments/auth-server.war/WEB-INF/lib.<br>
><br>
> Start the server, open the admin console, navigate to realm settings and<br>
> authentication. Click Add Provider and it should now have your new provider.<br>
> Add it to the realm.<br>
><br>
> It will now use your provider to authenticate users.<br>
><br>
> ----- Original Message -----<br>
> > From: "Rodrigo Sasaki" < <a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a> ><br>
> > To: "Bill Burke" < <a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a> ><br>
> > Cc: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> > Sent: Thursday, 15 May, 2014 7:30:00 PM<br>
> > Subject: Re: [keycloak-user] Migrating Users Database<br>
> ><br>
> > By the way, do you have further information regarding that SPI you<br>
> > mentioned?<br>
> ><br>
> > I was looking at the source code but I couldn't derive much from it, I<br>
> > don't<br>
> > know exactly how I should implement my own provider, and how do I tell<br>
> > keycloak to use mine instead of its own.<br>
> ><br>
> ><br>
> > On Thu, May 15, 2014 at 11:05 AM, Rodrigo Sasaki < <a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a><br>
> > ><br>
> > wrote:<br>
> ><br>
> ><br>
> ><br>
> > That's quite alright at the moment.<br>
> ><br>
> > We have seen the roadmap and if it stays around the announced dates, there<br>
> > shouldn't be a problem for us here.<br>
> ><br>
> ><br>
> > On Thu, May 15, 2014 at 11:03 AM, Bill Burke < <a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a> > wrote:<br>
> ><br>
> ><br>
> > FYI, Keycloak will be very slow until we start our performance work<br>
> > (scheduled for Beta-2). Right now, every login/logout/token action is<br>
> > all DB hits. We don't cache anything at the moment!<br>
> ><br>
> > On 5/15/2014 7:02 AM, Rodrigo Sasaki wrote:<br>
> > > I am very interested in importing the whole database. It seems to be the<br>
> > > cleanest way to do what we want to do here, and migrate to keycloak<br>
> > > completely.<br>
> > ><br>
> > > Are there any guidelines on how to do this? Nonetheless I will look into<br>
> > > the SPI you mentioned, might come in handy sometime.<br>
> > ><br>
> > ><br>
> > > On Thu, May 15, 2014 at 5:13 AM, Stian Thorgersen < <a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a><br>
> > > <mailto: <a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a> >> wrote:<br>
> > ><br>
> > > At the moment we have an Authentication SPI that will let you easily<br>
> > > authenticate users with your existing database of users. The first<br>
> > > time a new user logs in using this approach a user will be pulled in<br>
> > > to the Keycloak database. There's no documentation for this feature<br>
> > > yet, but look at the SPI at<br>
> > > <a href="https://github.com/keycloak/keycloak/tree/master/authentication/authentication-api" target="_blank">https://github.com/keycloak/keycloak/tree/master/authentication/authentication-api</a><br>
> > > and the implementation that uses the Keycloak model itself to<br>
> > > authenticate at<br>
> > > <a href="https://github.com/keycloak/keycloak/tree/master/authentication/authentication-model" target="_blank">https://github.com/keycloak/keycloak/tree/master/authentication/authentication-model</a><br>
> > > .<br>
> > ><br>
> > > In the future we plan to provide a Sync SPI that will take this one<br>
> > > step further and let you sync users (and roles) to/from an existing<br>
> > > database.<br>
> > ><br>
> > > However, if you plan to completely replace your current<br>
> > > authentication system the cleanest solution may be to import your<br>
> > > current user database into Keycloak once and for all. If you're<br>
> > > interested in this approach let me know.<br>
> > ><br>
> > > ----- Original Message -----<br>
> > > > From: "Rodrigo Sasaki" < <a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a><br>
> > > <mailto: <a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a> >><br>
> > > > To: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> > > <mailto: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a> ><br>
> > > > Sent: Wednesday, 14 May, 2014 8:52:07 PM<br>
> > > > Subject: [keycloak-user] Migrating Users Database<br>
> > > ><br>
> > > > Hi,<br>
> > > ><br>
> > > > I'm trying to replace my current authentication system with<br>
> > > Keycloak, but I<br>
> > > > have one problem. I already have a database of users, populated with<br>
> > > > millions of records, and I wanted to make it work with Keycloak.<br>
> > > ><br>
> > > > What would be the best approach on this scenario? Should I<br>
> > > migrate everything<br>
> > > > to the Keycloak tables, or try to make Keycloak understand my current<br>
> > > > database?<br>
> > > ><br>
> > > > Is there any recommendation on this matter? And if there is, some<br>
> > > explanation<br>
> > > > or documentation?<br>
> > > ><br>
> > > > Thanks!<br>
> > > ><br>
> > > > --<br>
> > > > Rodrigo Sasaki<br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > keycloak-user mailing list<br>
> > > > <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a> <mailto: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a> ><br>
> > > > <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > > Rodrigo Sasaki<br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > keycloak-user mailing list<br>
> > > <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> > > <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> > ><br>
> ><br>
> > --<br>
> > Bill Burke<br>
> > JBoss, a division of Red Hat<br>
> > <a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a><br>
> > _______________________________________________<br>
> > keycloak-user mailing list<br>
> > <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> ><br>
> >admin<br>
><br>
> ><br>
> > --<br>
> > Rodrigo Sasaki<br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Rodrigo Sasaki<br>
> ><br>
> > _______________________________________________<br>
> > keycloak-user mailing list<br>
> > <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
><br>
><br>
><br>
> --<br>
> Rodrigo Sasaki<br>
><br>
><br>
> _______________________________________________<br>
> keycloak-user mailing list <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
><br>
><br>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
><br>
><br>
><br>
> --<br>
> Rodrigo Sasaki<br>
><br>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div></div></div>
</div>