diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-12 14:20:23 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-12 14:31:05 +0100 |
| commit | 3593e449a5abcc1a33173e75cdd8155763b23be8 (patch) | |
| tree | bf120d67ad2899c7350ac599ac8ccd27dd4719fc /internal/eduvpnapi/eduvpnapi.go | |
| parent | a20ccbd7ad758495e80ad180fb12f874a45e4ae2 (diff) | |
eduvpnapi: simplify OAuth post bool
Diffstat (limited to 'internal/eduvpnapi/eduvpnapi.go')
| -rw-r--r-- | internal/eduvpnapi/eduvpnapi.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/eduvpnapi/eduvpnapi.go b/internal/eduvpnapi/eduvpnapi.go index 62fe0d1..a045865 100644 --- a/internal/eduvpnapi/eduvpnapi.go +++ b/internal/eduvpnapi/eduvpnapi.go @@ -75,11 +75,8 @@ func NewAPI(ctx context.Context, clientID string, sd ServerData, cb Callbacks, t // Construct OAuth transp := sd.Transport() - post := true // we do not support non-loopback clients with response_mode form_post - if cr != "" { - post = false - } + post := cr == "" o := eduoauth.OAuth{ ClientID: clientID, EndpointFunc: func(ctx context.Context) (*eduoauth.EndpointResponse, error) { |
