def test_ssl_only_ssl_request_succeeds(self):
    self.initialize(scope_names=['verify'])
    settings.DJOAUTH2_SSL_ONLY = True

    access_token = self.create_access_token(self.user, self.client)

    api_request = self.oauth_client.make_api_request(
        access_token, {}, use_ssl=True)

    api_endpoint = make_oauth_protected_endpoint('verify')

    response = api_endpoint(api_request)
    self.assertIs(response, True, response)
Return the details of the selected user.
dataset/ETHPy150Open Locu/djoauth2/djoauth2/tests/test_endpoint.py/TestOAuthScopeEndpointDecorator.test_ssl_only_ssl_request_succeeds--crossover with--dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/user_management/api_views.py/APIUserView.get