-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Martin M Sheriff <[email protected]>
- Loading branch information
Showing
10 changed files
with
535 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
GetCallerIdentity | ||
Returns details about the IAM user or role whose credentials are used to call the operation. | ||
|
||
Note | ||
No permissions are required to perform this operation. If an administrator adds a policy to your IAM user or role that explicitly denies access to the sts:GetCallerIdentity action, you can still perform this operation. Permissions are not required because the same information is returned when an IAM user or role is denied access. To view an example response, see I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice in the IAM User Guide. | ||
|
||
Response Elements | ||
The following elements are returned by the service. | ||
|
||
Account | ||
The AWS account ID number of the account that owns or contains the calling entity. | ||
|
||
Type: String | ||
|
||
Arn | ||
The AWS ARN associated with the calling entity. | ||
|
||
Type: String | ||
|
||
Length Constraints: Minimum length of 20. Maximum length of 2048. | ||
|
||
Pattern: [\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]+ | ||
|
||
UserId | ||
The unique identifier of the calling entity. The exact value depends on the type of entity that is making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide. | ||
|
||
Type: String | ||
|
||
Errors | ||
For information about the errors that are common to all actions, see Common Errors. | ||
|
||
Examples | ||
Example 1 - Called by an IAM user. | ||
This example shows a request and response made with the credentials for a user named Alice in the AWS account 123456789012. | ||
|
||
Sample Request | ||
POST / HTTP/1.1 | ||
Host: sts.amazonaws.com | ||
Accept-Encoding: identity | ||
Content-Length: 32 | ||
Content-Type: application/x-www-form-urlencoded | ||
Authorization: AWS4-HMAC-SHA256 Credential=AKIAI44QH8DHBEXAMPLE/20160126/us-east-1/sts/aws4_request, | ||
SignedHeaders=host;user-agent;x-amz-date, | ||
Signature=1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef | ||
X-Amz-Date: 20160126T215751Z | ||
User-Agent: aws-cli/1.10.0 Python/2.7.3 Linux/3.13.0-76-generic botocore/1.3.22 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<activity | ||
android:name=".MyMapActivity" | ||
android:exported="true" | ||
...> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:scheme="geo" /> | ||
</intent-filter> | ||
</activity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
show_config() { | ||
ynh_return "YNH_CONFIG_MAIN_IS_PUBLIC_IS_PUBLIC=1" | ||
} | ||
|
||
apply_config() { | ||
value=$YNH_CONFIG_MAIN_IS_PUBLIC_IS_PUBLIC | ||
# do some stuff with value | ||
} | ||
|
||
case $1 in | ||
show) show_config;; | ||
apply) apply_config;; | ||
esac | ||
Or if you want a full useless simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Direct Upload Demo | Cloudflare Pages</title> | ||
<link href="style.css" rel="stylesheet" /> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="header"> | ||
<h3>1989shack</h3> | ||
<h1>Welcome to Cloudflare Pages</h1> | ||
<p> | ||
Upload your prebuilt assets directly to Pages and deploy <br /> | ||
your project to the Cloudflare edge within seconds. | ||
</p> | ||
<p>Create new deployments using:</p> | ||
<section class="options"> | ||
<img src="assets/terminal.svg" /> | ||
<a | ||
href="https://dash.cloudflare.com/?to=/:account/pages/new/wrangler-guide" | ||
target="_blank" | ||
> Wrangler CLI</a | ||
> | ||
<img src="assets/cloud-upload.svg" /> | ||
<a | ||
href="https://dash.cloudflare.com/?to=/:account/pages/new/upload" | ||
target="_blank" | ||
> Dashboard</a | ||
> | ||
</section> | ||
</div> | ||
|
||
<section class="learn-more"> | ||
<a | ||
href="https://developers.cloudflare.com/pages/platform/direct-uploads" | ||
> | ||
<button>Learn more</button> | ||
</a> | ||
</section> | ||
<div class="logo"> | ||
<a href="https://pages.cloudflare.com/" target="_blank"> | ||
<img src="assets/cloudflare-pages.svg" | ||
/></a> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import { useMoralis } from "react-moralis"; | ||
|
||
function App() { | ||
const { authenticate, isAuthenticated, user } = useMoralis(); | ||
|
||
if (!isAuthenticated) { | ||
return ( | ||
<div> | ||
<button onClick={() => authenticate()}>Authenticate</button> | ||
</div> | ||
); | ||
} | ||
|
||
return ( | ||
<div> | ||
<h1>Welcome {user.get("username")}</h1> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
<html> | ||
<title>Assembly for the Google APIs Client Library for Java 1.32.1</title> | ||
<body> | ||
<h2>Assembly for the Google APIs Client Library for Java 1.32.1</h2> | ||
|
||
<h3>Overview</h3> | ||
<p> | ||
High-level details about this library can be found at <a | ||
href="https://github.com/googleapis/google-api-java-client">google-api-java-client</a> | ||
</p> | ||
<ul> | ||
<li><a | ||
href='https://github.com/googleapis/google-api-java-client#Version_1.32.1'>Release | ||
Notes</a></li> | ||
<li><a | ||
href='http://javadoc.google-api-java-client.googlecode.com/hg/1.32.1/index.html'>JavaDoc</a></li> | ||
<li><a | ||
href='https://developers.google.com/api-client-library/java/google-api-java-client/dev-guide'>Developer's | ||
Guide</a></li> | ||
<li><a href='http://groups.google.com/group/google-api-java-client'>Support</a></li> | ||
</ul> | ||
|
||
<h3>Dependencies and Licenses</h3> | ||
The license can be found | ||
<a href='LICENSE.txt'>here</a>. | ||
<br /> Dependent jars can be found in the | ||
<a href='libs'>libs</a> folder and the corresponding source jars can be found | ||
in the | ||
<a href='libs-sources'>libs-sources</a> folder. | ||
<br /> | ||
<br /> The dependency structure and licenses for the different libraries can | ||
be found here: | ||
<ul> | ||
<li>google-api-client: <a href='dependencies/google-api-client-dependencies.html'>google-api-client-dependencies.html</a></li> | ||
<li>google-api-client-android: <a | ||
href='dependencies/google-api-client-android-dependencies.html'>google-api-client-android-dependencies.html</a></li> | ||
<li>google-api-client-appengine: <a | ||
href='dependencies/google-api-client-appengine-dependencies.html'>google-api-client-appengine-dependencies.html</a></li> | ||
<li>google-api-client-servlet: <a | ||
href='dependencies/google-api-client-servlet-dependencies.html'>google-api-client-servlet-dependencies.html</a></li> | ||
<li>google-api-client-java6: <a | ||
href='dependencies/google-api-client-java6-dependencies.html'>google-api-client-java6-dependencies.html</a></li> | ||
<li>google-oauth-client: <a href='dependencies/google-oauth-client-dependencies.html'>google-oauth-client-dependencies.html</a></li> | ||
<li>google-oauth-client-appengine: <a | ||
href='dependencies/google-oauth-client-appengine-dependencies.html'>google-oauth-client-appengine-dependencies.html</a></li> | ||
<li>google-oauth-client-servlet: <a | ||
href='dependencies/google-oauth-client-servlet-dependencies.html'>google-oauth-client-servlet-dependencies.html</a></li> | ||
<li>google-oauth-client-java6: <a | ||
href='dependencies/google-oauth-client-java6-dependencies.html'>google-oauth-client-java6-dependencies.html</a></li> | ||
<li>google-oauth-client-java7: <a | ||
href='dependencies/google-oauth-client-java7-dependencies.html'>google-oauth-client-java7-dependencies.html</a></li> | ||
<li>google-oauth-client-jetty: <a | ||
href='dependencies/google-oauth-client-jetty-dependencies.html'>google-oauth-client-jetty-dependencies.html</a></li> | ||
<li>google-http-client: <a href='dependencies/google-http-client-dependencies.html'>google-http-client-dependencies.html</a></li> | ||
<li>google-http-client-android: <a | ||
href='dependencies/google-http-client-android-dependencies.html'>google-http-client-android-dependencies.html</a></li> | ||
<li>google-http-client-appengine: <a | ||
href='dependencies/google-http-client-appengine-dependencies.html'>google-http-client-appengine-dependencies.html</a></li> | ||
<li>google-http-client-protobuf: <a | ||
href='dependencies/google-http-client-protobuf-dependencies.html'>google-http-client-protobuf-dependencies.html</a></li> | ||
<li>google-http-client-gson: <a | ||
href='dependencies/google-http-client-gson-dependencies.html'>google-http-client-gson-dependencies.html</a></li> | ||
<li>google-http-client-jackson: <a | ||
href='dependencies/google-http-client-jackson-dependencies.html'>google-http-client-jackson-dependencies.html</a></li> | ||
<li>google-http-client-jackson2: <a | ||
href='dependencies/google-http-client-jackson2-dependencies.html'>google-http-client-jackson2-dependencies.html</a></li> | ||
</ul> | ||
|
||
<h3>Maven Usage</h3> | ||
For information on how to add these libraries to your Maven project please see | ||
<a href='https://github.com/googleapis/google-api-java-client#Maven'>Maven</a>. | ||
|
||
<h3>Eclipse</h3> | ||
A .classpath file snippet that can be included in your project's .classpath | ||
has been provided | ||
<a href='.classpath'>here</a>. Please only use the classpathentry's you | ||
actually need (see below for details). | ||
|
||
<h3>ProGuard</h3> | ||
<p> | ||
A ProGuard configuration file <a href="proguard-google-api-client.txt">proguard-google-api-client.txt</a> | ||
is included for common settings for using the library. On Android projects, | ||
you may want to add a reference to | ||
<code>proguard-google-api-client.txt</code> | ||
in the | ||
<code>project.properties</code> | ||
file under the | ||
<code>proguard.config</code> | ||
property. | ||
</p> | ||
<p> | ||
Please read <a | ||
href="https://github.com/googleapis/google-http-java-client#ProGuard">Setup | ||
ProGuard</a> for more details. | ||
</p> | ||
|
||
<h3>Dependencies for all Platforms</h3> | ||
The following are the jars from the | ||
<a href='libs'>libs</a> folder needed for applications on all platform: | ||
<ul> | ||
<li>google-api-client-1.32.1.jar</li> | ||
<li>google-oauth-client-1.31.5.jar</li> | ||
<li>google-http-client-1.39.2.jar</li> | ||
<li>jsr305-3.0.2.jar</li> | ||
<li>google-api-client-protobuf-${project.api.version}.jar (when using | ||
protobuf-java) | ||
<ul> | ||
<li>google-http-client-protobuf-1.39.2.jar</li> | ||
<li>protobuf-java-3.17.3.jar</li> | ||
</ul> | ||
</li> | ||
<li>google-api-client-gson-${project.api.version}.jar (when using | ||
GSON) | ||
<ul> | ||
<li>google-http-client-gson-1.39.2.jar</li> | ||
<li>gson-2.8.6.jar</li> | ||
</ul> | ||
</li> | ||
<li>google-api-client-jackson2-${project.api.version}.jar (when using | ||
Jackson 2) | ||
<ul> | ||
<li>google-http-client-jackson2-1.39.2.jar</li> | ||
<li>jackson-core-${project.jackson-core2.version}.jar</li> | ||
</ul> | ||
</li> | ||
<li>google-api-client-xml-1.32.1.jar (when using XML) | ||
<ul> | ||
<li>google-http-client-xml-1.32.1.jar</li> | ||
<li>xpp3-1.1.4c.jar (when NOT on Android)</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
||
<h3>Android Dependencies</h3> | ||
The following are the jars from the | ||
<a href='libs'>libs</a> folder required for Android applications: | ||
<ul> | ||
<li>google-api-client-android-1.32.1.jar (for SDK >= 2.1)</li> | ||
<li>google-http-client-android-1.39.2.jar</li> | ||
</ul> | ||
The | ||
<a href='libs'>libs</a> folder also contains properties files that specify the | ||
location of source jars for Android projects in Eclipse. | ||
<br /> Please see the | ||
<a href='https://github.com/googleapis/google-api-java-client'>Android | ||
</a> for the Android Developer's Guide. | ||
|
||
<h3>Google App Engine Dependencies</h3> | ||
The following are the jars from the | ||
<a href='libs'>libs</a> folder required for Google App Engine applications or | ||
a newer compatible version: | ||
<ul> | ||
<li>google-api-client-appengine-1.32.1.jar</li> | ||
<li>google-api-client-servlet-1.32.1.jar</li> | ||
<li>google-oauth-client-appengine-1.31.5.jar</li> | ||
<li>google-oauth-client-servlet-1.31.5.jar</li> | ||
<li>google-http-client-appengine-1.39.2.jar</li> | ||
<li>jdo2-api-2.3-eb.jar</li> | ||
<li>transaction-api-${project.transaction-api.version}.jar</li> | ||
</ul> | ||
Please see the | ||
<a href='https://developers.google.com/api-client-library/java/google-api-java-client/dev-guide'>GoogleAppEngine | ||
wiki</a> for the Google App Engine Developer's Guide. | ||
|
||
<h3>Servlet Dependencies</h3> | ||
The following are the jars from the | ||
<a href='libs'>libs</a> folder required for Servlet applications or a newer | ||
compatible version: | ||
<ul> | ||
<li>google-api-client-servlet-1.32.1.jar</li> | ||
<li>google-oauth-client-servlet-1.31.5.jar</li> | ||
<li>commons-logging-${project.commons-logging.version}.jar</li> | ||
<li>httpclient-4.5.13.jar</li> | ||
<li>httpcore-4.4.14.jar</li> | ||
<li>jdo2-api-2.3-eb.jar</li> | ||
<li>transaction-api-${project.transaction-api.version}.jar</li> | ||
</ul> | ||
|
||
<h3>General Purpose Java 5 Environment Dependencies</h3> | ||
The following are the jars from the | ||
<a href='libs'>libs</a> folder required for general purpose Java 5 | ||
applications or a newer compatible version: | ||
<ul> | ||
<li>google-api-client-java6-1.32.1.jar</li> | ||
<li>google-oauth-client-java6-1.31.5.jar (for JDK >= | ||
6) | ||
<ul> | ||
<li>google-oauth-client-jetty-1.31.5.jar (for | ||
Jetty 6) | ||
<ul> | ||
<li>jetty-${project.jetty.version}.jar</li> | ||
<li>jetty-util-${project.jetty.version}.jar</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
<li>google-oauth-client-java7-1.32.1.jar (for JDK >= 7)</li> | ||
<li>commons-logging-${project.commons-logging.version}.jar</li> | ||
<li>httpclient-4.5.13.jar</li> | ||
<li>httpcore-4.4.14.jar</li> | ||
</ul> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.