davepacheco / dogfood-ci-prototype

(ancient) toy program to use oauth2 device flow against Oxide API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dogfood-ci prototype

This repo contains a small Rust program that uses the OAuth2 device authentication flow in the external API to get an authentication token and then makes a request using the token that it got. It doesn’t really do anything else.

The goal is to de-risk the plan to have buildomat use device authn tokens to make requests to our external API.

Prerequisite: start up at least Nexus and probably the rest of the simulated control plane using the directions here.

Assuming Nexus’s external API is running on http://127.0.0.1:12220/, run this program with:

cargo run -- http://127.0.0.1:12220

You’ll be prompted to open a URL in your browser to authenticate using the usual OAuth device flow.

About

(ancient) toy program to use oauth2 device flow against Oxide API


Languages

Language:Rust 100.0%