default Principal filter(final Service service,
                             final Principal principal,
                             final RegisteredService registeredService,
                             final OAuth20AccessToken accessToken) throws Throwable {
        val scopes = accessToken != null ? new LinkedHashSet<>(accessToken.getScopes()) : Set.<String>of();
        return filter(service, principal, registeredService, scopes, accessToken);
    }
Filter principal.

@param service           the service
@param principal         the principal
@param registeredService the registered service
@param accessToken       the access token
@return the principal
@throws Throwable the throwable
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/profile/OAuth20ProfileScopeToAttributesFilter.java