Updated style for pages

This commit is contained in:
David Allen 2024-03-13 00:37:35 -06:00
parent 706000a53d
commit c534f50a03
No known key found for this signature in database
GPG key ID: 1D2A29322FBB6FCB
3 changed files with 32 additions and 17 deletions

View file

@ -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>

View file

@ -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>

View file

@ -1,5 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="static/stylesheets/styles.css">
<title>Success!</title>
</head>
<script>
function copyText() {
// Get the text field
@ -13,14 +17,15 @@
navigator.clipboard.writeText(copyText.value);
// Alert the copied text
alert("Copied the text: " + copyText.value);
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>