Giter Club home page Giter Club logo

ue4-amazon-aws's Introduction

ue4-amazon-aws

Facilitates accessing web services hosted on Amazon AWS using Unreal Engine 4.

Quickfacts

  • Current Version: 1.0
  • Engine Version: Unreal Engine 4.18.3

Adding The Plugin

  1. Clone the repository.
  2. Close the Unreal Editor.
  3. Copy the DaedalicAmazonAWSPlugin folder to Plugins folder next to your .uproject file.
  4. Right-click your .uproject file and select Re-generate Visual Studio project files.
  5. Build the resulting solution in Visual Studio.
  6. Start the Unreal Editor.
  7. Enable the plugin in Edit > Plugins > Daedalic.

Using The Plugin

First, add DaedalicAmazonAWSPlugin to the PublicDependencyModuleNames of the Build.cs file of your project.

Now, after creating any HTTP request as usual, you can pass it to UDaeAmazonAWS::AuthorizeRequest in order to have the plugin generate the matching Authorization header as outlined in https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html.

// Create request.
FHttpModule* Http = &FHttpModule::Get();

TSharedRef<IHttpRequest> Request = Http->CreateRequest();

Request->SetVerb(TEXT("GET"));
Request->SetURL(TEXT("https://iam.amazonaws.com/?Action=ListUsers&Version=2010-05-08"));

FString Region = TEXT("us-east-1");
FString Service = TEXT("iam");

FString AccessKey = TEXT("AKIDEXAMPLE");
FString SecretKey = TEXT("wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY");

// Add authorization header.
UDaeAmazonAWS::AuthorizeRequest(Request, Region, Service, AccessKey, SecretKey);

// Send request.
Request->ProcessRequest();

The method UDaeAmazonAWS::AuthorizeRequest assumes that Verb, URL, Headers and Content have already been set, because they are part of the signature.

  • If the Host header isn't already set, it will be parsed from the request URL.
  • If the Content-Type header isn't already set, it will be set to application/x-www-form-urlencoded; charset=utf-8.
  • If the X-Amz-Date header isn't already set, the current one will be added.

ue4-amazon-aws's People

Contributors

daedalicentertainment avatar npruehs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.