Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

136
Vistas
Apache OpenID Connect refreshing token early

I'm using mod_auth_openidc on my resource server with ORY HYDRA on the OAuth provider and a custom login & consent provider. OpenID Connect flows properly through login and consent and directs back to the resource server, and the session persists for some time (seems to be about 30 minutes - maybe shorter with inactivity). After that time, the next request the client makes is directed back to the login and consent provider, even if the id token has not expired. My OAuth provider definitely remembers the session because it immediately passes the client back to the resource server, but with a new token.

As an example, I began a session at 1587483280 and was issued a token with an expiration time of 1587486880. The session persisted and I was able to navigate around the resource server without being redirected to the login and consent provider. After about 10 minutes of inactivity, the next page load directed me to the login and consent provider, which immediately sent me back to the resource server with a new token with an issue time of 1587485777 and an expiry time of 1587489377. I can also see that I have a new auth_openidc session ID.

I'm very new to OAuth, so I'm not really sure where to start troubleshooting this. Can anybody recommend a starting point?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You need to add scope=offline to be able to get a refresh token.

There is some additional information to this https://www.ory.sh/hydra/docs/debugging/#oauth-20-refresh-token-is-missing

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda