Skip to content

initialspark/nhs-login-java-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nhs-login-java-example

This repo contains a sample application of how to connect to NHS login using spring security and MITREid client.

Prerequisites:

Getting started:

Add your client details to application.properties

application.properties

oidc.issuer = https://auth.sandpit.signin.nhs.uk
oidc.clientid = Your client-id
oidc.scopes = openid profile
oidc.redirecturi = http://localhost:8080/openid_connect_login
oidc.keystorepath = keystore.jwks
oidc.defaultkey = Your kid for jwks

Add jwk key to keystore.jwks

To run the sample, run the following command in the root of the project.

    ./mvnw spring-boot:run

Note:

This application is provided as a demo to get started integrating with NHS login and shouldn't be deployed into a production environment :)

About

An example of how to connect to NHS Login using Java Spring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published