From 99cab7457d4cb97ddea1dfab89bae52e0dbbe7a7 Mon Sep 17 00:00:00 2001 From: anushah Date: Thu, 15 Oct 2020 09:04:29 +0530 Subject: [PATCH] Add copyright info to oauth util and webserver Signed-Off-By: Anusha Hegde --- .../oauth/grant_types/oauth_utility.py | 15 +++++++++++++++ .../vsphere/oauth/grant_types/webserver.py | 19 ++++++++++++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/samples/vsphere/oauth/grant_types/oauth_utility.py b/samples/vsphere/oauth/grant_types/oauth_utility.py index 1fbe131f..aca669bd 100644 --- a/samples/vsphere/oauth/grant_types/oauth_utility.py +++ b/samples/vsphere/oauth/grant_types/oauth_utility.py @@ -1,3 +1,18 @@ +#!/usr/bin/env python + +""" +* ******************************************************* +* Copyright (c) VMware, Inc. 2020. All Rights Reserved. +* SPDX-License-Identifier: MIT +* ******************************************************* +* +* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. +""" + from vmware.vapi.stdlib.client.factories import StubConfigurationFactory from vmware.vapi.lib.connect import get_requests_connector from com.vmware.vcenter.identity_client import Providers diff --git a/samples/vsphere/oauth/grant_types/webserver.py b/samples/vsphere/oauth/grant_types/webserver.py index cc38c1ad..ff84549e 100644 --- a/samples/vsphere/oauth/grant_types/webserver.py +++ b/samples/vsphere/oauth/grant_types/webserver.py @@ -1,4 +1,18 @@ -''' +#!/usr/bin/env python + +""" +* ******************************************************* +* Copyright (c) VMware, Inc. 2020. All Rights Reserved. +* SPDX-License-Identifier: MIT +* ******************************************************* +* +* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT +* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN, +* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED +* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, +* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. + + This is a lightweight webserver ****Not recommended in a production setting**** @@ -21,8 +35,7 @@ We define listeners for two endpoints, In case, you want to change the names of these endpoints in your client, make sure to change in the below server code as well - -''' +""" try: # these imports are specific to Python 2.x