/// <summary>
 /// Initializes a new instance of the <see cref="AuthenticatedClient"/> class.
 /// </summary>
 /// <param name="clientWrapper">A preconfigured client for the <see cref="AuthenticatedClient.BaseClient"/></param>
 public AuthenticatedClient(IOktaHttpClient clientWrapper)
 {
     this.BaseClient = clientWrapper;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiClient{T}"/> class.
 /// </summary>
 /// <param name="clientWrapper">The client wrapper.</param>
 /// <param name="resourcePath">The resource path.</param>
 public ApiClient(IOktaHttpClient clientWrapper, string resourcePath) : base(clientWrapper)
 {
     this.resourcePath = resourcePath;
 }
Esempio n. 3
0
 public UsersClient(IOktaHttpClient clientWrapper) : base(clientWrapper, Constants.EndpointV1 + Constants.UsersEndpoint)
 {
 }
Esempio n. 4
0
 public UserAppLinksClient(User user, IOktaHttpClient clientWrapper) : base(clientWrapper, Constants.EndpointV1 + Constants.UsersEndpoint + "/" + user.Id + Constants.AppLinksEndpoint)
 {
 }
Esempio n. 5
0
 public OrgFactorsClient(IOktaHttpClient clientWrapper) : base(clientWrapper, Constants.EndpointV1 + Constants.OrgEndpoint + Constants.FactorsEndpoint)
 {
 }
Esempio n. 6
0
 public SessionsClient(IOktaHttpClient clientWrapper) : base(clientWrapper, Constants.EndpointV1 + Constants.SessionsEndpoint)
 {
 }
Esempio n. 7
0
 public AppGroupsClient(App app, IOktaHttpClient clientWrapper) : base(clientWrapper, Constants.EndpointV1 + Constants.AppsEndpoint + "/" + app.Id + Constants.GroupsEndpoint)
 {
 }
Esempio n. 8
0
 public AuthClient(IOktaHttpClient clientWrapper) : base(clientWrapper)
 {
     resourcePath = Constants.EndpointV1 + Constants.AuthnEndpoint;
 }
Esempio n. 9
0
 public GroupsClient(IOktaHttpClient clientWrapper) : base(clientWrapper, Constants.EndpointV1 + Constants.GroupsEndpoint)
 {
 }
Esempio n. 10
0
 public GroupUsersClient(Group group, IOktaHttpClient clientWrapper) : base(clientWrapper, Constants.EndpointV1 + Constants.GroupsEndpoint + "/" + group.Id + Constants.UsersEndpoint)
 {
 }
Esempio n. 11
0
 public AuthClient(IOktaHttpClient clientWrapper) : base(clientWrapper) { resourcePath = Constants.EndpointV1 + Constants.AuthnEndpoint; }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticatedClient"/> class.
 /// </summary>
 /// <param name="clientWrapper">A preconfigured client for the <see cref="AuthenticatedClient.BaseClient"/></param>
 public AuthenticatedClient(IOktaHttpClient clientWrapper)
 {
     this.BaseClient = clientWrapper;
 }