Spenda.Services.AuthPipeline

Claims

claimsPost

Load Claims

Load an existing Users access token claims or create the new Tenant


/Auth/Claims

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Auth/Claims" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClaimsApi;

import java.io.File;
import java.util.*;

public class ClaimsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ClaimsApi apiInstance = new ClaimsApi();
        PostLoginEvent postLoginEvent = {"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]},"authentication":{"methods":[{"name":"string","timestamp":"string"}]},"authorization":{"roles":[{}]},"connection":{"id":"string","metadata":{},"name":"string","strategy":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"secrets":{"authclaims_Url":"string","function_key":"string"},"configuration":{},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"stats":{"logins_count":0},"user":{"app_metadata":{},"created_at":"string","email_verified":true,"email":"string","family_name":"string","given_name":"string","identities":[{"connection":"string","isSocial":true,"provider":"string","userId":"string","user_id":"string"}],"name":"string","nickname":"string","picture":"string","preferred_username":"string","updated_at":"string","user_id":"string","user_metadata":{"tenantID":"string","tenantName":"string","userID":"string","websiteID":"string","username":"string"},"username":"string","multifactor":["string"]}}; // PostLoginEvent | 

        try {
            loadClaimsResponse result = apiInstance.claimsPost(postLoginEvent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClaimsApi#claimsPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PostLoginEvent postLoginEvent = new PostLoginEvent(); // PostLoginEvent | 

try {
    final result = await api_instance.claimsPost(postLoginEvent);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->claimsPost: $e\n');
}

import org.openapitools.client.api.ClaimsApi;

public class ClaimsApiExample {
    public static void main(String[] args) {
        ClaimsApi apiInstance = new ClaimsApi();
        PostLoginEvent postLoginEvent = {"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]},"authentication":{"methods":[{"name":"string","timestamp":"string"}]},"authorization":{"roles":[{}]},"connection":{"id":"string","metadata":{},"name":"string","strategy":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"secrets":{"authclaims_Url":"string","function_key":"string"},"configuration":{},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"stats":{"logins_count":0},"user":{"app_metadata":{},"created_at":"string","email_verified":true,"email":"string","family_name":"string","given_name":"string","identities":[{"connection":"string","isSocial":true,"provider":"string","userId":"string","user_id":"string"}],"name":"string","nickname":"string","picture":"string","preferred_username":"string","updated_at":"string","user_id":"string","user_metadata":{"tenantID":"string","tenantName":"string","userID":"string","websiteID":"string","username":"string"},"username":"string","multifactor":["string"]}}; // PostLoginEvent | 

        try {
            loadClaimsResponse result = apiInstance.claimsPost(postLoginEvent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClaimsApi#claimsPost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ClaimsApi *apiInstance = [[ClaimsApi alloc] init];
PostLoginEvent *postLoginEvent = {"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]},"authentication":{"methods":[{"name":"string","timestamp":"string"}]},"authorization":{"roles":[{}]},"connection":{"id":"string","metadata":{},"name":"string","strategy":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"secrets":{"authclaims_Url":"string","function_key":"string"},"configuration":{},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"stats":{"logins_count":0},"user":{"app_metadata":{},"created_at":"string","email_verified":true,"email":"string","family_name":"string","given_name":"string","identities":[{"connection":"string","isSocial":true,"provider":"string","userId":"string","user_id":"string"}],"name":"string","nickname":"string","picture":"string","preferred_username":"string","updated_at":"string","user_id":"string","user_metadata":{"tenantID":"string","tenantName":"string","userID":"string","websiteID":"string","username":"string"},"username":"string","multifactor":["string"]}}; //  (optional)

// Load Claims
[apiInstance claimsPostWith:postLoginEvent
              completionHandler: ^(loadClaimsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesAuthPipeline = require('spenda_services_auth_pipeline');

// Create an instance of the API class
var api = new SpendaServicesAuthPipeline.ClaimsApi()
var opts = {
  'postLoginEvent': {"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]},"authentication":{"methods":[{"name":"string","timestamp":"string"}]},"authorization":{"roles":[{}]},"connection":{"id":"string","metadata":{},"name":"string","strategy":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"secrets":{"authclaims_Url":"string","function_key":"string"},"configuration":{},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"stats":{"logins_count":0},"user":{"app_metadata":{},"created_at":"string","email_verified":true,"email":"string","family_name":"string","given_name":"string","identities":[{"connection":"string","isSocial":true,"provider":"string","userId":"string","user_id":"string"}],"name":"string","nickname":"string","picture":"string","preferred_username":"string","updated_at":"string","user_id":"string","user_metadata":{"tenantID":"string","tenantName":"string","userID":"string","websiteID":"string","username":"string"},"username":"string","multifactor":["string"]}} // {PostLoginEvent} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.claimsPost(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class claimsPostExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ClaimsApi();
            var postLoginEvent = new PostLoginEvent(); // PostLoginEvent |  (optional) 

            try {
                // Load Claims
                loadClaimsResponse result = apiInstance.claimsPost(postLoginEvent);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClaimsApi.claimsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ClaimsApi();
$postLoginEvent = {"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]},"authentication":{"methods":[{"name":"string","timestamp":"string"}]},"authorization":{"roles":[{}]},"connection":{"id":"string","metadata":{},"name":"string","strategy":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"secrets":{"authclaims_Url":"string","function_key":"string"},"configuration":{},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"stats":{"logins_count":0},"user":{"app_metadata":{},"created_at":"string","email_verified":true,"email":"string","family_name":"string","given_name":"string","identities":[{"connection":"string","isSocial":true,"provider":"string","userId":"string","user_id":"string"}],"name":"string","nickname":"string","picture":"string","preferred_username":"string","updated_at":"string","user_id":"string","user_metadata":{"tenantID":"string","tenantName":"string","userID":"string","websiteID":"string","username":"string"},"username":"string","multifactor":["string"]}}; // PostLoginEvent | 

try {
    $result = $api_instance->claimsPost($postLoginEvent);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClaimsApi->claimsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ClaimsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ClaimsApi->new();
my $postLoginEvent = WWW::OPenAPIClient::Object::PostLoginEvent->new(); # PostLoginEvent | 

eval {
    my $result = $api_instance->claimsPost(postLoginEvent => $postLoginEvent);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClaimsApi->claimsPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ClaimsApi()
postLoginEvent = {"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]},"authentication":{"methods":[{"name":"string","timestamp":"string"}]},"authorization":{"roles":[{}]},"connection":{"id":"string","metadata":{},"name":"string","strategy":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"secrets":{"authclaims_Url":"string","function_key":"string"},"configuration":{},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"stats":{"logins_count":0},"user":{"app_metadata":{},"created_at":"string","email_verified":true,"email":"string","family_name":"string","given_name":"string","identities":[{"connection":"string","isSocial":true,"provider":"string","userId":"string","user_id":"string"}],"name":"string","nickname":"string","picture":"string","preferred_username":"string","updated_at":"string","user_id":"string","user_metadata":{"tenantID":"string","tenantName":"string","userID":"string","websiteID":"string","username":"string"},"username":"string","multifactor":["string"]}} # PostLoginEvent |  (optional)

try:
    # Load Claims
    api_response = api_instance.claims_post(postLoginEvent=postLoginEvent)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClaimsApi->claimsPost: %s\n" % e)
extern crate ClaimsApi;

pub fn main() {
    let postLoginEvent = {"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]},"authentication":{"methods":[{"name":"string","timestamp":"string"}]},"authorization":{"roles":[{}]},"connection":{"id":"string","metadata":{},"name":"string","strategy":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"secrets":{"authclaims_Url":"string","function_key":"string"},"configuration":{},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"stats":{"logins_count":0},"user":{"app_metadata":{},"created_at":"string","email_verified":true,"email":"string","family_name":"string","given_name":"string","identities":[{"connection":"string","isSocial":true,"provider":"string","userId":"string","user_id":"string"}],"name":"string","nickname":"string","picture":"string","preferred_username":"string","updated_at":"string","user_id":"string","user_metadata":{"tenantID":"string","tenantName":"string","userID":"string","websiteID":"string","username":"string"},"username":"string","multifactor":["string"]}}; // PostLoginEvent

    let mut context = ClaimsApi::Context::default();
    let result = client.claimsPost(postLoginEvent, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
postLoginEvent

Auth0 Post-login event

Responses


mtoMClaimsPost

Machine to Machine Load Claims

Load an access token claims using machine to machine flow


/Auth/MtoMClaims

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Auth/MtoMClaims" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClaimsApi;

import java.io.File;
import java.util.*;

public class ClaimsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ClaimsApi apiInstance = new ClaimsApi();
        CredentialsExchangeEvent credentialsExchangeEvent = {"accessToken":{"customClaims":{},"scope":["string"]},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]}}; // CredentialsExchangeEvent | 

        try {
            loadClaimsResponse result = apiInstance.mtoMClaimsPost(credentialsExchangeEvent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClaimsApi#mtoMClaimsPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CredentialsExchangeEvent credentialsExchangeEvent = new CredentialsExchangeEvent(); // CredentialsExchangeEvent | 

try {
    final result = await api_instance.mtoMClaimsPost(credentialsExchangeEvent);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->mtoMClaimsPost: $e\n');
}

import org.openapitools.client.api.ClaimsApi;

public class ClaimsApiExample {
    public static void main(String[] args) {
        ClaimsApi apiInstance = new ClaimsApi();
        CredentialsExchangeEvent credentialsExchangeEvent = {"accessToken":{"customClaims":{},"scope":["string"]},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]}}; // CredentialsExchangeEvent | 

        try {
            loadClaimsResponse result = apiInstance.mtoMClaimsPost(credentialsExchangeEvent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClaimsApi#mtoMClaimsPost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ClaimsApi *apiInstance = [[ClaimsApi alloc] init];
CredentialsExchangeEvent *credentialsExchangeEvent = {"accessToken":{"customClaims":{},"scope":["string"]},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]}}; //  (optional)

// Machine to Machine Load Claims
[apiInstance mtoMClaimsPostWith:credentialsExchangeEvent
              completionHandler: ^(loadClaimsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesAuthPipeline = require('spenda_services_auth_pipeline');

// Create an instance of the API class
var api = new SpendaServicesAuthPipeline.ClaimsApi()
var opts = {
  'credentialsExchangeEvent': {"accessToken":{"customClaims":{},"scope":["string"]},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]}} // {CredentialsExchangeEvent} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.mtoMClaimsPost(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class mtoMClaimsPostExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ClaimsApi();
            var credentialsExchangeEvent = new CredentialsExchangeEvent(); // CredentialsExchangeEvent |  (optional) 

            try {
                // Machine to Machine Load Claims
                loadClaimsResponse result = apiInstance.mtoMClaimsPost(credentialsExchangeEvent);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClaimsApi.mtoMClaimsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ClaimsApi();
$credentialsExchangeEvent = {"accessToken":{"customClaims":{},"scope":["string"]},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]}}; // CredentialsExchangeEvent | 

try {
    $result = $api_instance->mtoMClaimsPost($credentialsExchangeEvent);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClaimsApi->mtoMClaimsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ClaimsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ClaimsApi->new();
my $credentialsExchangeEvent = WWW::OPenAPIClient::Object::CredentialsExchangeEvent->new(); # CredentialsExchangeEvent | 

eval {
    my $result = $api_instance->mtoMClaimsPost(credentialsExchangeEvent => $credentialsExchangeEvent);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClaimsApi->mtoMClaimsPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ClaimsApi()
credentialsExchangeEvent = {"accessToken":{"customClaims":{},"scope":["string"]},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]}} # CredentialsExchangeEvent |  (optional)

try:
    # Machine to Machine Load Claims
    api_response = api_instance.mto_m_claims_post(credentialsExchangeEvent=credentialsExchangeEvent)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClaimsApi->mtoMClaimsPost: %s\n" % e)
extern crate ClaimsApi;

pub fn main() {
    let credentialsExchangeEvent = {"accessToken":{"customClaims":{},"scope":["string"]},"client":{"client_id":"string","name":"string","metadata":{}},"request":{"ip":"string","method":"string","query":{"audience":"string","client_id":"string","code_challenge":"string","code_challenge_method":"string","nonce":"string","redirect_uri":"string","response_mode":"string","response_type":"string","scope":"string","state":"string","xclientSKU":"string","xclientver":"string","loginSessionID":0},"body":{"loginSessionID":0},"geoip":{"cityName":"string","continentCode":"string","countryCode3":"string","countryCode":"string","countryName":"string","latitude":0,"longitude":0,"subdivisionCode":"string","subdivisionName":"string","timeZone":"string"},"hostname":"string","user_agent":"string"},"resource_server":{"identifier":"string"},"tenant":{"id":"string"},"transaction":{"acr_values":[{}],"locale":"string","prompt":[{}],"protocol":"string","redirect_uri":"string","requested_scopes":["string"],"response_mode":"string","response_type":["string"],"state":"string","ui_locales":[{}]}}; // CredentialsExchangeEvent

    let mut context = ClaimsApi::Context::default();
    let result = client.mtoMClaimsPost(credentialsExchangeEvent, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
credentialsExchangeEvent

Auth0 Credentials Exchange Event

Responses


User

userGet

Get User

Get an existing User


/Auth/User

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Auth/User"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserApi apiInstance = new UserApi();

        try {
            getUserResponse result = apiInstance.userGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.userGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->userGet: $e\n');
}

import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();

        try {
            getUserResponse result = apiInstance.userGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];

// Get User
[apiInstance userGetWithCompletionHandler: 
              ^(getUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesAuthPipeline = require('spenda_services_auth_pipeline');

// Create an instance of the API class
var api = new SpendaServicesAuthPipeline.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserApi();

            try {
                // Get User
                getUserResponse result = apiInstance.userGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.userGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();

try {
    $result = $api_instance->userGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->userGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();

eval {
    my $result = $api_instance->userGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->userGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserApi()

try:
    # Get User
    api_response = api_instance.user_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userGet: %s\n" % e)
extern crate UserApi;

pub fn main() {

    let mut context = UserApi::Context::default();
    let result = client.userGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


UserMFAs

userMFAsGet

Get User MFA Configuration

Get an existing Users MFA Configuration for migration


/Auth/UserMFAs/{userID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Auth/UserMFAs/{userID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserMFAsApi;

import java.io.File;
import java.util.*;

public class UserMFAsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserMFAsApi apiInstance = new UserMFAsApi();
        String userID = userID_example; // String | ID of the user

        try {
            getUserMFAsResponse result = apiInstance.userMFAsGet(userID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserMFAsApi#userMFAsGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userID = new String(); // String | ID of the user

try {
    final result = await api_instance.userMFAsGet(userID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->userMFAsGet: $e\n');
}

import org.openapitools.client.api.UserMFAsApi;

public class UserMFAsApiExample {
    public static void main(String[] args) {
        UserMFAsApi apiInstance = new UserMFAsApi();
        String userID = userID_example; // String | ID of the user

        try {
            getUserMFAsResponse result = apiInstance.userMFAsGet(userID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserMFAsApi#userMFAsGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserMFAsApi *apiInstance = [[UserMFAsApi alloc] init];
String *userID = userID_example; // ID of the user (default to null)

// Get User MFA Configuration
[apiInstance userMFAsGetWith:userID
              completionHandler: ^(getUserMFAsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesAuthPipeline = require('spenda_services_auth_pipeline');

// Create an instance of the API class
var api = new SpendaServicesAuthPipeline.UserMFAsApi()
var userID = userID_example; // {String} ID of the user

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userMFAsGet(userID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userMFAsGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserMFAsApi();
            var userID = userID_example;  // String | ID of the user (default to null)

            try {
                // Get User MFA Configuration
                getUserMFAsResponse result = apiInstance.userMFAsGet(userID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserMFAsApi.userMFAsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserMFAsApi();
$userID = userID_example; // String | ID of the user

try {
    $result = $api_instance->userMFAsGet($userID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserMFAsApi->userMFAsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserMFAsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserMFAsApi->new();
my $userID = userID_example; # String | ID of the user

eval {
    my $result = $api_instance->userMFAsGet(userID => $userID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserMFAsApi->userMFAsGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserMFAsApi()
userID = userID_example # String | ID of the user (default to null)

try:
    # Get User MFA Configuration
    api_response = api_instance.user_mfas_get(userID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserMFAsApi->userMFAsGet: %s\n" % e)
extern crate UserMFAsApi;

pub fn main() {
    let userID = userID_example; // String

    let mut context = UserMFAsApi::Context::default();
    let result = client.userMFAsGet(userID, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
userID*
String
ID of the user
Required

Responses