def auth_callback()

in sample-Python-KeyVault-Function/init-manual-service-principal.py [0:0]


def auth_callback(server, resource, scope):
    credentials = ServicePrincipalCredentials(
        client_id = '<CLIENT ID>',
        secret = '<CLIENT SECRET>', 
        tenant = '<TENANT GUID>',
        resource = "https://vault.azure.net"
    )
    token = credentials.token
    return token['token_type'], token['access_token']