feat: add userinfo + logout

This commit is contained in:
Lakhan Samani
2022-03-04 00:36:27 +05:30
parent 5c7d32ec16
commit 2946428ab8
7 changed files with 266 additions and 34 deletions

View File

@@ -23,6 +23,9 @@ func InitRouter() *gin.Engine {
// OPEN ID routes
router.GET("/.well-known/openid-configuration", handlers.OpenIDConfigurationHandler())
router.GET("/.well-known/jwks.json", handlers.JWKsHandler())
router.GET("/authorize", handlers.AuthorizeHandler())
router.GET("/userinfo", handlers.UserInfoHandler())
router.GET("/logout", handlers.LogoutHandler())
router.LoadHTMLGlob("templates/*")
// login page app related routes.