Method: OryClient::IdentityApi#get_identity

Defined in:
lib/ory-client/api/identity_api.rb

#get_identity(id, opts = {}) ⇒ Identity

Get an Identity Return an [identity](www.ory.sh/docs/kratos/concepts/identity-user-model) by its ID. You can optionally include credentials (e.g. social sign in connections) in the response by using the ‘include_credential` query parameter.

Parameters:

  • id (String)

    ID must be set to the ID of identity you want to get

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :include_credential (Array<String>)

    Include Credentials in Response Currently, only &#x60;oidc&#x60; is supported. This will return the initial OAuth 2.0 Access, Refresh and (optionally) OpenID Connect ID Token.

Returns:



610
611
612
613
# File 'lib/ory-client/api/identity_api.rb', line 610

def get_identity(id, opts = {})
  data, _status_code, _headers = get_identity_with_http_info(id, opts)
  data
end