Skip to content

Conversation

@julien-nc
Copy link
Member

@julien-nc julien-nc commented Jan 21, 2025

closes #1024

This fixes a crash if refresh_expires_in or refresh_token are missing from the login token.

If refresh_expires_in is missing, let's consider the refresh token never expires.
If the refresh token is missing, let's not try to refresh the login token.

Let's also make the whole token exchange feature disabled by default.

@julien-nc julien-nc changed the title fix(token-refresh): handle missing refresh_expires_in from login token fix(token-refresh): handle missing attributes in login token Jan 22, 2025
@julien-nc julien-nc merged commit 79dfec2 into main Jan 23, 2025
45 checks passed
@julien-nc julien-nc deleted the fix/1024/no-token_refresh_expires_in branch January 23, 2025 10:55
@julien-nc julien-nc mentioned this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undefined array key "refresh_expires_in" at /config/www/nextcloud/apps/user_oidc/lib/Model/Token.php#27 (connecting via OpenID via Authentik)

3 participants