Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 600 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 600 Bytes

HelseID Samples in Golang

The web app demonstrates the authorization code flow (openID connect). It uses the id token to verify the identity of the user. It also gets an access token, which it uses to retrieve a resource from the API.

The m2m app uses the client credentials flow (OAuth 2.0) to get an access token, and uses the access token retrieve a resource from the API.

The API is very simple and only have one endpoint. To get the resource from this endpoint the user/client must add an access token to the header of the request.