Updated Keycloak token resource to use model directly