@must_be_logged_in
def oauth_application_detail(auth, **kwargs):
 client_id = kwargs.get('client_id')
 try:
  record = ApiOAuth2Application.find_one(Q('client_id', 'eq', client_id))
 except NoResultsFound:
  raise HTTPError(http.NOT_FOUND)
 except ValueError:
  raise HTTPError(http.NOT_FOUND)
 if (record.owner != auth.user):
  raise HTTPError(http.FORBIDDEN)
 if (record.is_active is False):
  raise HTTPError(http.GONE)
 app_detail_url = api_v2_url('applications/{}/'.format(client_id))
 return {'app_list_url': '', 'app_detail_url': app_detail_url}

@ must_be_logged_in def oauth_application_detail ( auth , ** kwargs ) : client_id = kwargs . get ( 'client_id' ) try : record = ApiOAuth2Application . find_one ( Q ( 'client_id' , 'eq' , client_id ) ) except NoResultsFound : raise HTTPError ( http . NOT_FOUND ) except ValueError : raise HTTPError ( http . NOT_FOUND ) if ( record . owner != auth . user ) : raise HTTPError ( http . FORBIDDEN ) if ( record . is_active is False ) : raise HTTPError ( http . GONE ) app_detail_url = api_v2_url ( 'applications/{}/' . format ( client_id ) ) return { 'app_list_url' : '' , 'app_detail_url' : app_detail_url }
show detail for a single oauth application .