Skip to content

Instantly share code, notes, and snippets.

@ng-marcus
ng-marcus / login.js
Created October 9, 2019 13:10
Authenticating to Office 365 SSO with Cypress
/// <reference types="Cypress" />
const xml = `<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</a:Action>
<a:ReplyTo>
type pages =
| GroupList
| DocumentList(string)
| OAUthCallback;
type actions =
| SetToken(string)
| ChangeFolder(string)
| ChangeRoute(pages)
| ParseToken(string)
@ng-marcus
ng-marcus / gist:3e6289717e43da217398941e1f3dbf12
Created June 29, 2016 09:15
Connect a web browser to a docker container for console access
https://github.com/simon-engledew/dockerweb