If in need of fake tokens, tailored for your needs, look no further!
fakedings is a fake OAuth2 authorization server issuing tokens without any security, made specifically for local development. It is a wrapper around the https://github.com/navikt/mock-oauth2-server, providing additional endpoints for known NAV use cases in terms of tokens.
โ ๏ธ DO NOT USE IN PRODUCTION
https://fakedings.intern.dev.nav.no/fake/idporten
GET /fake/idporten
?pid=12345678910
&acr=idporten-loa-high
Host: fakedings.intern.dev.nav.no
Response body:
eyJraWQiOiJtb2NrLW9hdXRoM......
https://fakedings.intern.dev.nav.no/fake/aad
GET /fake/aad
?preferred_username=[email protected]
&name=You Only Live Once
&azp=consumer-client-id
&aud=receiver-client-id
Host: fakedings.intern.dev.nav.no
Response body:
eyJraWQiOiJtb2NrLW9hdXRoM......
https://fakedings.intern.dev.nav.no/fake/tokenx
GET /fake/tokenx
?client_id=someclientid
&aud=dev-gcp:targetteam:targetapp
&acr=Level4
&pid=12345678910
Host: fakedings.intern.dev.nav.no
Response body:
eyJraWQiOiJtb2NrLW9hdXRoM......
https://fakedings.intern.dev.nav.no/fake/custom
Any form parameter sent in the application/x-www-form-urlencoded request will be added as a claim in the resulting token.
POST /fake/custom
Host: fakedings.intern.dev.nav.no
Content-Type: application/x-www-form-urlencoded
sub=mysub&
aud=myaudience&
mycustom=custom1
....
Response body:
eyJraWQiOiJtb2NrLW9hdXRoM......
https://fakedings.intern.dev.nav.no/fake/.well-known/openid-configuration