Skip to content

Commit 4d409fc

Browse files
committed
Logout endpoint
Delete in memory session when user logout from mcs
1 parent 9566f6e commit 4d409fc

File tree

12 files changed

+523
-3
lines changed

12 files changed

+523
-3
lines changed

cmd/mcs/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/minio/cli"
3232
)
3333

34-
// Help template for m3.
34+
// Help template for mcs.
3535
var mcsHelpTemplate = `NAME:
3636
{{.Name}} - {{.Usage}}
3737
@@ -57,10 +57,10 @@ var appCmds = []cli.Command{
5757
}
5858

5959
func newApp(name string) *cli.App {
60-
// Collection of m3 commands currently supported are.
60+
// Collection of mcs commands currently supported are.
6161
var commands []cli.Command
6262

63-
// Collection of m3 commands currently supported in a trie tree.
63+
// Collection of mcs commands currently supported in a trie tree.
6464
commandsTree := trie.NewTrie()
6565

6666
// registerCommand registers a cli command.

restapi/configure_mcs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func configureAPI(api *operations.McsAPI) http.Handler {
7070

7171
// Register login handlers
7272
registerLoginHandlers(api)
73+
// Register logout handlers
74+
registerLogoutHandlers(api)
7375
// Register bucket handlers
7476
registerBucketsHandlers(api)
7577
// Register all users handlers

restapi/embedded_spec.go

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

restapi/operations/mcs_api.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

restapi/operations/user_api/logout.go

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

restapi/operations/user_api/logout_parameters.go

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

restapi/operations/user_api/logout_responses.go

Lines changed: 113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)