All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeleteJwtCustomizer | Delete /api/configs/jwt-customizer/{tokenTypePath} | Delete JWT customizer |
DeleteOidcKey | Delete /api/configs/oidc/{keyType}/{keyId} | Delete OIDC key |
GetAdminConsoleConfig | Get /api/configs/admin-console | Get admin console config |
GetJwtCustomizer | Get /api/configs/jwt-customizer/{tokenTypePath} | Get JWT customizer |
GetOidcKeys | Get /api/configs/oidc/{keyType} | Get OIDC keys |
ListJwtCustomizers | Get /api/configs/jwt-customizer | Get all JWT customizers |
RotateOidcKeys | Post /api/configs/oidc/{keyType}/rotate | Rotate OIDC keys |
TestJwtCustomizer | Post /api/configs/jwt-customizer/test | Test JWT customizer |
UpdateAdminConsoleConfig | Patch /api/configs/admin-console | Update admin console config |
UpdateJwtCustomizer | Patch /api/configs/jwt-customizer/{tokenTypePath} | Update JWT customizer |
UpsertJwtCustomizer | Put /api/configs/jwt-customizer/{tokenTypePath} | Create or update JWT customizer |
DeleteJwtCustomizer(ctx, tokenTypePath).Execute()
Delete JWT customizer
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
tokenTypePath := "tokenTypePath_example" // string | The token type path to delete the JWT customizer for.
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
r, err := apiClient.ConfigsAPI.DeleteJwtCustomizer(context.Background(), tokenTypePath).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.DeleteJwtCustomizer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
tokenTypePath | string | The token type path to delete the JWT customizer for. |
Other parameters are passed through a pointer to a apiDeleteJwtCustomizerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteOidcKey(ctx, keyType, keyId).Execute()
Delete OIDC key
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
keyType := "keyType_example" // string | Private keys are used to sign OIDC JWTs. Cookie keys are used to sign OIDC cookies. For clients, they do not need to know private keys to verify OIDC JWTs; they can use public keys from the JWKS endpoint instead.
keyId := "keyId_example" // string | The unique identifier of the key.
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
r, err := apiClient.ConfigsAPI.DeleteOidcKey(context.Background(), keyType, keyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.DeleteOidcKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
keyType | string | Private keys are used to sign OIDC JWTs. Cookie keys are used to sign OIDC cookies. For clients, they do not need to know private keys to verify OIDC JWTs; they can use public keys from the JWKS endpoint instead. | |
keyId | string | The unique identifier of the key. |
Other parameters are passed through a pointer to a apiDeleteOidcKeyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAdminConsoleConfig200Response GetAdminConsoleConfig(ctx).Execute()
Get admin console config
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.GetAdminConsoleConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.GetAdminConsoleConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAdminConsoleConfig`: GetAdminConsoleConfig200Response
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.GetAdminConsoleConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetAdminConsoleConfigRequest struct via the builder pattern
GetAdminConsoleConfig200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetJwtCustomizer200Response GetJwtCustomizer(ctx, tokenTypePath).Execute()
Get JWT customizer
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
tokenTypePath := "tokenTypePath_example" // string | The token type to get the JWT customizer for.
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.GetJwtCustomizer(context.Background(), tokenTypePath).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.GetJwtCustomizer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetJwtCustomizer`: GetJwtCustomizer200Response
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.GetJwtCustomizer`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
tokenTypePath | string | The token type to get the JWT customizer for. |
Other parameters are passed through a pointer to a apiGetJwtCustomizerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]GetOidcKeys200ResponseInner GetOidcKeys(ctx, keyType).Execute()
Get OIDC keys
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
keyType := "keyType_example" // string | Private keys are used to sign OIDC JWTs. Cookie keys are used to sign OIDC cookies. For clients, they do not need to know private keys to verify OIDC JWTs; they can use public keys from the JWKS endpoint instead.
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.GetOidcKeys(context.Background(), keyType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.GetOidcKeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOidcKeys`: []GetOidcKeys200ResponseInner
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.GetOidcKeys`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
keyType | string | Private keys are used to sign OIDC JWTs. Cookie keys are used to sign OIDC cookies. For clients, they do not need to know private keys to verify OIDC JWTs; they can use public keys from the JWKS endpoint instead. |
Other parameters are passed through a pointer to a apiGetOidcKeysRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ListJwtCustomizers200ResponseInner ListJwtCustomizers(ctx).Execute()
Get all JWT customizers
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.ListJwtCustomizers(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.ListJwtCustomizers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListJwtCustomizers`: []ListJwtCustomizers200ResponseInner
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.ListJwtCustomizers`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListJwtCustomizersRequest struct via the builder pattern
[]ListJwtCustomizers200ResponseInner
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]GetOidcKeys200ResponseInner RotateOidcKeys(ctx, keyType).RotateOidcKeysRequest(rotateOidcKeysRequest).Execute()
Rotate OIDC keys
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
keyType := "keyType_example" // string | Private keys are used to sign OIDC JWTs. Cookie keys are used to sign OIDC cookies. For clients, they do not need to know private keys to verify OIDC JWTs; they can use public keys from the JWKS endpoint instead.
rotateOidcKeysRequest := *logto.NewRotateOidcKeysRequest() // RotateOidcKeysRequest |
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.RotateOidcKeys(context.Background(), keyType).RotateOidcKeysRequest(rotateOidcKeysRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.RotateOidcKeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RotateOidcKeys`: []GetOidcKeys200ResponseInner
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.RotateOidcKeys`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
keyType | string | Private keys are used to sign OIDC JWTs. Cookie keys are used to sign OIDC cookies. For clients, they do not need to know private keys to verify OIDC JWTs; they can use public keys from the JWKS endpoint instead. |
Other parameters are passed through a pointer to a apiRotateOidcKeysRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
rotateOidcKeysRequest | RotateOidcKeysRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} TestJwtCustomizer(ctx).TestJwtCustomizerRequest(testJwtCustomizerRequest).Execute()
Test JWT customizer
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
testJwtCustomizerRequest := logto.TestJwtCustomizer_request{TestJwtCustomizerRequestOneOf: logto.NewTestJwtCustomizerRequestOneOf("TokenType_example", "Script_example", *logto.NewGetJwtCustomizer200ResponseOneOfTokenSample(), *logto.NewGetJwtCustomizer200ResponseOneOfContextSample(*logto.NewGetJwtCustomizer200ResponseOneOfContextSampleUser()))} // TestJwtCustomizerRequest |
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.TestJwtCustomizer(context.Background()).TestJwtCustomizerRequest(testJwtCustomizerRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.TestJwtCustomizer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TestJwtCustomizer`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.TestJwtCustomizer`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiTestJwtCustomizerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
testJwtCustomizerRequest | TestJwtCustomizerRequest |
map[string]interface{}
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAdminConsoleConfig200Response UpdateAdminConsoleConfig(ctx).UpdateAdminConsoleConfigRequest(updateAdminConsoleConfigRequest).Execute()
Update admin console config
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
updateAdminConsoleConfigRequest := *logto.NewUpdateAdminConsoleConfigRequest() // UpdateAdminConsoleConfigRequest |
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.UpdateAdminConsoleConfig(context.Background()).UpdateAdminConsoleConfigRequest(updateAdminConsoleConfigRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.UpdateAdminConsoleConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAdminConsoleConfig`: GetAdminConsoleConfig200Response
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.UpdateAdminConsoleConfig`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateAdminConsoleConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateAdminConsoleConfigRequest | UpdateAdminConsoleConfigRequest |
GetAdminConsoleConfig200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetJwtCustomizer200Response UpdateJwtCustomizer(ctx, tokenTypePath).UpsertJwtCustomizerRequest(upsertJwtCustomizerRequest).Execute()
Update JWT customizer
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
tokenTypePath := "tokenTypePath_example" // string | The token type to update a JWT customizer for.
upsertJwtCustomizerRequest := *logto.NewUpsertJwtCustomizerRequest() // UpsertJwtCustomizerRequest |
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.UpdateJwtCustomizer(context.Background(), tokenTypePath).UpsertJwtCustomizerRequest(upsertJwtCustomizerRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.UpdateJwtCustomizer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateJwtCustomizer`: GetJwtCustomizer200Response
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.UpdateJwtCustomizer`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
tokenTypePath | string | The token type to update a JWT customizer for. |
Other parameters are passed through a pointer to a apiUpdateJwtCustomizerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
upsertJwtCustomizerRequest | UpsertJwtCustomizerRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetJwtCustomizer200Response UpsertJwtCustomizer(ctx, tokenTypePath).UpsertJwtCustomizerRequest(upsertJwtCustomizerRequest).Execute()
Create or update JWT customizer
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
tokenTypePath := "tokenTypePath_example" // string | The token type to create a JWT customizer for.
upsertJwtCustomizerRequest := *logto.NewUpsertJwtCustomizerRequest() // UpsertJwtCustomizerRequest |
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigsAPI.UpsertJwtCustomizer(context.Background(), tokenTypePath).UpsertJwtCustomizerRequest(upsertJwtCustomizerRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigsAPI.UpsertJwtCustomizer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpsertJwtCustomizer`: GetJwtCustomizer200Response
fmt.Fprintf(os.Stdout, "Response from `ConfigsAPI.UpsertJwtCustomizer`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
tokenTypePath | string | The token type to create a JWT customizer for. |
Other parameters are passed through a pointer to a apiUpsertJwtCustomizerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
upsertJwtCustomizerRequest | UpsertJwtCustomizerRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]