okta_api v0.1.10 Okta.IdPs.IdentityProvider View Source

The Okta.IdPs.IdentityProvider represents an Okta IDP for both creation and retrieval

Link to this section Summary

Functions

Returns a default Google IdP with the given name, client_id and client_secret.

Link to this section Functions

Link to this function

google(name, client_id, client_secret)

View Source

Returns a default Google IdP with the given name, client_id and client_secret.

This IDP will be without auto provisioning. To get an auto provisioning Google Idp to a group you can do

Okta.IdPs.IdentityProvider.google(name, client_id, client_secret)
|> Okta.Utils.merge_struct(%Okta.IdPs.IdentityProvider{policy: Okta.IdPs.Policy.auto_provision_to_groups_policy([group_id])})

https://developer.okta.com/docs/reference/api/users/#get-user