fix tokenendpoint interaction by using "getExt" instead of "getAttribute"