mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-19 19:17:01 -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>
|
||||
<html>
|
||||
|
||||
Something went wrong...
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="static/stylesheets/styles.css">
|
||||
<title>Something went wrong...</title>
|
||||
</head>
|
||||
<div id="wrapper">
|
||||
Something went wrong...{{index}}
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -1,7 +1,12 @@
|
|||
<!DOCTYPE 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}}
|
||||
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -1,26 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="static/stylesheets/styles.css">
|
||||
<title>Success!</title>
|
||||
</head>
|
||||
<script>
|
||||
function copyText() {
|
||||
// Get the text field
|
||||
var copyText = document.getElementById("token");
|
||||
// Get the text field
|
||||
var copyText = document.getElementById("token");
|
||||
|
||||
// Select the text field
|
||||
copyText.select();
|
||||
copyText.setSelectionRange(0, 99999); // For mobile devices
|
||||
// Select the text field
|
||||
copyText.select();
|
||||
copyText.setSelectionRange(0, 99999); // For mobile devices
|
||||
|
||||
// Copy the text inside the text field
|
||||
navigator.clipboard.writeText(copyText.value);
|
||||
// Copy the text inside the text field
|
||||
navigator.clipboard.writeText(copyText.value);
|
||||
|
||||
// Alert the copied text
|
||||
alert("Copied the text: " + copyText.value);
|
||||
// Alert the copied text
|
||||
alert("Text copied: " + copyText.value);
|
||||
}
|
||||
</script>
|
||||
<div id="wrapper">
|
||||
<p>
|
||||
Login successful! Here is your access token: </br>
|
||||
<br>
|
||||
<!-- 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 -->
|
||||
<button onclick="copyText()">Copy</button>
|
||||
|
|
@ -28,9 +33,10 @@
|
|||
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>
|
||||
<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>
|
||||
|
||||
When you done, you can close this page.<br>
|
||||
After you have saved your token, you can close this page.<br>
|
||||
</p>
|
||||
</div>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue