Indeed with a correct backend realm config , I have a Swift iOS helloworld type demo
with request/refresh/revoke tokens working just fine.
Next step, I want to share how to use oauth2 with KC and iOS with a blog post.
In this config, you specified product-inventory to be public OAuth
client. In this case, you may delete this line:
because for public applications/oauth clients, you don't need secret at all.
Also I think the exception with revocation is due to incorrect configuration of this
Do you really have this application running and deployed on localhost:8081 ? If not, you
can either delete this or update configurations.
Also it might be good to update to Keycloak 1.0.1.Final as Stian added this fix:
which cause that logout is not send to all
applications, but just to those when user is really logged into.
On 22.9.2014 10:28, Corinne Krych wrote:
> Yep indeed i think it’s an error of configuration but not sure which one i should
change. In my use case it’s a oauth2 client app. whe re should I specify the URL redirect
> See my config file here:
> do I need to define a product-inventory app? or a simple oauth2 client is enough?
> Best Regards,
> On 22 Sep 2014, at 09:44, Marek Posolda <mposolda(a)redhat.com> wrote:
>> there is exception in the log like:
>> Caused by: org.apache.http.conn.HttpHostConnectException: Connection to
>> isn't it possible that adminURL for some of your applications is not
configured correctly (like there is localhost:8081 instead of localhost:8080)?
>> Btv. I've created JIRA https://issues.jboss.org/browse/KEYCLOAK-709
currently it seems that if ResourceAdminManager.logoutUser wants to call logout to more
applications (like app1 and app2) and logout to app1 fails, then RuntimeException is
thrown and logout to app2 is not called at all, which doesn't seem to be correct
behaviour to me.
>> On 20.9.2014 17:48, Corinne Krych wrote:
>>> Trying to implement AGIOS-206  linked to , what iI need is a revoke of
all tokens (refresh and access token).
>>> I've tried ‘logout’ with a refresh token this endpoint:
>>> for a public client.
>>> I run appliance 1.0-final distribution of key cloak.
>>> But I run into this exception  after a timeout. Anything else I can try or
should I just wait for revoke feature to be implemented in Keycloak?
>>>  https://issues.jboss.org/browse/AGIOS-206
>>>  https://issues.jboss.org/browse/KEYCLOAK-312
>>>  https://gist.github.com/corinnekrych/53bd73c4e047281a94f1
>>> keycloak-dev mailing list