summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/src/api/functiondocs.md47
-rw-r--r--exports/exports.go29
2 files changed, 19 insertions, 57 deletions
diff --git a/docs/src/api/functiondocs.md b/docs/src/api/functiondocs.md
index 5d7d9ac..480c10a 100644
--- a/docs/src/api/functiondocs.md
+++ b/docs/src/api/functiondocs.md
@@ -308,14 +308,12 @@ Example Input: ```DiscoOrganizations(myCookie, "")```
Example Output:
{
- "v": 1695291170,
"organization_list": [
{
"display_name": {
"en": "Academic Network of Albania - RASH"
},
"org_id": "https://idp.rash.al/simplesaml/saml2/idp/metadata.php",
- "secure_internet_home": "https://eduvpn.rash.al/"
},
{
"display_name": {
@@ -323,7 +321,6 @@ Example Output:
"en": "Danish Language Council"
},
"org_id": "http://idp.dsn.dk/adfs/services/trust",
- "secure_internet_home": "https://eduvpn.deic.dk/"
},
{
"display_name": {
@@ -331,24 +328,22 @@ Example Output:
"en": "Business Academy Aarhus"
},
"org_id": "http://adfs.eaaa.dk/adfs/services/trust",
- "secure_inte .....................
}, null
Example Input: ```DiscoOrganizations(myCookie, "rash")```
Example Output:
- {
- "v": 1695291170,
- "organization_list": [
- {
- "display_name": {
- "en": "Academic Network of Albania - RASH"
- },
- "org_id": "https://idp.rash.al/simplesaml/saml2/idp/metadata.php",
- "secure_internet_home": "https://eduvpn.rash.al/"
- },
- }, null
+ {
+ "organization_list": [
+ {
+ "display_name": {
+ "en": "Academic Network of Albania - RASH"
+ },
+ "org_id": "https://idp.rash.al/simplesaml/saml2/idp/metadata.php",
+ },
+ ]
+ }, null
## DiscoServers
Signature:
@@ -373,25 +368,14 @@ Example Input: ```DiscoServers(myCookie, "")```
Example Output:
{
- "v": 1695291170,
"server_list": [
{
"base_url": "https://eduvpn.rash.al/",
- "country_code": "AL",
- "public_key_list": [
- "k7.pub.S4j5JJiTEz1fWMkI.hzU_xJasWzD6Da2WR7hgbobx9n3o4XSDeqFh03tgM-0"
- ],
"server_type": "secure_internet",
- "support_contact": [
- "mailto:helpdesk@rash.al"
- ]
},
{
"base_url": "https://eduvpn.deic.dk/",
- "country_code": "DK",
- "public_key_list": [
- "k7.pub.RNOJIYbemlfsE7EL.BxmV2l2UV7pCqz135ofBgyG9-xLg0R9rILQedZrfLtE"
- ], ..................
+ "server_type": "secure_internet",
} , null
Example Input: ```DiscoServers(myCookie, "heanet")```
@@ -399,16 +383,13 @@ Example Input: ```DiscoServers(myCookie, "heanet")```
Example Output:
{
- "v": 1695291170,
"server_list": [
{
"base_url": "https://eduvpn.heanet.ie/",
- "display_name": "HEAnet Staff",
+ "display_name": {
+ "en": "HEAnet Staff"
+ },
"server_type": "institute_access",
- "support_contact": [
- "mailto:noc@heanet.ie",
- "tel:+35316609040"
- ]
},
]
} , null
diff --git a/exports/exports.go b/exports/exports.go
index d914120..8e79421 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -681,25 +681,14 @@ func SetSecureLocation(orgID *C.char, cc *C.char) *C.char {
// Example Output:
//
// {
-// "v": 1695291170,
// "server_list": [
// {
// "base_url": "https://eduvpn.rash.al/",
-// "country_code": "AL",
-// "public_key_list": [
-// "k7.pub.S4j5JJiTEz1fWMkI.hzU_xJasWzD6Da2WR7hgbobx9n3o4XSDeqFh03tgM-0"
-// ],
// "server_type": "secure_internet",
-// "support_contact": [
-// "mailto:helpdesk@rash.al"
-// ]
// },
// {
// "base_url": "https://eduvpn.deic.dk/",
-// "country_code": "DK",
-// "public_key_list": [
-// "k7.pub.RNOJIYbemlfsE7EL.BxmV2l2UV7pCqz135ofBgyG9-xLg0R9rILQedZrfLtE"
-// ], ..................
+// "server_type": "secure_internet",
// } , null
//
// Example Input: ```DiscoServers(myCookie, "heanet")```
@@ -707,16 +696,13 @@ func SetSecureLocation(orgID *C.char, cc *C.char) *C.char {
// Example Output:
//
// {
-// "v": 1695291170,
// "server_list": [
// {
// "base_url": "https://eduvpn.heanet.ie/",
-// "display_name": "HEAnet Staff",
+// "display_name": {
+// "en": "HEAnet Staff"
+// },
// "server_type": "institute_access",
-// "support_contact": [
-// "mailto:noc@heanet.ie",
-// "tel:+35316609040"
-// ]
// },
// ]
// } , null
@@ -755,14 +741,12 @@ func DiscoServers(c C.uintptr_t, search *C.char) (*C.char, *C.char) {
// Example Output:
//
// {
-// "v": 1695291170,
// "organization_list": [
// {
// "display_name": {
// "en": "Academic Network of Albania - RASH"
// },
// "org_id": "https://idp.rash.al/simplesaml/saml2/idp/metadata.php",
-// "secure_internet_home": "https://eduvpn.rash.al/"
// },
// {
// "display_name": {
@@ -770,7 +754,6 @@ func DiscoServers(c C.uintptr_t, search *C.char) (*C.char, *C.char) {
// "en": "Danish Language Council"
// },
// "org_id": "http://idp.dsn.dk/adfs/services/trust",
-// "secure_internet_home": "https://eduvpn.deic.dk/"
// },
// {
// "display_name": {
@@ -778,7 +761,6 @@ func DiscoServers(c C.uintptr_t, search *C.char) (*C.char, *C.char) {
// "en": "Business Academy Aarhus"
// },
// "org_id": "http://adfs.eaaa.dk/adfs/services/trust",
-// "secure_inte .....................
// }, null
//
// Example Input: ```DiscoOrganizations(myCookie, "rash")```
@@ -786,15 +768,14 @@ func DiscoServers(c C.uintptr_t, search *C.char) (*C.char, *C.char) {
// Example Output:
//
// {
-// "v": 1695291170,
// "organization_list": [
// {
// "display_name": {
// "en": "Academic Network of Albania - RASH"
// },
// "org_id": "https://idp.rash.al/simplesaml/saml2/idp/metadata.php",
-// "secure_internet_home": "https://eduvpn.rash.al/"
// },
+// ]
// }, null
//
//