Show / Hide Table of Contents

Class OAuth2ClientCredential

User can define Oauth clients in IAM, then use it to generate a token to grant access to app resources.

Inheritance
object
OAuth2ClientCredential
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.IdentityService.Models
Assembly: OCI.DotNetSDK.Identity.dll
Syntax
public class OAuth2ClientCredential

Properties

CompartmentId

Declaration
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment containing the Oauth credential.

Description

Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

The description of the Oauth credential.

ExpiresOn

Declaration
[JsonProperty(PropertyName = "expiresOn")]
public DateTime? ExpiresOn { get; set; }
Property Value
Type Description
DateTime?

Date and time when this credential will expire, in the format defined by RFC3339. Null if it never expires.
Example: 2016-08-25T21:10:29.600Z

Id

Declaration
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The OCID of the Oauth credential.

LifecycleState

Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public OAuth2ClientCredential.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
OAuth2ClientCredential.LifecycleStateEnum?

The credential's current state. After creating a Oauth credential, make sure its lifecycleState changes from CREATING to ACTIVE before using it.

Name

Declaration
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type Description
string

The name of the Oauth credential.

Password

Declaration
[JsonProperty(PropertyName = "password")]
public string Password { get; set; }
Property Value
Type Description
string

Returned during create and update with password reset requests.

Scopes

Declaration
[JsonProperty(PropertyName = "scopes")]
public List<FullyQualifiedScope> Scopes { get; set; }
Property Value
Type Description
List<FullyQualifiedScope>

Allowed scopes for the given oauth credential.

TimeCreated

Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

Date and time the OAuth2ClientCredential object was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z

UserId

Declaration
[JsonProperty(PropertyName = "userId")]
public string UserId { get; set; }
Property Value
Type Description
string

The OCID of the user the Oauth credential belongs to.

In this article
Back to top