MITREid Connect is an open source certified OpenID Connect Server implemented in Java on the Spring platform. It can be used as an OpenID Connect Identity Provider as well as a general-purpose OAuth 2.0 Authorization Server.
To developers, MITREid Connect gives us a great opportunity to inspect the source code of an officially Certified OpenID Connect implementation in Java. However, pull a Docker image to see the code in action before cloning, building and deploying would be great, right? Well, I pushed that docker image to Docker Hub immontilla/docker-mitreid-oidc-server.
To pull it from Docker Hub:
docker pull immontilla/docker-mitreid-oidc-server
To run it:
docker run -itd --name=oidc-srv --net=host -p 8080:8080 immontilla/docker-mitreid-oidc-server
--net=host is necessary because, to keep it simple, the issuer url is set as localhost.
If everything goes fine, you will have a Tomcat web server running on your localhost at port 8080 with these two apps:
-
OpenID-Connect-Java-Spring-Server http://localhost:8080/openid-connect-server-webapp/.
-
OpenID Connect Authorization Code Flow protected web app http://localhost:8080/simple-web-app/.
The docker image is automatically built from:
https://github.com/immontilla/docker-mitreid-oidc-server.
Main Links
OpenID-Connect-Java-Spring-Server source code:
https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server.
OpenID-Connect-Java-Spring-Server Official Wiki:
https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/wiki.
OpenID Connect Authorization Code Flow web application source code:
https://github.com/mitreid-connect/simple-web-app.