Giter Site home page Giter Site logo

test-aci-auth-server's Introduction

Before running test-aci-auth-server make sure that go and actool are in your $PATH.

$ ./test-aci-auth-server start basic

{
	"rktKind": "auth",
	"rktVersion": "v1",
	"domains": ["127.0.0.1:48608"],
	"type": "basic",
	"credentials":
	{
		"user": "bar",
		"password": "baz"
	}
}

Ready, waiting for connections at https://127.0.0.1:48608

(You can run test-aci-auth-server start with either none, basic or oauth parameter)

Copy the snippet to /etc/rkt/auth.d/test.json and run rkt --insecure-skip-verify run https://127.0.0.1:48608/<WHATEVER>/prog.aci. The rkt output ought to be something like:

# rkt --insecure-skip-verify run https://127.0.0.1:48608/basic1/prog.aci
rkt: fetching image from https://127.0.0.1:48608/basic1/prog.aci



3
2
1
BANG!
Sending SIGTERM to remaining processes...
Sending SIGKILL to remaining processes...
Unmounting file systems.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/pts.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/shm.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/sys.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/proc.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/console.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/tty.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/urandom.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/random.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/full.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/zero.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs/dev/null.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs.
Unmounting /proc/sys/kernel/random/boot_id.
Unmounting /opt/stage2/sha512-82d0d76f85d04a73e17a377c304ffbd8/rootfs.
All filesystems unmounted.
Halting system.

While the additional output from test-aci-auth-server:

Trying to serve "/basic10/prog.aci"
  serving
    done.

The test-aci-auth-server start with oauth will print something like this:

$ ./test-aci-auth-server start oauth

{
	"rktKind": "auth",
	"rktVersion": "v1",
	"domains": ["127.0.0.1:48805"],
	"type": "oauth",
	"credentials":
	{
		"token": "sometoken"
	}
}

Ready, waiting for connections at https://127.0.0.1:48805

To stop the test-aci-auth-server run stop command:

$ ./test-aci-auth-server stop https://127.0.0.1:60268
Response status: 200 OK

test-aci-auth-server's People

Contributors

krnowak avatar

Stargazers

Brandon Philips avatar

Watchers

Alban Crequy avatar Karl Beecher avatar Mirko Boehm avatar James Cloos avatar Nikolas Sepos avatar Minto Joseph avatar pýrus avatar Arne Schreiber avatar  avatar  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.