java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.oauth2.client.oidc.authentication.event.OidcUserRefreshedEvent
All Implemented Interfaces:
Serializable

public final class OidcUserRefreshedEvent extends org.springframework.context.ApplicationEvent
An event that is published when an OidcUser is refreshed as a result of using a refresh_token to obtain an OAuth 2.0 Access Token Response that contains an id_token.
Since:
6.5
See Also:
  • Constructor Details

  • Method Details

    • getAccessTokenResponse

      public OAuth2AccessTokenResponse getAccessTokenResponse()
      Returns the OAuth2AccessTokenResponse that triggered the event.
      Returns:
      the access token response
    • getOldOidcUser

      public OidcUser getOldOidcUser()
      Returns the original OidcUser.
      Returns:
      the original user
    • getNewOidcUser

      public OidcUser getNewOidcUser()
      Returns the refreshed OidcUser.
      Returns:
      the refreshed user
    • getAuthentication

      public Authentication getAuthentication()
      Returns the authentication result.
      Returns:
      the authentication result