GithubHelp home page GithubHelp logo

openid-connect-userinfo's Introduction

openid-connect-userinfo

Build Status Download

The REST API, exposed by the HMRC API Platform as /userinfo to external clients, aims to provide a specification compliant OpenID Connect implementation. It allows consumers to access user details with consent and in the OpenID Connect UserInfo format.

A typical workflow would be:

  1. Authenticate.
  2. Access a user-info resource via GET or POST request

All end points are User Restricted (see authorisation). Versioning follows the API Platform standards (see the reference guide). User details data structures follow the OpenId Connect UserInfo specification (see the specification)

You can dive deeper into the documentation in the API Developer Hub.

Authentication tokens

Note, the /userinfo endpoint is an external API endpoint. This endpoint requires an API token for authentication.

API

Method HMRC API Platform Path Internal Path Description
GET /userinfo / Returns information about an End-User as requested in the openid scopes as documented in the published API document.
POST Internal use only /

Running Locally

Run the service sbt run -Drun.mode=Dev

Run the tests & test coverage report sbt clean coverage test it/test coverageReport

Run the service in service manager; if you want live endpoints, then start dependencies thus: sm2 --start AUTH DATASTREAM -r

Now you can test the sandbox curl -v http://localhost:9000/sandbox/userinfo -H 'Accept: application/vnd.hmrc.1.0+json'

License

This code is open source software licensed under the Apache 2.0 License

openid-connect-userinfo's People

Contributors

aadilakhtar avatar andrewthompsonw3qa avatar andybowes-equalexperts avatar andyhwchung avatar antroy avatar cosmin-marian avatar darylmconway avatar davidrymer97 avatar edgarjimenez avatar eiduralfredsson avatar fenallen avatar gitplaneta avatar hmrc-web-operations avatar hughfdjackson avatar jinbal-hmrc avatar kylemchownhmrc avatar martin-armstrong avatar maxworgan avatar oarshad avatar pawelkrupinskihmrc avatar peppe-hmrc avatar peteanning avatar robertbutacu avatar sabrina-konrad-lee-hmrc avatar shanetn avatar steve-edmans avatar szabolcs-szilagyi-hmrc avatar tevynallen avatar thegrego avatar yuanzhang910 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openid-connect-userinfo'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.