From 08b5cab875f1a84162bb47773bbe72135135b90e Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 22 Apr 2022 09:55:19 +0200 Subject: FSM: Make data for transitions optional --- src/oauth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/oauth.go') diff --git a/src/oauth.go b/src/oauth.go index 08ec07e..cb13d19 100644 --- a/src/oauth.go +++ b/src/oauth.go @@ -254,7 +254,7 @@ func (eduvpn *VPNState) InitializeOAuth() error { // Fill the struct with the necessary fields filled for the next call to getting the HTTP client oauthSession := OAuthExchangeSession{ClientID: eduvpn.Name, State: state, Verifier: verifier} eduvpn.Server.OAuth = OAuth{TokenURL: eduvpn.Server.Endpoints.API.V3.Token, Session: oauthSession} - eduvpn.GoTransition(OAUTH_STARTED, authURL) + eduvpn.GoTransitionWithData(OAUTH_STARTED, authURL) return nil } @@ -267,7 +267,7 @@ func (eduvpn *VPNState) FinishOAuth() error { if tokenErr != nil { return tokenErr } - eduvpn.GoTransition(AUTHENTICATED, "") + eduvpn.GoTransition(AUTHENTICATED) return nil } -- cgit v1.2.3