Crate okta

Source
Expand description

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.

docs.rs

§API Details

Allows customers to easily access the Okta API

API Terms of Service

§Contact

nameurlemail
Okta Developer Teamhttp://developer.okta.com/devex-public@okta.com

§License

§Client Details

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"

§Basic example

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();

Modules§

applications
authorization_servers
domains
event_hooks
features
groups
identity_providers
inline_hooks
linked_objects
logs
network_zones
policies
profile_mappings
sessions
templates
threat_insights
trusted_origins
types
The data types sent to and returned from the API client.
user_factors
user_schemas
user_types
users

Structs§

Client
Entrypoint for interacting with the API client.
HeaderMap
A set of HTTP headers
Response
RootDefaultServer
StatusCode
An HTTP status code (status-code in RFC 7230 et al.).

Enums§

ClientError
Errors returned by the client

Constants§

FALLBACK_HOST