mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
a258e3d881
issue TryGhost/Ghost#7452, requires TryGhost/Ghost#7451 - use a `ghostOAuth` config flag to switch between the old-style per-install auth and centralized OAuth auth based on config provided by the server - add OAuth flows for: - setup - sign-in - sign-up - re-authenticate - add custom `oauth-ghost` authenticator to support our custom data structure - add test helpers to stub successful/failed oauth authentication - hide change password form if using OAuth (temporary - a way to change password via oauth provider will be added later)
60 lines
2.1 KiB
HTML
60 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>Ghost Tests</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
{{content-for "head"}}
|
|
{{content-for "test-head"}}
|
|
|
|
<meta name="env-fileStorage" content="true" />
|
|
<meta name="env-apps" content="false" />
|
|
<meta name="env-blogUrl" content="http://localhost:7357/" />
|
|
<meta name="env-blogTitle" content="Test Blog" />
|
|
<meta name="env-routeKeywords" content="{"tag":"tag","author":"author","page":"page","preview":"p","private":"private"}" />
|
|
<meta name="env-clientId" content="ghost-admin" />
|
|
<meta name="env-clientSecret" content="5076dc643873" />
|
|
<!-- <meta name="env-ghostAuthId" content="6e0704b3-c653-4c12-8da7-584232b5c629" /> -->
|
|
|
|
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
|
<link rel="stylesheet" href="{{rootURL}}assets/ghost.css">
|
|
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
|
|
|
|
{{content-for "head-footer"}}
|
|
{{content-for "test-head-footer"}}
|
|
|
|
<style>
|
|
/* fix to ensure we use full viewport height when testing */
|
|
#ember-testing {
|
|
height: 100%;
|
|
}
|
|
#ember-testing > div {
|
|
height: 100%;
|
|
}
|
|
/* fix firefox not supporting `zoom: 50%` */
|
|
_::-moz-range-track, body:last-child #ember-testing {
|
|
-moz-transform-origin: 0 0;
|
|
-moz-transform: scale(0.5);
|
|
width: 200%;
|
|
height: 200%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{{content-for "body"}}
|
|
{{content-for "test-body"}}
|
|
|
|
<script src="{{rootURL}}testem.js" integrity=""></script>
|
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
|
<script src="{{rootURL}}assets/test-support.js"></script>
|
|
<script src="{{rootURL}}assets/ghost.js"></script>
|
|
<script src="{{rootURL}}assets/tests.js"></script>
|
|
|
|
{{content-for "body-footer"}}
|
|
{{content-for "test-body-footer"}}
|
|
</body>
|
|
</html>
|