mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-21 15:52:54 +00:00
28 lines
508 B
Go
28 lines
508 B
Go
package client
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type LogoutFrontchannel struct {
|
|
sid string
|
|
}
|
|
|
|
func NewLogoutFrontchannel(r *http.Request) *LogoutFrontchannel {
|
|
params := r.URL.Query()
|
|
sid := params.Get("sid")
|
|
|
|
return &LogoutFrontchannel{
|
|
sid: sid,
|
|
}
|
|
}
|
|
|
|
// Sid is the session identifier which SHOULD be included as a parameter in the front-channel logout request.
|
|
func (l *LogoutFrontchannel) Sid() string {
|
|
return l.sid
|
|
}
|
|
|
|
func (l *LogoutFrontchannel) MissingSidParameter() bool {
|
|
return len(l.sid) <= 0
|
|
}
|