Skip to content

Commit

Permalink
Add the backchannel logout event (cs3org#4737)
Browse files Browse the repository at this point in the history
* Add the backchannel logout event

* Update pkg/events/users.go

Co-authored-by: kobergj <[email protected]>

---------

Co-authored-by: kobergj <[email protected]>
  • Loading branch information
2 people authored and aduffeck committed Jun 27, 2024
1 parent e91b36c commit 9e1e8e9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/add-backchannel-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Add the backchannel logout event

We've added the backchannel logout event

https://github.com/cs3org/reva/pull/4737
https://github.com/owncloud/ocis/issues/9355
14 changes: 14 additions & 0 deletions pkg/events/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,17 @@ func (PersonalDataExtracted) Unmarshal(v []byte) (interface{}, error) {
err := json.Unmarshal(v, &e)
return e, err
}

// BackchannelLogout is emitted when the callback from the identity provider is received
type BackchannelLogout struct {
Executant *user.UserId
SessionId string
Timestamp *types.Timestamp
}

// Unmarshal to fulfill umarshaller interface
func (BackchannelLogout) Unmarshal(v []byte) (interface{}, error) {
e := BackchannelLogout{}
err := json.Unmarshal(v, &e)
return e, err
}

0 comments on commit 9e1e8e9

Please sign in to comment.