old_contents: # Copyright (C) 2016 University of Zurich.  All rights reserved.
  #
  # This file is part of MSRegistry Backend.
  #
  # MSRegistry Backend is free software: you can redistribute it and/or
  # modify it under the terms of the version 3 of the GNU Affero General
  # Public License as published by the Free Software Foundation, or any
  # other later version.
  #
  # MSRegistry Backend is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the version
  # 3 of the GNU Affero General Public License for more details.
  #
  # You should have received a copy of the version 3 of the GNU Affero
  # General Public License along with MSRegistry Backend.  If not, see 
  # <http://www.gnu.org/licenses/>.
  
  __author__ = "Filippo Panessa <filippo.panessa@uzh.ch>"
  __copyright__ = ("Copyright (c) 2016 S3IT, Zentrale Informatik,"
  " University of Zurich")
  
  from flask import jsonify
  
  from . import auth
  from app.auth.decorators import requires_auth
  
  @auth.route('/test')
  @requires_auth
  def authTest():
      return jsonify({'status': 200, 
                      'code': 'authorization_success',
                      'description': "All good. You only get this message if you're authenticated."
                      })
  
  
new_contents: # Copyright (C) 2016 University of Zurich.  All rights reserved.
  #
  # This file is part of MSRegistry Backend.
  #
  # MSRegistry Backend is free software: you can redistribute it and/or
  # modify it under the terms of the version 3 of the GNU Affero General
  # Public License as published by the Free Software Foundation, or any
  # other later version.
  #
  # MSRegistry Backend is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the version
  # 3 of the GNU Affero General Public License for more details.
  #
  # You should have received a copy of the version 3 of the GNU Affero
  # General Public License along with MSRegistry Backend.  If not, see 
  # <http://www.gnu.org/licenses/>.
  
  __author__ = "Filippo Panessa <filippo.panessa@uzh.ch>"
  __copyright__ = ("Copyright (c) 2016 S3IT, Zentrale Informatik,"
  " University of Zurich")
  
  from flask import jsonify
  
  from . import auth
  from app.auth.decorators import requires_auth
  
  @auth.route('/test')
  @requires_auth
  def authTest():
      return jsonify({'code': 'authorization_success',
                      'description': "All good. You only get this message if you're authenticated."
                      })
  
  
subject: Remove code field from API /auth/test response