[keycloak-dev] examples/distro reworked/improved/finalized PLEASE TRY!
Marek Posolda
mposolda at redhat.com
Mon Jan 13 13:13:13 EST 2014
On 10.1.2014 18:07, Marek Posolda wrote:
> On 10.1.2014 17:05, Bill Burke wrote:
>>
>> On 1/10/2014 10:27 AM, Marek Posolda wrote:
>>> On 10.1.2014 15:23, Bill Burke wrote:
>>>>
>>>> On 1/10/2014 5:51 AM, Marek Posolda wrote:
>>>>> Just a small note that there is a typo in
>>>>> https://github.com/keycloak/keycloak/blob/master/examples/as7-eap-demo/README.md
>>>>>
>>>>>
>>>>> in step1. For EAP 6.x it should be "keycloak-eap6-adapter-dist.zip"
>>>>> when
>>>>> currently it talks about "keycloak-as7-adapter-dist.zip" .
>>>>>
>>>> Good catch.
>>>>
>>>>> Another possible good thing would be to have "quickstart" appliance
>>>>> for
>>>>> everything bundled in single ZIP (wildfly server with auth-server,
>>>>> datasource, adapters, test-realm installed and all examples deployed).
>>>>> This will enable possibility for users to start really quickly playing
>>>>> with Keycloak without need to import realm in admin-console and
>>>>> build/deploy examples with maven. Of course, this may not be
>>>>> possible if
>>>>> examples will be moved to separate repo.
>>>>>
>>>> That's a *REALLY* good idea. I'll do that.
>>>>
>>>> BTW, not sure about your addition to CDI yet to one of the examples.
>>>> We will be trimming down the Wildfly distro in the near future and CDI
>>>> will be one of the subsystems that will be removed.
>>> oops, I did it this way as you asked for it:-) You mentioned CDI or
>>> Spring in another thread.
>>>
>> I didn't think it all the way through, its my fault. We can re-use
>> the file configuration stuff though you did.
> np, good that we clarify how to do it. So I will try to update my PR by
> Monday and will update both as7 and wildfly examples. Hope that 3rd
> attempt will be successful:-)
So I've refactored it as discussed. So now:
- Application "third-party" is reading configuration of
ServletOAuthClient from JSON file. There is no other change in it
- Application "third-party-cdi" has been added with oauth-client example
using CDI+JSF
I've added this to both as7-examples and wildfly-examples. For wildfly,
I am seeing the ClassCastException issue described in
https://issues.jboss.org/browse/KEYCLOAK-256 .
I didn't change anything in distribution, so for now, new application
oauth-client-cdi is not used in any distribution.
According to latest stuff discussed in the list, it seems that URLs in
newly added keycloak.json files would need to be changed as well. Let me
know when refactoring of URLs is done and I will adapt again my PR (or
you can change by yourself during merge of my PR:-) )
Marek
More information about the keycloak-dev
mailing list