code: def auth(self, request):
          
          # create app
          redirect_uris = '%s://%s%s' % (request.scheme, request.get_host(),
                                         reverse('mastodon_callback'))
          us = UserService.objects.get(user=request.user,
                                       name='ServiceMastodon')
          client_id, client_secret = MastodonAPI.create_app(
              client_name="TriggerHappy", api_base_url=us.host,
              redirect_uris=redirect_uris)
  
          us.client_id = client_id
          us.client_secret = client_secret
          us.save()
  
          us = UserService.objects.get(user=request.user,
                                       name='ServiceMastodon')
          # get the token by logging in
          mastodon = MastodonAPI(
              client_id=client_id,
              client_secret=client_secret,
              api_base_url=us.host
          )
          token = mastodon.log_in(username=us.username, password=us.password)
          us.token = token
          us.save()
          return self.callback_url(request)
docs: get the auth of the services
              :param request: contains the current session
              :type request: dict
              :rtype: dict