'Stores the data belonging to an authorization code token.
:param authorization_code: An instance of
:class:`oauth2.datatype.AuthorizationCode`.'

def save_code(self, authorization_code):

    orm_code = orm.OAuthCode(client_id=authorization_code.client_id, code=authorization_code.code, expires_at=authorization_code.expires_at, user_id=authorization_code.user_id, redirect_uri=authorization_code.redirect_uri)
    self.db.add(orm_code)
    self.db.commit()
