Giter Club home page Giter Club logo

ukhomeoffice.pttg-ip-hmrc-access-code's Introduction

HMRC Access Code Service

Docker Repository on Quay

Overview

This is the HMRC Access Code service. It interfaces with HMRC to provide authentication components for pttg-ip-hmrc.

Currently the clients of this service are pttg-ip-hmrc and eue-api-hmrc-access-code-refresh.

Find Us

Technical Notes

The API is implemented using Spring Boot and exposes a RESTFul interface.

The endpoints are defined in AccessCodeResource.java

  • The /access endpoint is used to retrieve an access code for HMRC.
  • The /refresh endpoint is used to trigger an update of the access code.
  • The /access/{accessCode}/report endpoint is used to report an expired access code to remove it from caching.

Building

ACP

This service is built by Gradle on Drone using Drone yaml.

EBSA

This service is built by Gradle on Jenkins using the build Jenkinsfile.

Infrastructure

ACP

This service is packaged as a Docker image and stored on Quay.io

This service is deployed by Drone onto a Kubernetes cluster using its Kubernetes configuration

EBSA

This service is packaged as a Docker image and stored on AWS ECR.

This service is deployed by Jenkins onto a Kubernetes cluster using the deploy Jenkinsfile.

Running Locally

Check out the project and run the command ./gradlew bootRun which will install gradle locally, download all dependencies, build the project and run it.

The API should then be available on http://localhost:8090/access, where:

  • port 8090 is defined in application.properties with key server.port
  • path /access is defined in AccessCodeResource.java#getAccessCode

This service runs locally against a HSQL in-memory database. This should suffice for running locally.

Note that this service needs collaborating service pttg-ip-audit. Connection details for that services can be found in application.properties with keys pttg.audit.*, which should include the default port of the service.

This service attempts to call the HMRC test service. However it should also work against HMRC Stub.

Versioning

For the versions available, see the tags on this repository.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENCE.md file for details.

ukhomeoffice.pttg-ip-hmrc-access-code's People

Contributors

andymarke avatar antnettleship avatar camerondowner avatar guysidebottom avatar hod-shcraigen avatar kennedy1265 avatar lbennett-hod avatar mikehalmaho avatar ncrerarho avatar owainrobertsbjss avatar s6stuc avatar tim-hammonds avatar vbadiniho 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.