Skip to content

Latest commit

 

History

History
138 lines (86 loc) · 3.15 KB

SsoApi.md

File metadata and controls

138 lines (86 loc) · 3.15 KB

\SsoApi

All URIs are relative to https://app.koyeb.com

Method HTTP request Description
CannyAuth Post /v1/sso/canny
DiscourseAuth Post /v1/sso/discourse

CannyAuth

CannyAuthReply CannyAuth(ctx).Body(body).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    body := map[string]interface{}{ ... } // map[string]interface{} | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SsoApi.CannyAuth(context.Background()).Body(body).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SsoApi.CannyAuth``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `CannyAuth`: CannyAuthReply
    fmt.Fprintf(os.Stdout, "Response from `SsoApi.CannyAuth`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCannyAuthRequest struct via the builder pattern

Name Type Description Notes
body map[string]interface{}

Return type

CannyAuthReply

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DiscourseAuth

DiscourseAuthReply DiscourseAuth(ctx).Body(body).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    body := *openapiclient.NewDiscourseAuthRequest() // DiscourseAuthRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SsoApi.DiscourseAuth(context.Background()).Body(body).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SsoApi.DiscourseAuth``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DiscourseAuth`: DiscourseAuthReply
    fmt.Fprintf(os.Stdout, "Response from `SsoApi.DiscourseAuth`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiDiscourseAuthRequest struct via the builder pattern

Name Type Description Notes
body DiscourseAuthRequest

Return type

DiscourseAuthReply

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]