Crates.io | okta |
lib.rs | okta |
version | 0.7.1 |
source | src |
created_at | 2021-03-08 23:39:16.747217 |
updated_at | 2023-09-01 20:14:27.121474 |
description | A fully generated & opinionated API client for the Okta API. |
homepage | |
repository | https://github.com/oxidecomputer/third-party-api-clients/tree/main/okta |
max_upload_size | |
id | 365907 |
size | 720,114 |
okta
A fully generated, opinionated API client library for Okta. Okta is a registered trademark of Okta, Inc. and this library has no affiliation with or sponsorship by Okta, Inc.
Allows customers to easily access the Okta API
name | url | |
---|---|---|
Okta Developer Team | http://developer.okta.com/ | devex-public@okta.com |
name | url |
---|---|
Apache-2.0 | http://www.apache.org/licenses/LICENSE-2.0.html |
This client is generated from the Okta OpenAPI
specs based on API spec version 2.5.0
. This way it will remain
up to date as features are added. The documentation for the crate is generated
along with the code to make this library easy to use.
To install the library, add the following to your Cargo.toml
file.
[dependencies]
okta = "0.7.1"
Typical use will require intializing a Client
. This requires
a user agent string and set of credentials.
use okta::Client;
let okta = Client::new(
String::from("api-key"),
);
Alternatively, the library can search for most of the variables required for the client in the environment:
OKTA_API_KEY
And then you can create a client from the environment.
use okta::Client;
let okta = Client::new_from_env();