From ba666ddbfa0de64319e5466adc56008755ed7dd3 Mon Sep 17 00:00:00 2001 From: Mike Grima Date: Tue, 16 Feb 2016 14:57:12 -0800 Subject: [PATCH] Removed deprecated auth api endpoint. --- lemur/auth/views.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lemur/auth/views.py b/lemur/auth/views.py index 7493cb37..b5f828cb 100644 --- a/lemur/auth/views.py +++ b/lemur/auth/views.py @@ -9,7 +9,7 @@ import jwt import base64 import requests -from flask import g, Blueprint, current_app +from flask import Blueprint, current_app from flask.ext.restful import reqparse, Resource, Api from flask.ext.principal import Identity, identity_changed @@ -100,9 +100,6 @@ class Login(Resource): return dict(message='The supplied credentials are invalid'), 401 - def get(self): - return {'username': g.current_user.username, 'roles': [r.name for r in g.current_user.roles]} - class Ping(Resource): """