Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nathanmcnulty/7501f7cc6962dcf75d57a4343232535f to your computer and use it in GitHub Desktop.

Select an option

Save nathanmcnulty/7501f7cc6962dcf75d57a4343232535f to your computer and use it in GitHub Desktop.
Logic App for Company Branding Custom CSS
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Condition": {
"actions": {},
"else": {
"actions": {}
},
"expression": {
"and": [
{
"endsWith": [
"@body('Parse_JSON')?['Referer']",
"login.microsoftonline.com/"
]
}
]
},
"runAfter": {
"Parse_JSON": [
"Succeeded"
]
},
"type": "If"
},
"Parse_JSON": {
"inputs": {
"content": "@triggerOutputs()?['headers']",
"schema": {
"properties": {
"headers": {
"properties": {
"Accept": {
"type": "string"
},
"Accept-Encoding": {
"type": "string"
},
"Accept-Language": {
"type": "string"
},
"CLIENT-IP": {
"type": "string"
},
"Cookie": {
"type": "string"
},
"DISGUISED-HOST": {
"type": "string"
},
"Host": {
"type": "string"
},
"Max-Forwards": {
"type": "string"
},
"Referer": {
"type": "string"
},
"Sec-Fetch-Dest": {
"type": "string"
},
"Sec-Fetch-Mode": {
"type": "string"
},
"Sec-Fetch-Site": {
"type": "string"
},
"User-Agent": {
"type": "string"
},
"WAS-DEFAULT-HOSTNAME": {
"type": "string"
},
"X-ARR-LOG-ID": {
"type": "string"
},
"X-ARR-SSL": {
"type": "string"
},
"X-AppService-Proto": {
"type": "string"
},
"X-Forwarded-For": {
"type": "string"
},
"X-Forwarded-Proto": {
"type": "string"
},
"X-Forwarded-TlsVersion": {
"type": "string"
},
"X-Original-URL": {
"type": "string"
},
"X-SITE-DEPLOYMENT-ID": {
"type": "string"
},
"X-WAWS-Unencoded-URL": {
"type": "string"
},
"sec-ch-ua": {
"type": "string"
},
"sec-ch-ua-mobile": {
"type": "string"
},
"sec-ch-ua-platform": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
},
"runAfter": {},
"type": "ParseJson"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"When_a_HTTP_request_is_received": {
"inputs": {
"method": "GET"
},
"kind": "Http",
"type": "Request"
}
}
},
"parameters": {
"$connections": {
"value": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment