{"id":18552562,"url":"https://github.com/ionos-cloud/sdk-go-auth","last_synced_at":"2026-02-06T20:01:55.313Z","repository":{"id":44631517,"uuid":"428250939","full_name":"ionos-cloud/sdk-go-auth","owner":"ionos-cloud","description":"IONOS Cloud SDK Go Auth","archived":false,"fork":false,"pushed_at":"2024-11-05T12:34:37.000Z","size":142,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-25T13:33:29.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ionos-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-15T12:17:19.000Z","updated_at":"2024-11-05T12:34:40.000Z","dependencies_parsed_at":"2024-12-26T10:15:08.652Z","dependency_job_id":null,"html_url":"https://github.com/ionos-cloud/sdk-go-auth","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ionos-cloud/sdk-go-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fsdk-go-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fsdk-go-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fsdk-go-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fsdk-go-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ionos-cloud","download_url":"https://codeload.github.com/ionos-cloud/sdk-go-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fsdk-go-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29174325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T19:56:27.068Z","status":"ssl_error","status_checked_at":"2026-02-06T19:56:18.934Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T21:14:35.116Z","updated_at":"2026-02-06T20:01:55.289Z","avatar_url":"https://github.com/ionos-cloud.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go API client for ionoscloud\n\nUse the Auth API to manage tokens for secure access to IONOS Cloud APIs (Auth API, Cloud API, Reseller API, Activity Log API, and others).\n\n\n## Overview\nThis API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.  By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.\n\n- API version: 1.0\n- Package version: 1.0.10\n- Build package: org.openapitools.codegen.languages.GoClientCodegen\n\n## Installation\n\nInstall the following dependencies:\n\n```shell\ngo get github.com/stretchr/testify/assert\ngo get golang.org/x/net/context\n```\n\nPut the package under your project folder and add the following in import:\n\n```golang\nimport ionoscloud \"github.com/ionos-cloud/sdk-go-auth\"\n```\n\nTo use a proxy, set the environment variable `HTTP_PROXY`:\n\n```golang\nos.Setenv(\"HTTP_PROXY\", \"http://proxy_name:proxy_port\")\n```\n\n## Configuration of Server URL\n\nDefault configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification.\n\n### Select Server Configuration\n\nFor using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.\n\n```golang\nctx := context.WithValue(context.Background(), ionoscloud.ContextServerIndex, 1)\n```\n\n### Templated Server URL\n\nTemplated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.\n\n```golang\nctx := context.WithValue(context.Background(), ionoscloud.ContextServerVariables, map[string]string{\n\t\"basePath\": \"v2\",\n})\n```\n\nNote, enum values are always validated and all unused variables are silently ignored.\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *https://api.ionos.com/auth/v1*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*TokensApi* | [**TokensDeleteByCriteria**](docs/api/TokensApi.md#tokensdeletebycriteria) | **Delete** /tokens | Delete tokens by criteria\n*TokensApi* | [**TokensDeleteById**](docs/api/TokensApi.md#tokensdeletebyid) | **Delete** /tokens/{tokenId} | Delete tokens\n*TokensApi* | [**TokensFindById**](docs/api/TokensApi.md#tokensfindbyid) | **Get** /tokens/{tokenId} | Get tokens by Key ID\n*TokensApi* | [**TokensGenerate**](docs/api/TokensApi.md#tokensgenerate) | **Get** /tokens/generate | Create new tokens\n*TokensApi* | [**TokensGet**](docs/api/TokensApi.md#tokensget) | **Get** /tokens | List all tokens\n\n\n## Documentation For Models\n\n - [DeleteResponse](docs/models/DeleteResponse.md)\n - [Error](docs/models/Error.md)\n - [ErrorMessages](docs/models/ErrorMessages.md)\n - [Jwt](docs/models/Jwt.md)\n - [Token](docs/models/Token.md)\n - [Tokens](docs/models/Tokens.md)\n\n\n## Documentation For Authorization\n\n\nAuthentication schemes defined for the API:\n### BasicAuthentication\n\n- **Type**: HTTP basic authentication\n\nExample\n\n```golang\nauth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{\n    UserName: \"username\",\n    Password: \"password\",\n})\nr, err := client.Service.Operation(auth, args)\n```\n\n### TokenAuthentication\n\n- **Type**: API key\n- **API key parameter name**: Authorization\n- **Location**: HTTP header\n\nNote, each API key must be added to a map of `map[string]APIKey` where the key is: Authorization and passed in as the auth context for each request.\n\nExample\n\n```golang\nauth := context.WithValue(\n\t\tcontext.Background(),\n\t\tsw.ContextAPIKeys,\n\t\tmap[string]sw.APIKey{\n\t\t\t\"Authorization\": {Key: \"API_KEY_STRING\"},\n\t\t},\n\t)\nr, err := client.Service.Operation(auth, args)\n```\n\n\n## Documentation for Utility Methods\n\nDue to the fact that model structure members are all pointers, this package contains\na number of utility functions to easily obtain pointers to values of basic types.\nEach of these functions takes a value of the given basic type and returns a pointer to it:\n\n* `PtrBool`\n* `PtrInt`\n* `PtrInt32`\n* `PtrInt64`\n* `PtrFloat`\n* `PtrFloat32`\n* `PtrFloat64`\n* `PtrString`\n* `PtrTime`\n\n## Author\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionos-cloud%2Fsdk-go-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionos-cloud%2Fsdk-go-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionos-cloud%2Fsdk-go-auth/lists"}