summaryrefslogtreecommitdiff
path: root/src/state.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-03-08 13:13:14 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-05 12:26:13 +0200
commit5065de4cff907b70ea3446888a7bad243744a8ab (patch)
tree32c610aca2865426415040c324beb2a2a52db756 /src/state.go
parente2bcbc5d7fc8846ed189863ab33f0514f5399365 (diff)
OAuth: Begin implementation without OAuth2 lib
- We want to use as little dependencies as possible. While the OAuth2 library is helpful, it is not needed.
Diffstat (limited to 'src/state.go')
-rw-r--r--src/state.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/state.go b/src/state.go
index 22dcaaf..5d054bb 100644
--- a/src/state.go
+++ b/src/state.go
@@ -1,15 +1,16 @@
package eduvpn
type EduVPNState struct {
- // The struct used for oauth
- OAuth *EduVPNOauth
-
// The endpoints
Endpoints *EduVPNEndpoints
// Info passed by the client
Name string
Server string
+
+ // OAuth
+ OAuthToken *EduVPNOAuthToken
+ OAuthSession *EduVPNOAuthSession
}
func Register(state *EduVPNState, name string, server string) error {
@@ -26,7 +27,6 @@ func Register(state *EduVPNState, name string, server string) error {
return nil
}
-
var VPNStateInstance *EduVPNState
func GetVPNState() *EduVPNState {
@@ -35,5 +35,3 @@ func GetVPNState() *EduVPNState {
}
return VPNStateInstance
}
-
-