Skip to content

rhousham/NHSAuthExamples

 
 

Repository files navigation

hello-world-auth-examples

Overview

This repository shows you how to connect to an application-restricted REST API using signed JWT authentication using the Java and C# programming language.

To call an application restricted API you need to tell the API who the calling application is. When using signed JWT authentication you need to authenticate your application by sending a JSON Web Token (JWT) to an authentication server, signed using your application's private key. In exchange you will receive an access token which you need to include in the API request. You can learn more about signed JWT authentication here.

This tutorial will show how you can use Java or C# to generate and sign a JWT, exchange this for an access token with our authentication server and how to call our example Hello World API using your access token.

Java Application Restricted example

Follow README

C# Application Restricted example

Follow README

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 26.9%
  • C# 21.1%
  • PHP 20.6%
  • HTML 14.5%
  • JavaScript 7.4%
  • Twig 4.8%
  • Other 4.7%