Nerzal / gocloak

golang keycloak client
Apache License 2.0
1.01k stars 277 forks source link

ApiKey Token? #302

Open shibumi opened 3 years ago

shibumi commented 3 years ago

Is your feature request related to a problem? Please describe.

I am working on a GRPC service for keycloak. This service is supposed to run infinitely. Is it possible to specify the ApiKey Token (instead of a JWT) in gocloak?

The difference is that the ApiKey does not expire.

Describe the solution you'd like

I would like to be able to use an ApiKey token, instead of a JWT.

Describe alternatives you've considered

Setting no expiration for the Api user.

Nerzal commented 3 years ago

Hi,

i don't think, that Keycloak supports such tokens.

shibumi commented 3 years ago

@Nerzal it does, we are using offline keys for a while now.

graza-io commented 2 years ago

I believe this Offline Access Token is the one being requested for this feature enhancement.