diff --git a/fakecas.go b/fakecas.go index 4500de9..0d9fd57 100644 --- a/fakecas.go +++ b/fakecas.go @@ -51,6 +51,7 @@ func main() { e.POST("/login", LoginPOST) e.GET("/logout", Logout) e.GET("/oauth2/profile", OAuth) + e.POST("/oauth2/revoke", OAuthRevoke) e.GET("/p3/serviceValidate", ServiceValidate) fmt.Println("Expecting database", *DatabaseName, "to be running at", *DatabaseAddress) diff --git a/views.go b/views.go index 9f9241a..d22bea4 100644 --- a/views.go +++ b/views.go @@ -238,3 +238,7 @@ func OAuth(c echo.Context) error { Scope: scopes, }) } + +func OAuthRevoke(c echo.Context) error { + return c.NoContent(http.StatusNoContent) +}