[keycloak-user] Same access_token and refresh_token

Bruno Oliveira bruno at abstractj.org
Tue Apr 26 16:51:03 EDT 2016


On 2016-04-25, Helio Frota wrote:
> Hi Bruno,
>
> You mean this ? :
> https://github.com/keycloak/keycloak/blob/master/examples/admin-client/example-realm.json#L8-L38
>
> I'm using this generated by KC server:
> https://gist.github.com/helio-frota/6a8293d0ba57e53f19837462aa4ad265
>
> The project is:
> https://github.com/keycloak/keycloak-nodejs-auth-utils/

I can be wrong, but for Node.js applications I'd try service accounts:
http://keycloak.github.io/docs/userguide/keycloak-server/html/service-accounts.html

>
> In this case the function is:
> https://github.com/keycloak/keycloak-nodejs-auth-utils/blob/master/lib/grant-manager.js#L195

How to reproduce your real issue?

>
> And after change the URL and parameters to the new way, I'm still getting
> the same token

They have the same value, but both fields have different purposes.
See: https://tools.ietf.org/html/rfc6749#section-1.://tools.ietf.org/html/rfc6749#section-1.4 and
http://keycloak.github.io/docs/userguide/keycloak-server/html/timeouts.html#token-timeouts.

>
> [ screenshot attached ]
>
> Thanks
>
>
>
> On Mon, Apr 25, 2016 at 4:21 PM, Bruno Oliveira <bruno at abstractj.org> wrote:
>
> > Ahoy, have you tried to look at this:
> > https://github.com/keycloak/keycloak/tree/master/examples/admin-client ?
> >
> > btw if what you're doing is OSS, just share your codebase and I can try
> > to look at this.
> >
> > On 2016-04-25, Helio Frota wrote:
> > > Hi,
> > >
> > > Doing exact the same as:
> > >
> > >
> > http://keycloak.github.io/docs/userguide/keycloak-server/html_single/index.html#direct-access-grants
> > >
> > >
> > > I'm getting the same value for  "access_token" and "refresh_token"
> > >
> > > Is needed configure something to get the same behavior described on docs
> > ?
> > >
> > > Thanks !
> >
> > > _______________________________________________
> > > keycloak-user mailing list
> > > keycloak-user at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >
> >
> > --
> >
> > abstractj
> > PGP: 0x84DC9914
> >


> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


--

abstractj
PGP: 0x84DC9914


More information about the keycloak-user mailing list