Beispiel #1
0
        /// <summary>
        /// Check readiness status This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well.  If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set.  Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
        /// </summary>
        /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of OathkeeperHealthStatus</returns>
        public async System.Threading.Tasks.Task <OathkeeperHealthStatus> IsInstanceReadyAsync()
        {
            Ory.Oathkeeper.Client.Client.ApiResponse <OathkeeperHealthStatus> localVarResponse = await IsInstanceReadyAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
Beispiel #2
0
        /// <summary>
        /// List all rules This method returns an array of all rules that are stored in the backend. This is useful if you want to get a full view of what rules you have currently in place.
        /// </summary>
        /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="limit">The maximum amount of rules returned. (optional)</param>
        /// <param name="offset">The offset from where to start looking. (optional)</param>
        /// <returns>Task of List&lt;OathkeeperRule&gt;</returns>
        public async System.Threading.Tasks.Task <List <OathkeeperRule> > ListRulesAsync(long?limit = default(long?), long?offset = default(long?))
        {
            Ory.Oathkeeper.Client.Client.ApiResponse <List <OathkeeperRule> > localVarResponse = await ListRulesAsyncWithHttpInfo(limit, offset);

            return(localVarResponse.Data);
        }
Beispiel #3
0
 /// <summary>
 /// Check readiness status This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well.  If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set.  Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
 /// </summary>
 /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>OathkeeperHealthStatus</returns>
 public OathkeeperHealthStatus IsInstanceReady()
 {
     Ory.Oathkeeper.Client.Client.ApiResponse <OathkeeperHealthStatus> localVarResponse = IsInstanceReadyWithHttpInfo();
     return(localVarResponse.Data);
 }
Beispiel #4
0
        /// <summary>
        /// Lists cryptographic keys This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens.
        /// </summary>
        /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of OathkeeperJsonWebKeySet</returns>
        public async System.Threading.Tasks.Task <OathkeeperJsonWebKeySet> GetWellKnownJSONWebKeysAsync()
        {
            Ory.Oathkeeper.Client.Client.ApiResponse <OathkeeperJsonWebKeySet> localVarResponse = await GetWellKnownJSONWebKeysAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
Beispiel #5
0
 /// <summary>
 /// List all rules This method returns an array of all rules that are stored in the backend. This is useful if you want to get a full view of what rules you have currently in place.
 /// </summary>
 /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="limit">The maximum amount of rules returned. (optional)</param>
 /// <param name="offset">The offset from where to start looking. (optional)</param>
 /// <returns>List&lt;OathkeeperRule&gt;</returns>
 public List <OathkeeperRule> ListRules(long?limit = default(long?), long?offset = default(long?))
 {
     Ory.Oathkeeper.Client.Client.ApiResponse <List <OathkeeperRule> > localVarResponse = ListRulesWithHttpInfo(limit, offset);
     return(localVarResponse.Data);
 }
Beispiel #6
0
 /// <summary>
 /// Lists cryptographic keys This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens.
 /// </summary>
 /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>OathkeeperJsonWebKeySet</returns>
 public OathkeeperJsonWebKeySet GetWellKnownJSONWebKeys()
 {
     Ory.Oathkeeper.Client.Client.ApiResponse <OathkeeperJsonWebKeySet> localVarResponse = GetWellKnownJSONWebKeysWithHttpInfo();
     return(localVarResponse.Data);
 }
Beispiel #7
0
        /// <summary>
        /// Retrieve a rule Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error.
        /// </summary>
        /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id"></param>
        /// <returns>Task of OathkeeperRule</returns>
        public async System.Threading.Tasks.Task <OathkeeperRule> GetRuleAsync(string id)
        {
            Ory.Oathkeeper.Client.Client.ApiResponse <OathkeeperRule> localVarResponse = await GetRuleAsyncWithHttpInfo(id);

            return(localVarResponse.Data);
        }
Beispiel #8
0
 /// <summary>
 /// Retrieve a rule Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error.
 /// </summary>
 /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id"></param>
 /// <returns>OathkeeperRule</returns>
 public OathkeeperRule GetRule(string id)
 {
     Ory.Oathkeeper.Client.Client.ApiResponse <OathkeeperRule> localVarResponse = GetRuleWithHttpInfo(id);
     return(localVarResponse.Data);
 }
Beispiel #9
0
        /// <summary>
        /// Get service version This endpoint returns the service version typically notated using semantic versioning.  If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set.  Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
        /// </summary>
        /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of OathkeeperVersion</returns>
        public async System.Threading.Tasks.Task <OathkeeperVersion> GetVersionAsync()
        {
            Ory.Oathkeeper.Client.Client.ApiResponse <OathkeeperVersion> localVarResponse = await GetVersionAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
Beispiel #10
0
 /// <summary>
 /// Get service version This endpoint returns the service version typically notated using semantic versioning.  If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set.  Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
 /// </summary>
 /// <exception cref="Ory.Oathkeeper.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>OathkeeperVersion</returns>
 public OathkeeperVersion GetVersion()
 {
     Ory.Oathkeeper.Client.Client.ApiResponse <OathkeeperVersion> localVarResponse = GetVersionWithHttpInfo();
     return(localVarResponse.Data);
 }