Skip to content

Commit

Permalink
Merge pull request #14 from cslzchen/feature/pat-revoke
Browse files Browse the repository at this point in the history
[ENG-345] Add "oauth/revoke" to fakeCAS
  • Loading branch information
cslzchen authored Jul 23, 2019
2 parents 81a8d95 + 8b5e33e commit a6a1104
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions fakecas.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions views.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,7 @@ func OAuth(c echo.Context) error {
Scope: scopes,
})
}

func OAuthRevoke(c echo.Context) error {
return c.NoContent(http.StatusNoContent)
}

0 comments on commit a6a1104

Please sign in to comment.