I needed to implement the Authorization Code method, rather than Implicit. This requires the response_type to be set to 'code' rather than 'token'. I have now made this an optional attribute that defaults to 'token'