GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kdcllc/tokenflow: Effortlessly capture and manage access tokens with Azure Device Code integration. Simplify authentication workflows in Python with TokenFlow's seamless and secure token handling. Ideal for developers seeking streamlined, scalable access token solutions.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
images
images
 
 
rest
rest
 
 
src
src
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.dev.txt
requirements.dev.txt
 
 
requirements.in
requirements.in
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

TokenFlow

GitHub Python FastAPI GitHub stars

I stand with Israel

TokenFlow optimizes token generation and directory management across multiple tenants using Azure device flow. This repository empowers applications to capture user tokens seamlessly and utilize them for creating app registrations, users, and groups within accessible directories. Unlock the potential of multi-tenant applications with TokenFlow.

azcli container

This is a straightforward setup for managing Azure resources using containerized applications and Blob Storage, coupled with an automated user login process via Azure Device Code.

Setup Overview

  • Azure Container App: Acts as the host for TokenFlow Api Docker image.
  • Azure Blob Storage: Manages state data related to Azure Command Line Interface (CLI) operations.

Login Flow

  1. Prompt user authentication using Azure Device Code.
  2. Upon successful login, retrieve access token for resource management from the provided endpoint.

Hire me

Please send email if you consider to hire me.

buymeacoffee

Give a Star! :star

If you like or are using this project to learn or start your solution, please give it a star. Thanks!

Running Locally

To run the application locally, follow these steps:

  1. Create a virtual environment:

    python -m venv .venv
  2. Activate the virtual environment:

    source .venv/bin/activate
  3. Install the dependencies management tool:

    pip install pip-tools
  4. Compile the requirements:

    pip-compile requirements.in
    pip-compile requirements.dev.in
  5. Install the dependencies:

    pip install -r requirements.txt
    pip install -r requirements.dev.txt
  6. Run the application:

    #only on WSL
    export X_AUTH_TOKEN=169ddeb1-502a-42cf-a222-9dbb8ec2cbf6
    uvicorn src.api:app --reload --port 6700

Deploy the Container

To deploy the application using Docker, use the following steps:

  1. Pull the Docker container:

    docker pull kdcllc/tokenflow
  2. Run the Docker container:

    docker run -e LOGGING_LEVEL=INFO -e X_AUTH_TOKEN=<your_auth_token> -p 6700:6700 kdcllc/tokenflow

Tests

     pytest tests/test_main.py
     pytest tests/test_authenticator.py

     # runs all tests
     python -m pytest

API Documentation

Swagger documentation is available at http://localhost:6700/docs.

Environment Variables

  • LOGGING_LEVEL: Sets the logging level (default is INFO).
  • X_AUTH_TOKEN: Your authentication token for accessing the application.

About

Effortlessly capture and manage access tokens with Azure Device Code integration. Simplify authentication workflows in Python with TokenFlow's seamless and secure token handling. Ideal for developers seeking streamlined, scalable access token solutions.

Topics

access-tokensauthenticationauthentication-workflowsazure-device-codeidentity-and-access-managementoauth2token-capturetoken-managementtokenflow

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.