Giter Site home page Giter Site logo

introspection-service's Introduction

#Project archived - See https://github.com/sync-for-science/token-introspector for replacement.

Token Introspector

An implementation of OAuth 2.0 Token Introspection specific to SMART on FHIR.

It take a token and attempts to use it to issue a FHIR GET Patient API call, usin the result to determine whether the token is active. Eventually it may offer other resoltion mechanisms (e.g. inspecting a vendor-specific JWT).

Docker usage

Build and start a Docker containers using:

docker build . -t <some-tag-name>
docker run  -p 9004:5000 <some-tag-name>:latest

This exposes the service on port 9004 of the local machine.

Test your connection using the CuRL command:

curl -d "token=<token value>&patient=<fhir pid>" -X POST http://localhost:9004/api/introspect

where the <token> and <patient-id> values must be known to the API server referenced in the Dockerfile.

Installation

pip install .

Configuration

Token Introspector checks the environment for:

  • API_SERVER: The FHIR server where tokens should be tried.

Running

flask run

introspection-service's People

Contributors

kelseym avatar

Watchers

Clifton Li avatar James Cloos avatar  avatar

introspection-service's Issues

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.