Irurueta Auth Server Pages

ConsentPage

consentPage

Renders the consent page

Renders the page the authorization endpoint redirects to when a client needs the user's approval: the client, the requested scopes (as checkboxes, checked by default) and the scopes granted earlier. The decision is posted to the authorization endpoint (POST /oauth2/authorize), or to the device verification endpoint for a device, never to this operation.


/oauth2/consent

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: text/html" \
 "http://localhost:9000/oauth2/consent?client_id=clientId_example&scope=scope_example&state=state_example&user_code=userCode_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConsentPageApi;

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

public class ConsentPageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ConsentPageApi apiInstance = new ConsentPageApi();
        String clientId = clientId_example; // String | Identifier of the registered client that asks for access.
        String scope = scope_example; // String | Requested scopes, space delimited as in the authorization request.
        String state = state_example; // String | State the authorization endpoint generated for the consent step, posted back with the decision.
        String userCode = userCode_example; // String | Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code.

        try {
            'String' result = apiInstance.consentPage(clientId, scope, state, userCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConsentPageApi#consentPage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String clientId = new String(); // String | Identifier of the registered client that asks for access.
final String scope = new String(); // String | Requested scopes, space delimited as in the authorization request.
final String state = new String(); // String | State the authorization endpoint generated for the consent step, posted back with the decision.
final String userCode = new String(); // String | Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code.

try {
    final result = await api_instance.consentPage(clientId, scope, state, userCode);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->consentPage: $e\n');
}

import org.openapitools.client.api.ConsentPageApi;

public class ConsentPageApiExample {
    public static void main(String[] args) {
        ConsentPageApi apiInstance = new ConsentPageApi();
        String clientId = clientId_example; // String | Identifier of the registered client that asks for access.
        String scope = scope_example; // String | Requested scopes, space delimited as in the authorization request.
        String state = state_example; // String | State the authorization endpoint generated for the consent step, posted back with the decision.
        String userCode = userCode_example; // String | Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code.

        try {
            'String' result = apiInstance.consentPage(clientId, scope, state, userCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConsentPageApi#consentPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


// Create an instance of the API class
ConsentPageApi *apiInstance = [[ConsentPageApi alloc] init];
String *clientId = clientId_example; // Identifier of the registered client that asks for access. (default to null)
String *scope = scope_example; // Requested scopes, space delimited as in the authorization request. (default to null)
String *state = state_example; // State the authorization endpoint generated for the consent step, posted back with the decision. (default to null)
String *userCode = userCode_example; // Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code. (optional) (default to null)

// Renders the consent page
[apiInstance consentPageWith:clientId
    scope:scope
    state:state
    userCode:userCode
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

// Create an instance of the API class
var api = new IruruetaAuthServerPages.ConsentPageApi()
var clientId = clientId_example; // {String} Identifier of the registered client that asks for access.
var scope = scope_example; // {String} Requested scopes, space delimited as in the authorization request.
var state = state_example; // {String} State the authorization endpoint generated for the consent step, posted back with the decision.
var opts = {
  'userCode': userCode_example // {String} Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code.
};

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

namespace Example
{
    public class consentPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ConsentPageApi();
            var clientId = clientId_example;  // String | Identifier of the registered client that asks for access. (default to null)
            var scope = scope_example;  // String | Requested scopes, space delimited as in the authorization request. (default to null)
            var state = state_example;  // String | State the authorization endpoint generated for the consent step, posted back with the decision. (default to null)
            var userCode = userCode_example;  // String | Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code. (optional)  (default to null)

            try {
                // Renders the consent page
                'String' result = apiInstance.consentPage(clientId, scope, state, userCode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ConsentPageApi.consentPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConsentPageApi();
$clientId = clientId_example; // String | Identifier of the registered client that asks for access.
$scope = scope_example; // String | Requested scopes, space delimited as in the authorization request.
$state = state_example; // String | State the authorization endpoint generated for the consent step, posted back with the decision.
$userCode = userCode_example; // String | Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code.

try {
    $result = $api_instance->consentPage($clientId, $scope, $state, $userCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConsentPageApi->consentPage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConsentPageApi;

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConsentPageApi->new();
my $clientId = clientId_example; # String | Identifier of the registered client that asks for access.
my $scope = scope_example; # String | Requested scopes, space delimited as in the authorization request.
my $state = state_example; # String | State the authorization endpoint generated for the consent step, posted back with the decision.
my $userCode = userCode_example; # String | Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code.

eval {
    my $result = $api_instance->consentPage(clientId => $clientId, scope => $scope, state => $state, userCode => $userCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ConsentPageApi->consentPage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ConsentPageApi()
clientId = clientId_example # String | Identifier of the registered client that asks for access. (default to null)
scope = scope_example # String | Requested scopes, space delimited as in the authorization request. (default to null)
state = state_example # String | State the authorization endpoint generated for the consent step, posted back with the decision. (default to null)
userCode = userCode_example # String | Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code. (optional) (default to null)

try:
    # Renders the consent page
    api_response = api_instance.consent_page(clientId, scope, state, userCode=userCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConsentPageApi->consentPage: %s\n" % e)
extern crate ConsentPageApi;

pub fn main() {
    let clientId = clientId_example; // String
    let scope = scope_example; // String
    let state = state_example; // String
    let userCode = userCode_example; // String

    let mut context = ConsentPageApi::Context::default();
    let result = client.consentPage(clientId, scope, state, userCode, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
client_id*
String
Identifier of the registered client that asks for access.
Required
scope*
String
Requested scopes, space delimited as in the authorization request.
Required
state*
String
State the authorization endpoint generated for the consent step, posted back with the decision.
Required
user_code
String
Present when the consent is asked for a device (OAuth 2.0 Device Authorization Grant): the user code of the request. The decision is then posted to the device verification endpoint (POST /oauth2/device_verification) instead, with this code.

Responses


DevSMSInboxPage

devSmsInboxPage

Renders the development SMS inbox

Development only: it exists when the dev profile is active, and nowhere else (OpenApiDriftIT leaves it out of the comparison because the application it starts does not run that profile). Lists the messages the logging sender recorded instead of sending them, newest last, so a developer or an end-to-end test can read the code of a sign-in or of a phone enrolment. Public in that profile; the inbox is bounded and lives in memory.


/dev/sms-inbox

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/html" \
 "http://localhost:9000/dev/sms-inbox"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DevSMSInboxPageApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DevSMSInboxPageApi;

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

        try {
            'String' result = apiInstance.devSmsInboxPage();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevSMSInboxPageApi#devSmsInboxPage");
            e.printStackTrace();
        }
    }
}


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

// Renders the development SMS inbox
[apiInstance devSmsInboxPageWithCompletionHandler: 
              ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');

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

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

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

            try {
                // Renders the development SMS inbox
                'String' result = apiInstance.devSmsInboxPage();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DevSMSInboxPageApi.devSmsInboxPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->devSmsInboxPage();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DevSMSInboxPageApi->devSmsInboxPage: $@\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.DevSMSInboxPageApi()

try:
    # Renders the development SMS inbox
    api_response = api_instance.dev_sms_inbox_page()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DevSMSInboxPageApi->devSmsInboxPage: %s\n" % e)
extern crate DevSMSInboxPageApi;

pub fn main() {

    let mut context = DevSMSInboxPageApi::Context::default();
    let result = client.devSmsInboxPage(&context).wait();

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

Scopes

Parameters

Responses


DeviceVerificationPage

deviceVerificationPage

Renders the device verification page

Renders the page the verification URI of the device authorization response points to: the form where the user types the code the device displays (RFC 8628). The form posts the code to the authorization server's own device verification endpoint (POST /oauth2/device_verification, owned by the framework, with the CSRF token), never to this operation. A request that already carries the code (verification_uri_complete) is answered by that endpoint directly, which also applies the multi-factor policy of the account and the limit on the attempts, and sends the browser on to the consent page (GET /oauth2/consent) or back here with a confirmation or an error. A request without a signed-in session is redirected to the sign-in page and resumed afterwards.


/oauth2/device_verification

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: text/html" \
 "http://localhost:9000/oauth2/device_verification?user_code=userCode_example&error=error_example&success=success_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DeviceVerificationPageApi;

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

public class DeviceVerificationPageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DeviceVerificationPageApi apiInstance = new DeviceVerificationPageApi();
        String userCode = userCode_example; // String | A user code to prefill in the form. Any value that is not a plausible code is ignored.
        String error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same).
        String success = success_example; // String | Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue.

        try {
            'String' result = apiInstance.deviceVerificationPage(userCode, error, success);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceVerificationPageApi#deviceVerificationPage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userCode = new String(); // String | A user code to prefill in the form. Any value that is not a plausible code is ignored.
final String error = new String(); // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same).
final String success = new String(); // String | Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue.

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

import org.openapitools.client.api.DeviceVerificationPageApi;

public class DeviceVerificationPageApiExample {
    public static void main(String[] args) {
        DeviceVerificationPageApi apiInstance = new DeviceVerificationPageApi();
        String userCode = userCode_example; // String | A user code to prefill in the form. Any value that is not a plausible code is ignored.
        String error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same).
        String success = success_example; // String | Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue.

        try {
            'String' result = apiInstance.deviceVerificationPage(userCode, error, success);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceVerificationPageApi#deviceVerificationPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


// Create an instance of the API class
DeviceVerificationPageApi *apiInstance = [[DeviceVerificationPageApi alloc] init];
String *userCode = userCode_example; // A user code to prefill in the form. Any value that is not a plausible code is ignored. (optional) (default to null)
String *error = error_example; // Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same). (optional) (default to null)
String *success = success_example; // Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue. (optional) (default to null)

// Renders the device verification page
[apiInstance deviceVerificationPageWith:userCode
    error:error
    success:success
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

// Create an instance of the API class
var api = new IruruetaAuthServerPages.DeviceVerificationPageApi()
var opts = {
  'userCode': userCode_example, // {String} A user code to prefill in the form. Any value that is not a plausible code is ignored.
  'error': error_example, // {String} Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same).
  'success': success_example // {String} Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue.
};

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

namespace Example
{
    public class deviceVerificationPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DeviceVerificationPageApi();
            var userCode = userCode_example;  // String | A user code to prefill in the form. Any value that is not a plausible code is ignored. (optional)  (default to null)
            var error = error_example;  // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same). (optional)  (default to null)
            var success = success_example;  // String | Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue. (optional)  (default to null)

            try {
                // Renders the device verification page
                'String' result = apiInstance.deviceVerificationPage(userCode, error, success);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DeviceVerificationPageApi.deviceVerificationPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DeviceVerificationPageApi();
$userCode = userCode_example; // String | A user code to prefill in the form. Any value that is not a plausible code is ignored.
$error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same).
$success = success_example; // String | Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue.

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

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DeviceVerificationPageApi->new();
my $userCode = userCode_example; # String | A user code to prefill in the form. Any value that is not a plausible code is ignored.
my $error = error_example; # String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same).
my $success = success_example; # String | Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue.

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

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DeviceVerificationPageApi()
userCode = userCode_example # String | A user code to prefill in the form. Any value that is not a plausible code is ignored. (optional) (default to null)
error = error_example # String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same). (optional) (default to null)
success = success_example # String | Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue. (optional) (default to null)

try:
    # Renders the device verification page
    api_response = api_instance.device_verification_page(userCode=userCode, error=error, success=success)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeviceVerificationPageApi->deviceVerificationPage: %s\n" % e)
extern crate DeviceVerificationPageApi;

pub fn main() {
    let userCode = userCode_example; // String
    let error = error_example; // String
    let success = success_example; // String

    let mut context = DeviceVerificationPageApi::Context::default();
    let result = client.deviceVerificationPage(userCode, error, success, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
user_code
String
A user code to prefill in the form. Any value that is not a plausible code is ignored.
error
String
Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows a message that never says why (an unknown, expired or already used code look the same).
success
String
Present (its value is ignored, usually empty) when the user has just approved the device; the page then says that the device may continue.

Responses


IdentitiesPage

identitiesPage

Renders the linked identities account page

Renders the page where the signed-in user sees the identities of external providers (Google, Microsoft, Apple, GitHub) linked to the account and links another one: one button per configured provider, each a form that posts to POST /account/identities/link with the CSRF token. Unlinking is done through the bearer-protected REST API (DELETE /api/account/identities/{id}), which requires a recent multi-factor sign-in. Like the passkeys page it needs a session that satisfies the multi-factor policy of the account. A request without a signed-in session is redirected to the sign-in page.


/account/identities

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: text/html" \
 "http://localhost:9000/account/identities?status=status_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.IdentitiesPageApi;

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

public class IdentitiesPageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

        // Create an instance of the API class
        IdentitiesPageApi apiInstance = new IdentitiesPageApi();
        String status = status_example; // String | Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored.

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

final api_instance = DefaultApi();

final String status = new String(); // String | Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored.

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

import org.openapitools.client.api.IdentitiesPageApi;

public class IdentitiesPageApiExample {
    public static void main(String[] args) {
        IdentitiesPageApi apiInstance = new IdentitiesPageApi();
        String status = status_example; // String | Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored.

        try {
            'String' result = apiInstance.identitiesPage(status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IdentitiesPageApi#identitiesPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


// Create an instance of the API class
IdentitiesPageApi *apiInstance = [[IdentitiesPageApi alloc] init];
String *status = status_example; // Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored. (optional) (default to null)

// Renders the linked identities account page
[apiInstance identitiesPageWith:status
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

// Create an instance of the API class
var api = new IruruetaAuthServerPages.IdentitiesPageApi()
var opts = {
  'status': status_example // {String} Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored.
};

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

namespace Example
{
    public class identitiesPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

            // Create an instance of the API class
            var apiInstance = new IdentitiesPageApi();
            var status = status_example;  // String | Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored. (optional)  (default to null)

            try {
                // Renders the linked identities account page
                'String' result = apiInstance.identitiesPage(status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling IdentitiesPageApi.identitiesPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\IdentitiesPageApi();
$status = status_example; // String | Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored.

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

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::IdentitiesPageApi->new();
my $status = status_example; # String | Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored.

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

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.IdentitiesPageApi()
status = status_example # String | Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored. (optional) (default to null)

try:
    # Renders the linked identities account page
    api_response = api_instance.identities_page(status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IdentitiesPageApi->identitiesPage: %s\n" % e)
extern crate IdentitiesPageApi;

pub fn main() {
    let status = status_example; // String

    let mut context = IdentitiesPageApi::Context::default();
    let result = client.identitiesPage(status, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
status
String
Outcome of the previous link attempt, so the page can tell it: linked (the identity is now linked), already-linked (the identity belongs to another account, nothing changed) or unknown-provider (the provider is not configured). Any other value is ignored.

Responses


linkIdentityPage

Starts linking an identity of an external provider

Records, in the session, that the next sign-in with the provider is a link to the signed-in account (the marker is short-lived and used once) and redirects to the provider's sign-in (/oauth2/authorization/{provider}, answered by Spring Security). When the provider sends the user back, the identity is linked to the signed-in account instead of signing anybody in: the session keeps its user, and the browser returns to this page with status linked, or already-linked when the identity belongs to another account. A provider that is not configured redirects to the page with status unknown-provider.


/account/identities/link

Usage and SDK Samples

curl -X POST \
 \
 -H "Content-Type: application/x-www-form-urlencoded" \
 "http://localhost:9000/account/identities/link"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.IdentitiesPageApi;

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

public class IdentitiesPageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

        // Create an instance of the API class
        IdentitiesPageApi apiInstance = new IdentitiesPageApi();
        String provider = provider_example; // String | Registration id of the provider (google, microsoft, apple or github).

        try {
            apiInstance.linkIdentityPage(provider);
        } catch (ApiException e) {
            System.err.println("Exception when calling IdentitiesPageApi#linkIdentityPage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String provider = new String(); // String | Registration id of the provider (google, microsoft, apple or github).

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

import org.openapitools.client.api.IdentitiesPageApi;

public class IdentitiesPageApiExample {
    public static void main(String[] args) {
        IdentitiesPageApi apiInstance = new IdentitiesPageApi();
        String provider = provider_example; // String | Registration id of the provider (google, microsoft, apple or github).

        try {
            apiInstance.linkIdentityPage(provider);
        } catch (ApiException e) {
            System.err.println("Exception when calling IdentitiesPageApi#linkIdentityPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


// Create an instance of the API class
IdentitiesPageApi *apiInstance = [[IdentitiesPageApi alloc] init];
String *provider = provider_example; // Registration id of the provider (google, microsoft, apple or github). (default to null)

// Starts linking an identity of an external provider
[apiInstance linkIdentityPageWith:provider
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

// Create an instance of the API class
var api = new IruruetaAuthServerPages.IdentitiesPageApi()
var provider = provider_example; // {String} Registration id of the provider (google, microsoft, apple or github).

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

namespace Example
{
    public class linkIdentityPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

            // Create an instance of the API class
            var apiInstance = new IdentitiesPageApi();
            var provider = provider_example;  // String | Registration id of the provider (google, microsoft, apple or github). (default to null)

            try {
                // Starts linking an identity of an external provider
                apiInstance.linkIdentityPage(provider);
            } catch (Exception e) {
                Debug.Print("Exception when calling IdentitiesPageApi.linkIdentityPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\IdentitiesPageApi();
$provider = provider_example; // String | Registration id of the provider (google, microsoft, apple or github).

try {
    $api_instance->linkIdentityPage($provider);
} catch (Exception $e) {
    echo 'Exception when calling IdentitiesPageApi->linkIdentityPage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::IdentitiesPageApi;

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::IdentitiesPageApi->new();
my $provider = provider_example; # String | Registration id of the provider (google, microsoft, apple or github).

eval {
    $api_instance->linkIdentityPage(provider => $provider);
};
if ($@) {
    warn "Exception when calling IdentitiesPageApi->linkIdentityPage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.IdentitiesPageApi()
provider = provider_example # String | Registration id of the provider (google, microsoft, apple or github). (default to null)

try:
    # Starts linking an identity of an external provider
    api_instance.link_identity_page(provider)
except ApiException as e:
    print("Exception when calling IdentitiesPageApi->linkIdentityPage: %s\n" % e)
extern crate IdentitiesPageApi;

pub fn main() {
    let provider = provider_example; // String

    let mut context = IdentitiesPageApi::Context::default();
    let result = client.linkIdentityPage(provider, &context).wait();

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

Scopes

Parameters

Form parameters
Name Description
provider*
String
Registration id of the provider (google, microsoft, apple or github).
Required

Responses

Name Type Format Description
Location String The provider's sign-in, or the identities page.

LoginPage

loginPage

Renders the sign-in page

Renders the sign-in page with the form of every sign-in method (each LoginMethodFragment bean contributes one). The forms post to the security chain (POST /login), never to this operation. Public: it is where the browser is sent when it has no session.


/login

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/html" \
 "http://localhost:9000/login?error=error_example&logout=logout_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginPageApi;

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

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

        // Create an instance of the API class
        LoginPageApi apiInstance = new LoginPageApi();
        String error = error_example; // String | Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists.
        String logout = logout_example; // String | Present (its value is ignored, usually empty) when the user has just signed out; the page then says so.

        try {
            'String' result = apiInstance.loginPage(error, logout);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginPageApi#loginPage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String error = new String(); // String | Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists.
final String logout = new String(); // String | Present (its value is ignored, usually empty) when the user has just signed out; the page then says so.

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

import org.openapitools.client.api.LoginPageApi;

public class LoginPageApiExample {
    public static void main(String[] args) {
        LoginPageApi apiInstance = new LoginPageApi();
        String error = error_example; // String | Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists.
        String logout = logout_example; // String | Present (its value is ignored, usually empty) when the user has just signed out; the page then says so.

        try {
            'String' result = apiInstance.loginPage(error, logout);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginPageApi#loginPage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LoginPageApi *apiInstance = [[LoginPageApi alloc] init];
String *error = error_example; // Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists. (optional) (default to null)
String *logout = logout_example; // Present (its value is ignored, usually empty) when the user has just signed out; the page then says so. (optional) (default to null)

// Renders the sign-in page
[apiInstance loginPageWith:error
    logout:logout
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');

// Create an instance of the API class
var api = new IruruetaAuthServerPages.LoginPageApi()
var opts = {
  'error': error_example, // {String} Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists.
  'logout': logout_example // {String} Present (its value is ignored, usually empty) when the user has just signed out; the page then says so.
};

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

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

            // Create an instance of the API class
            var apiInstance = new LoginPageApi();
            var error = error_example;  // String | Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists. (optional)  (default to null)
            var logout = logout_example;  // String | Present (its value is ignored, usually empty) when the user has just signed out; the page then says so. (optional)  (default to null)

            try {
                // Renders the sign-in page
                'String' result = apiInstance.loginPage(error, logout);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LoginPageApi.loginPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginPageApi();
$error = error_example; // String | Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists.
$logout = logout_example; // String | Present (its value is ignored, usually empty) when the user has just signed out; the page then says so.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginPageApi->new();
my $error = error_example; # String | Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists.
my $logout = logout_example; # String | Present (its value is ignored, usually empty) when the user has just signed out; the page then says so.

eval {
    my $result = $api_instance->loginPage(error => $error, logout => $logout);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginPageApi->loginPage: $@\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.LoginPageApi()
error = error_example # String | Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists. (optional) (default to null)
logout = logout_example # String | Present (its value is ignored, usually empty) when the user has just signed out; the page then says so. (optional) (default to null)

try:
    # Renders the sign-in page
    api_response = api_instance.login_page(error=error, logout=logout)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginPageApi->loginPage: %s\n" % e)
extern crate LoginPageApi;

pub fn main() {
    let error = error_example; // String
    let logout = logout_example; // String

    let mut context = LoginPageApi::Context::default();
    let result = client.loginPage(error, logout, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
error
String
Present (its value is ignored, usually empty) when the previous sign-in failed; the page then shows the message of that failure, which never reveals whether the account exists.
logout
String
Present (its value is ignored, usually empty) when the user has just signed out; the page then says so.

Responses


LogoutPage

logoutPage

Renders the sign-out confirmation page

Renders the page that asks the signed-in user to confirm signing out. A GET never signs the user out (any page could trigger it); the confirmation form posts to the security chain (POST /logout), with the CSRF token.


/logout

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: text/html" \
 "http://localhost:9000/logout"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LogoutPageApi;

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

public class LogoutPageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.LogoutPageApi;

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

        try {
            'String' result = apiInstance.logoutPage();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogoutPageApi#logoutPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


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

// Renders the sign-out confirmation page
[apiInstance logoutPageWithCompletionHandler: 
              ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

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

namespace Example
{
    public class logoutPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

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

            try {
                // Renders the sign-out confirmation page
                'String' result = apiInstance.logoutPage();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LogoutPageApi.logoutPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

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

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

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

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

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

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

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

try:
    # Renders the sign-out confirmation page
    api_response = api_instance.logout_page()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LogoutPageApi->logoutPage: %s\n" % e)
extern crate LogoutPageApi;

pub fn main() {

    let mut context = LogoutPageApi::Context::default();
    let result = client.logoutPage(&context).wait();

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

Scopes

Parameters

Responses


OneTimeTokenPage

ottCodePage

Renders the page where the one-time code is entered

Where the browser lands after a one-time token was requested on POST /ott/generate, for a sign-in or as a second factor, whatever the identifier was: the answer never depends on whether the account exists. It tells the user to check the inbox (the e-mail or the SMS) and, when a numeric code was requested, shows the form to type it. The form posts to the security chain, never to this operation: POST /login/ott for a sign-in and POST /login/second-factor/ott for a second factor (the CSRF token travels in the form). A code only works in the browser that requested it. Public: a sign-in starts without a session; the second-factor variant is the one a signed-in user sees.


/login/ott

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/html" \
 "http://localhost:9000/login/ott?error=error_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OneTimeTokenPageApi;

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

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

        // Create an instance of the API class
        OneTimeTokenPageApi apiInstance = new OneTimeTokenPageApi();
        String error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists.

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

final api_instance = DefaultApi();

final String error = new String(); // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists.

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

import org.openapitools.client.api.OneTimeTokenPageApi;

public class OneTimeTokenPageApiExample {
    public static void main(String[] args) {
        OneTimeTokenPageApi apiInstance = new OneTimeTokenPageApi();
        String error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists.

        try {
            'String' result = apiInstance.ottCodePage(error);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OneTimeTokenPageApi#ottCodePage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
OneTimeTokenPageApi *apiInstance = [[OneTimeTokenPageApi alloc] init];
String *error = error_example; // Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists. (optional) (default to null)

// Renders the page where the one-time code is entered
[apiInstance ottCodePageWith:error
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');

// Create an instance of the API class
var api = new IruruetaAuthServerPages.OneTimeTokenPageApi()
var opts = {
  'error': error_example // {String} Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists.
};

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

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

            // Create an instance of the API class
            var apiInstance = new OneTimeTokenPageApi();
            var error = error_example;  // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists. (optional)  (default to null)

            try {
                // Renders the page where the one-time code is entered
                'String' result = apiInstance.ottCodePage(error);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OneTimeTokenPageApi.ottCodePage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OneTimeTokenPageApi();
$error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OneTimeTokenPageApi->new();
my $error = error_example; # String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists.

eval {
    my $result = $api_instance->ottCodePage(error => $error);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OneTimeTokenPageApi->ottCodePage: $@\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.OneTimeTokenPageApi()
error = error_example # String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists. (optional) (default to null)

try:
    # Renders the page where the one-time code is entered
    api_response = api_instance.ott_code_page(error=error)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OneTimeTokenPageApi->ottCodePage: %s\n" % e)
extern crate OneTimeTokenPageApi;

pub fn main() {
    let error = error_example; // String

    let mut context = OneTimeTokenPageApi::Context::default();
    let result = client.ottCodePage(error, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
error
String
Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never says whether the code was close or the account exists.

Responses


ottConfirmPage

Renders the page a magic link opens

Renders a page with a single button whose form posts the token of the link to POST /login/ott. A GET never consumes the token, so a mail scanner or a link preview that opens the link does not use it up: only the user's click does. The answer is never cached and sends no referrer. The token is not checked here: it is verified when it is posted. Public.


/login/ott/confirm

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/html" \
 "http://localhost:9000/login/ott/confirm?token=token_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OneTimeTokenPageApi;

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

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

        // Create an instance of the API class
        OneTimeTokenPageApi apiInstance = new OneTimeTokenPageApi();
        String token = token_example; // String | The token of the magic link, as the e-mail carried it.

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

final api_instance = DefaultApi();

final String token = new String(); // String | The token of the magic link, as the e-mail carried it.

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

import org.openapitools.client.api.OneTimeTokenPageApi;

public class OneTimeTokenPageApiExample {
    public static void main(String[] args) {
        OneTimeTokenPageApi apiInstance = new OneTimeTokenPageApi();
        String token = token_example; // String | The token of the magic link, as the e-mail carried it.

        try {
            'String' result = apiInstance.ottConfirmPage(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OneTimeTokenPageApi#ottConfirmPage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
OneTimeTokenPageApi *apiInstance = [[OneTimeTokenPageApi alloc] init];
String *token = token_example; // The token of the magic link, as the e-mail carried it. (default to null)

// Renders the page a magic link opens
[apiInstance ottConfirmPageWith:token
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');

// Create an instance of the API class
var api = new IruruetaAuthServerPages.OneTimeTokenPageApi()
var token = token_example; // {String} The token of the magic link, as the e-mail carried it.

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

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

            // Create an instance of the API class
            var apiInstance = new OneTimeTokenPageApi();
            var token = token_example;  // String | The token of the magic link, as the e-mail carried it. (default to null)

            try {
                // Renders the page a magic link opens
                'String' result = apiInstance.ottConfirmPage(token);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OneTimeTokenPageApi.ottConfirmPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OneTimeTokenPageApi();
$token = token_example; // String | The token of the magic link, as the e-mail carried it.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OneTimeTokenPageApi->new();
my $token = token_example; # String | The token of the magic link, as the e-mail carried it.

eval {
    my $result = $api_instance->ottConfirmPage(token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OneTimeTokenPageApi->ottConfirmPage: $@\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.OneTimeTokenPageApi()
token = token_example # String | The token of the magic link, as the e-mail carried it. (default to null)

try:
    # Renders the page a magic link opens
    api_response = api_instance.ott_confirm_page(token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OneTimeTokenPageApi->ottConfirmPage: %s\n" % e)
extern crate OneTimeTokenPageApi;

pub fn main() {
    let token = token_example; // String

    let mut context = OneTimeTokenPageApi::Context::default();
    let result = client.ottConfirmPage(token, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
token*
String
The token of the magic link, as the e-mail carried it.
Required

Responses


PasskeysPage

passkeysPage

Renders the passkeys account page

Renders the page where the signed-in user names and registers a new passkey (the page script asks the WebAuthn endpoints of the security chain, POST /webauthn/register/options and POST /webauthn/register, never this operation) and sees the passkeys already registered, read only: renaming and deleting them is the bearer-protected REST API (/api/account/passkeys). Like the consent page it needs a session that satisfies the multi-factor policy of the account: a session that only presented the password of an account that still has to complete its second factor is sent to the second-factor page, so it can never register a passkey of its own. A request without a signed-in session is redirected to the sign-in page.


/account/passkeys

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: text/html" \
 "http://localhost:9000/account/passkeys"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PasskeysPageApi;

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

public class PasskeysPageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.PasskeysPageApi;

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

        try {
            'String' result = apiInstance.passkeysPage();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PasskeysPageApi#passkeysPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


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

// Renders the passkeys account page
[apiInstance passkeysPageWithCompletionHandler: 
              ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

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

namespace Example
{
    public class passkeysPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

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

            try {
                // Renders the passkeys account page
                'String' result = apiInstance.passkeysPage();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PasskeysPageApi.passkeysPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

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

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

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

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

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

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

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

try:
    # Renders the passkeys account page
    api_response = api_instance.passkeys_page()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PasskeysPageApi->passkeysPage: %s\n" % e)
extern crate PasskeysPageApi;

pub fn main() {

    let mut context = PasskeysPageApi::Context::default();
    let result = client.passkeysPage(&context).wait();

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

Scopes

Parameters

Responses


PhonePage

phonePage

Renders the phone account page

Renders the page where the signed-in user enrols, verifies and removes the phone number that receives one-time codes by SMS. It shows the verified phone, masked so that only its last digits are visible, or the form to enter a number; once a number was submitted it shows the form that asks for the code received by SMS. The forms post to POST /account/phone, POST /account/phone/verify and POST /account/phone/remove, with the CSRF token, and each answers by redirecting back here: the bearer-protected REST API (/api/account/phone) is for other clients, a browser page has a session, not a token. Like the passkeys page it needs a session that satisfies the multi-factor policy of the account. A request without a signed-in session is redirected to the sign-in page.


/account/phone

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: text/html" \
 "http://localhost:9000/account/phone?status=status_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PhonePageApi;

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

public class PhonePageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PhonePageApi apiInstance = new PhonePageApi();
        String status = status_example; // String | Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored.

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

final api_instance = DefaultApi();

final String status = new String(); // String | Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored.

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

import org.openapitools.client.api.PhonePageApi;

public class PhonePageApiExample {
    public static void main(String[] args) {
        PhonePageApi apiInstance = new PhonePageApi();
        String status = status_example; // String | Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored.

        try {
            'String' result = apiInstance.phonePage(status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PhonePageApi#phonePage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


// Create an instance of the API class
PhonePageApi *apiInstance = [[PhonePageApi alloc] init];
String *status = status_example; // Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored. (optional) (default to null)

// Renders the phone account page
[apiInstance phonePageWith:status
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

// Create an instance of the API class
var api = new IruruetaAuthServerPages.PhonePageApi()
var opts = {
  'status': status_example // {String} Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored.
};

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

namespace Example
{
    public class phonePageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PhonePageApi();
            var status = status_example;  // String | Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored. (optional)  (default to null)

            try {
                // Renders the phone account page
                'String' result = apiInstance.phonePage(status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PhonePageApi.phonePage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PhonePageApi();
$status = status_example; // String | Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored.

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

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PhonePageApi->new();
my $status = status_example; # String | Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored.

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

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PhonePageApi()
status = status_example # String | Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored. (optional) (default to null)

try:
    # Renders the phone account page
    api_response = api_instance.phone_page(status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PhonePageApi->phonePage: %s\n" % e)
extern crate PhonePageApi;

pub fn main() {
    let status = status_example; // String

    let mut context = PhonePageApi::Context::default();
    let result = client.phonePage(status, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
status
String
Outcome of the previous form post, so the page can tell it: pending (a code was sent, if the number can receive one), verified, removed, invalid-phone, country-not-allowed, invalid-code, rate-limited or step-up-required. Any other value is ignored.

Responses


removePhonePage

Removes the phone number from the page

Removes the verified phone and any pending verification (the same operation as DELETE /api/account/phone, for the session of a browser) and redirects to the page with status removed. While the account has a confirmed second factor the session must show a recent multi-factor sign-in, as the bearer token must for the REST API; otherwise nothing is removed and the redirect carries status step-up-required, which asks the user to sign in again.


/account/phone/remove

Usage and SDK Samples

curl -X POST \
 \
 "http://localhost:9000/account/phone/remove"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PhonePageApi;

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

public class PhonePageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

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

        try {
            apiInstance.removePhonePage();
        } catch (ApiException e) {
            System.err.println("Exception when calling PhonePageApi#removePhonePage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.PhonePageApi;

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

        try {
            apiInstance.removePhonePage();
        } catch (ApiException e) {
            System.err.println("Exception when calling PhonePageApi#removePhonePage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


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

// Removes the phone number from the page
[apiInstance removePhonePageWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

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

namespace Example
{
    public class removePhonePageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

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

            try {
                // Removes the phone number from the page
                apiInstance.removePhonePage();
            } catch (Exception e) {
                Debug.Print("Exception when calling PhonePageApi.removePhonePage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

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

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

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

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

eval {
    $api_instance->removePhonePage();
};
if ($@) {
    warn "Exception when calling PhonePageApi->removePhonePage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

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

try:
    # Removes the phone number from the page
    api_instance.remove_phone_page()
except ApiException as e:
    print("Exception when calling PhonePageApi->removePhonePage: %s\n" % e)
extern crate PhonePageApi;

pub fn main() {

    let mut context = PhonePageApi::Context::default();
    let result = client.removePhonePage(&context).wait();

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

Scopes

Parameters

Responses

Name Type Format Description
Location String The provider's sign-in, or the identities page.

startPhoneEnrolmentPage

Starts the enrolment of a phone number from the page

Sends a verification code by SMS to the number (the same operation as PUT /api/account/phone, for the session of a browser) and redirects to the page with status pending. The answer is the same whether or not the number already belongs to another account, so the page never reveals which numbers are registered. A number that is not valid or belongs to a country SMS messages are not sent to redirects with the status invalid-phone or country-not-allowed, and too many requests with rate-limited. While the account has a confirmed second factor (the new number would replace the verified one), the session must show a recent multi-factor sign-in, or the page is shown with the status step-up-required and nothing is sent.


/account/phone

Usage and SDK Samples

curl -X POST \
 \
 -H "Content-Type: application/x-www-form-urlencoded" \
 "http://localhost:9000/account/phone"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PhonePageApi;

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

public class PhonePageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PhonePageApi apiInstance = new PhonePageApi();
        String phone = phone_example; // String | The phone number, in international format (+34 600 111 222) or in the national one of the default region.

        try {
            apiInstance.startPhoneEnrolmentPage(phone);
        } catch (ApiException e) {
            System.err.println("Exception when calling PhonePageApi#startPhoneEnrolmentPage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String phone = new String(); // String | The phone number, in international format (+34 600 111 222) or in the national one of the default region.

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

import org.openapitools.client.api.PhonePageApi;

public class PhonePageApiExample {
    public static void main(String[] args) {
        PhonePageApi apiInstance = new PhonePageApi();
        String phone = phone_example; // String | The phone number, in international format (+34 600 111 222) or in the national one of the default region.

        try {
            apiInstance.startPhoneEnrolmentPage(phone);
        } catch (ApiException e) {
            System.err.println("Exception when calling PhonePageApi#startPhoneEnrolmentPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


// Create an instance of the API class
PhonePageApi *apiInstance = [[PhonePageApi alloc] init];
String *phone = phone_example; // The phone number, in international format (+34 600 111 222) or in the national one of the default region. (default to null)

// Starts the enrolment of a phone number from the page
[apiInstance startPhoneEnrolmentPageWith:phone
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

// Create an instance of the API class
var api = new IruruetaAuthServerPages.PhonePageApi()
var phone = phone_example; // {String} The phone number, in international format (+34 600 111 222) or in the national one of the default region.

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

namespace Example
{
    public class startPhoneEnrolmentPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PhonePageApi();
            var phone = phone_example;  // String | The phone number, in international format (+34 600 111 222) or in the national one of the default region. (default to null)

            try {
                // Starts the enrolment of a phone number from the page
                apiInstance.startPhoneEnrolmentPage(phone);
            } catch (Exception e) {
                Debug.Print("Exception when calling PhonePageApi.startPhoneEnrolmentPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PhonePageApi();
$phone = phone_example; // String | The phone number, in international format (+34 600 111 222) or in the national one of the default region.

try {
    $api_instance->startPhoneEnrolmentPage($phone);
} catch (Exception $e) {
    echo 'Exception when calling PhonePageApi->startPhoneEnrolmentPage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PhonePageApi;

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PhonePageApi->new();
my $phone = phone_example; # String | The phone number, in international format (+34 600 111 222) or in the national one of the default region.

eval {
    $api_instance->startPhoneEnrolmentPage(phone => $phone);
};
if ($@) {
    warn "Exception when calling PhonePageApi->startPhoneEnrolmentPage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PhonePageApi()
phone = phone_example # String | The phone number, in international format (+34 600 111 222) or in the national one of the default region. (default to null)

try:
    # Starts the enrolment of a phone number from the page
    api_instance.start_phone_enrolment_page(phone)
except ApiException as e:
    print("Exception when calling PhonePageApi->startPhoneEnrolmentPage: %s\n" % e)
extern crate PhonePageApi;

pub fn main() {
    let phone = phone_example; // String

    let mut context = PhonePageApi::Context::default();
    let result = client.startPhoneEnrolmentPage(phone, &context).wait();

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

Scopes

Parameters

Form parameters
Name Description
phone*
String
The phone number, in international format (+34 600 111 222) or in the national one of the default region.
Required

Responses

Name Type Format Description
Location String The provider's sign-in, or the identities page.

verifyPhonePage

Confirms the phone number from the page

Confirms the number with the code received by SMS (the same operation as POST /api/account/phone/verify, for the session of a browser) and redirects to the page with status verified. A wrong or expired code redirects with status invalid-code and counts as an attempt; too many requests redirect with rate-limited.


/account/phone/verify

Usage and SDK Samples

curl -X POST \
 \
 -H "Content-Type: application/x-www-form-urlencoded" \
 "http://localhost:9000/account/phone/verify"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PhonePageApi;

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

public class PhonePageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PhonePageApi apiInstance = new PhonePageApi();
        String code = code_example; // String | The numeric code received by SMS.

        try {
            apiInstance.verifyPhonePage(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling PhonePageApi#verifyPhonePage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String code = new String(); // String | The numeric code received by SMS.

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

import org.openapitools.client.api.PhonePageApi;

public class PhonePageApiExample {
    public static void main(String[] args) {
        PhonePageApi apiInstance = new PhonePageApi();
        String code = code_example; // String | The numeric code received by SMS.

        try {
            apiInstance.verifyPhonePage(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling PhonePageApi#verifyPhonePage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


// Create an instance of the API class
PhonePageApi *apiInstance = [[PhonePageApi alloc] init];
String *code = code_example; // The numeric code received by SMS. (default to null)

// Confirms the phone number from the page
[apiInstance verifyPhonePageWith:code
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

// Create an instance of the API class
var api = new IruruetaAuthServerPages.PhonePageApi()
var code = code_example; // {String} The numeric code received by SMS.

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

namespace Example
{
    public class verifyPhonePageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PhonePageApi();
            var code = code_example;  // String | The numeric code received by SMS. (default to null)

            try {
                // Confirms the phone number from the page
                apiInstance.verifyPhonePage(code);
            } catch (Exception e) {
                Debug.Print("Exception when calling PhonePageApi.verifyPhonePage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PhonePageApi();
$code = code_example; // String | The numeric code received by SMS.

try {
    $api_instance->verifyPhonePage($code);
} catch (Exception $e) {
    echo 'Exception when calling PhonePageApi->verifyPhonePage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PhonePageApi;

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PhonePageApi->new();
my $code = code_example; # String | The numeric code received by SMS.

eval {
    $api_instance->verifyPhonePage(code => $code);
};
if ($@) {
    warn "Exception when calling PhonePageApi->verifyPhonePage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PhonePageApi()
code = code_example # String | The numeric code received by SMS. (default to null)

try:
    # Confirms the phone number from the page
    api_instance.verify_phone_page(code)
except ApiException as e:
    print("Exception when calling PhonePageApi->verifyPhonePage: %s\n" % e)
extern crate PhonePageApi;

pub fn main() {
    let code = code_example; // String

    let mut context = PhonePageApi::Context::default();
    let result = client.verifyPhonePage(code, &context).wait();

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

Scopes

Parameters

Form parameters
Name Description
code*
String
The numeric code received by SMS.
Required

Responses

Name Type Format Description
Location String The provider's sign-in, or the identities page.

RecoveryCodesPage

recoveryCodesPage

Renders the recovery codes of a new authenticator app, once

Renders the recovery codes generated when the signed-in user enrolled an authenticator app on the second-factor page, which redirects here after the enrolment code is accepted. The codes are kept in the session only until this page is rendered, so a second request shows none. Its Continue link resumes the request the sign-in interrupted (typically /oauth2/authorize), or goes to the root when there is none. A request without a signed-in session is redirected to the sign-in page.


/login/second-factor/recovery-codes

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: text/html" \
 "http://localhost:9000/login/second-factor/recovery-codes"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecoveryCodesPageApi;

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

public class RecoveryCodesPageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.RecoveryCodesPageApi;

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

        try {
            'String' result = apiInstance.recoveryCodesPage();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecoveryCodesPageApi#recoveryCodesPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


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

// Renders the recovery codes of a new authenticator app, once
[apiInstance recoveryCodesPageWithCompletionHandler: 
              ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

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

namespace Example
{
    public class recoveryCodesPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

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

            try {
                // Renders the recovery codes of a new authenticator app, once
                'String' result = apiInstance.recoveryCodesPage();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecoveryCodesPageApi.recoveryCodesPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

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

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

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

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

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

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

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

try:
    # Renders the recovery codes of a new authenticator app, once
    api_response = api_instance.recovery_codes_page()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecoveryCodesPageApi->recoveryCodesPage: %s\n" % e)
extern crate RecoveryCodesPageApi;

pub fn main() {

    let mut context = RecoveryCodesPageApi::Context::default();
    let result = client.recoveryCodesPage(&context).wait();

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

Scopes

Parameters

Responses


SecondFactorPage

secondFactorPage

Renders the second-factor page

Renders the page a user who has signed in with a password is sent to when the request needs a second factor (each SecondFactorFragment bean contributes the form of one second factor, with the data it needs for the signed-in user). A user without a confirmed authenticator app gets its enrolment form instead: a new pending secret as a QR code and an otpauth URI, and the field of the first code. A user with one gets the forms of its code and of a recovery code, with a warning when three or fewer recovery codes are left. The forms post to the security chain (for the TOTP code, a recovery code or the enrolment code, POST /login/second-factor/totp), never to this operation; once the factor is verified the browser resumes the request that was interrupted (after an enrolment, it first goes to the recovery codes page). A request without a signed-in session is redirected to the sign-in page.


/login/second-factor

Usage and SDK Samples

curl -X GET \
 \
 -H "Accept: text/html" \
 "http://localhost:9000/login/second-factor?error=error_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SecondFactorPageApi;

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

public class SecondFactorPageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: session
        ApiKeyAuth session = (ApiKeyAuth) defaultClient.getAuthentication("session");
        session.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //session.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SecondFactorPageApi apiInstance = new SecondFactorPageApi();
        String error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close.

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

final api_instance = DefaultApi();

final String error = new String(); // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close.

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

import org.openapitools.client.api.SecondFactorPageApi;

public class SecondFactorPageApiExample {
    public static void main(String[] args) {
        SecondFactorPageApi apiInstance = new SecondFactorPageApi();
        String error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close.

        try {
            'String' result = apiInstance.secondFactorPage(error);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecondFactorPageApi#secondFactorPage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"JSESSIONID"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"JSESSIONID"];


// Create an instance of the API class
SecondFactorPageApi *apiInstance = [[SecondFactorPageApi alloc] init];
String *error = error_example; // Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close. (optional) (default to null)

// Renders the second-factor page
[apiInstance secondFactorPageWith:error
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var IruruetaAuthServerPages = require('irurueta_auth_server_pages');
var defaultClient = IruruetaAuthServerPages.ApiClient.instance;

// Configure API key authorization: session
var session = defaultClient.authentications['session'];
session.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//session.apiKeyPrefix['JSESSIONID'] = "Token";

// Create an instance of the API class
var api = new IruruetaAuthServerPages.SecondFactorPageApi()
var opts = {
  'error': error_example // {String} Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close.
};

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

namespace Example
{
    public class secondFactorPageExample
    {
        public void main()
        {
            // Configure API key authorization: session
            Configuration.Default.ApiKey.Add("JSESSIONID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("JSESSIONID", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SecondFactorPageApi();
            var error = error_example;  // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close. (optional)  (default to null)

            try {
                // Renders the second-factor page
                'String' result = apiInstance.secondFactorPage(error);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SecondFactorPageApi.secondFactorPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: session
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('JSESSIONID', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('JSESSIONID', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SecondFactorPageApi();
$error = error_example; // String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close.

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

# Configure API key authorization: session
$WWW::OPenAPIClient::Configuration::api_key->{'JSESSIONID'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'JSESSIONID'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SecondFactorPageApi->new();
my $error = error_example; # String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close.

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

# Configure API key authorization: session
openapi_client.configuration.api_key['JSESSIONID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['JSESSIONID'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SecondFactorPageApi()
error = error_example # String | Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close. (optional) (default to null)

try:
    # Renders the second-factor page
    api_response = api_instance.second_factor_page(error=error)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecondFactorPageApi->secondFactorPage: %s\n" % e)
extern crate SecondFactorPageApi;

pub fn main() {
    let error = error_example; // String

    let mut context = SecondFactorPageApi::Context::default();
    let result = client.secondFactorPage(error, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
error
String
Present (its value is ignored, usually empty) when the previous attempt failed; the page then shows the message of that failure, which never reveals whether the code was close.

Responses