예제 #1
0
파일: common.py 프로젝트: akkmzack/RIOS-8.5
def services(environ, start_response):
    """!
    Return all the namespaces and versions supported by this device.
    @param environ the WSGI environment variables
    @param start_response the WSGI response callback
    """
    return wsgiutils.JsonResponse(get_engine().get_namespaces()).send(start_response)
예제 #2
0
파일: common.py 프로젝트: akkmzack/RIOS-8.5
def auth_info(environ, start_response):
    """!
    Returns information that may be necessary to properly authenticate to the device.
    @param environ the WSGI environment variables
    @param start_response the WSGI response callback
    """
    return wsgiutils.JsonResponse(get_engine().get_auth_info()).send(start_response)
예제 #3
0
파일: common.py 프로젝트: akkmzack/RIOS-8.5
def token(environ, start_response):
    """!
    Generate an access token and return it to the client after
    validating the provided access code.
    @param environ the WSGI environment variables
    @param start_response the WSGI response callback
    """
    return get_engine().handle_token_request(environ, start_response)