summaryrefslogtreecommitdiff
path: root/src/oauth.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-22 09:55:19 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-22 09:55:19 +0200
commit08b5cab875f1a84162bb47773bbe72135135b90e (patch)
tree1228363b956b10b240fe05b13c9d9bb2e79d9bb6 /src/oauth.go
parentc7efec780a9e11e97690a19cf751533279788e79 (diff)
FSM: Make data for transitions optional
Diffstat (limited to 'src/oauth.go')
-rw-r--r--src/oauth.go4
1 files changed, 2 insertions, 2 deletions
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
}