Class OAuth2AuthorizeRequest

    • Method Detail

      • getClientRegistrationId

        public java.lang.String getClientRegistrationId()
        Returns the identifier for the client registration.
        Returns:
        the identifier for the client registration
      • getPrincipal

        public org.springframework.security.core.Authentication getPrincipal()
        Returns the Principal (to be) associated to the authorized client.
        Returns:
        the Principal (to be) associated to the authorized client
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Returns the attributes associated to the request.
        Returns:
        a Map of the attributes associated to the request
      • getAttribute

        @Nullable
        public <T> T getAttribute​(java.lang.String name)
        Returns the value of an attribute associated to the request or null if not available.
        Type Parameters:
        T - the type of the attribute
        Parameters:
        name - the name of the attribute
        Returns:
        the value of the attribute associated to the request