code: public static String getClientIdFromAuthenticatedProfile(final CommonProfile profile) {
          if (profile.containsAttribute(OAuth20Constants.CLIENT_ID)) {
              val attribute = profile.getAttribute(OAuth20Constants.CLIENT_ID);
              return CollectionUtils.toCollection(attribute, ArrayList.class).get(0).toString();
          }
          return null;
      }
docs: Gets client id from authenticated profile.
  
  @param profile the profile
  @return the client id from authenticated profile