mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Updated style for pages
This commit is contained in:
parent
706000a53d
commit
c534f50a03
3 changed files with 32 additions and 17 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
<head>
|
||||||
Something went wrong...
|
<link rel="stylesheet" href="static/stylesheets/styles.css">
|
||||||
|
<title>Something went wrong...</title>
|
||||||
|
</head>
|
||||||
|
<div id="wrapper">
|
||||||
|
Something went wrong...{{index}}
|
||||||
|
</div>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
Welcome to Opaal's default login in page! Click the link below to log in for an access token. </br></br>
|
<head>
|
||||||
|
<link rel="stylesheet" href="static/stylesheets/styles.css">
|
||||||
|
<title>Log in with Social-Sign in</title>
|
||||||
|
</head>
|
||||||
|
<div id="wrapper">
|
||||||
|
Log in using the option(s) below for an access token. </br></br>
|
||||||
|
|
||||||
{{loginButtons}}
|
{{loginButtons}}
|
||||||
|
</div>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,26 +1,31 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="static/stylesheets/styles.css">
|
||||||
|
<title>Success!</title>
|
||||||
|
</head>
|
||||||
<script>
|
<script>
|
||||||
function copyText() {
|
function copyText() {
|
||||||
// Get the text field
|
// Get the text field
|
||||||
var copyText = document.getElementById("token");
|
var copyText = document.getElementById("token");
|
||||||
|
|
||||||
// Select the text field
|
// Select the text field
|
||||||
copyText.select();
|
copyText.select();
|
||||||
copyText.setSelectionRange(0, 99999); // For mobile devices
|
copyText.setSelectionRange(0, 99999); // For mobile devices
|
||||||
|
|
||||||
// Copy the text inside the text field
|
// Copy the text inside the text field
|
||||||
navigator.clipboard.writeText(copyText.value);
|
navigator.clipboard.writeText(copyText.value);
|
||||||
|
|
||||||
// Alert the copied text
|
// Alert the copied text
|
||||||
alert("Copied the text: " + copyText.value);
|
alert("Text copied: " + copyText.value);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<div id="wrapper">
|
||||||
<p>
|
<p>
|
||||||
Login successful! Here is your access token: </br>
|
Login successful! Here is your access token: </br>
|
||||||
<br>
|
<br>
|
||||||
<!-- The text field -->
|
<!-- The text field -->
|
||||||
<input type="text" value="{{accessToken}}" style="width: 350px" id="token" readonly>
|
<input type="text" value="{{accessToken}}" style="width: 400px" id="token" readonly>
|
||||||
|
|
||||||
<!-- The button used to copy the text -->
|
<!-- The button used to copy the text -->
|
||||||
<button onclick="copyText()">Copy</button>
|
<button onclick="copyText()">Copy</button>
|
||||||
|
|
@ -28,9 +33,10 @@
|
||||||
You will need this token to access protected services and resources.<br>
|
You will need this token to access protected services and resources.<br>
|
||||||
Make sure to include it in the authorization header if you are making a HTTP request.<br><br>
|
Make sure to include it in the authorization header if you are making a HTTP request.<br><br>
|
||||||
<pre>
|
<pre>
|
||||||
curl -k http://smd:27779/hsm/v2/Inventory/RedfishEndpoints -H "Authorization: Bearer [access_token]"
|
curl -k https://service/doSomething -H "Authorization: Bearer $access_token"
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
When you done, you can close this page.<br>
|
After you have saved your token, you can close this page.<br>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue