Single Sign On URL
Last updated
Was this helpful?
Was this helpful?
curl --location --request GET '/api/v4/sso_url?product=string&customer_account_code=string' \
--header 'Accept: application/json' \
--header 'Date: string' \
--header 'Authorization: string'var request = require('request');
var options = {
method: 'GET',
url: '/api/v4/sso_url?product=string&customer_account_code=string',
headers: {
'Accept': 'application/json',
'Date': 'string',
'Authorization': 'string'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Date", "string");
myHeaders.append("Authorization", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("/api/v4/sso_url?product=string&customer_account_code=string", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));import requests
url = "/api/v4/sso_url?product=string&customer_account_code=string"
headers = {
"Accept": "application/json",
"Date": "string",
"Authorization": "string"
}
response = requests.get(url, headers=headers)
print(response.text)require "uri"
require "net/http"
url = URI("/api/v4/sso_url?product=string&customer_account_code=string")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Date"] = "string"
request["Authorization"] = "string"
response = http.request(request)
puts response.read_body{
"url": "https://auth.licensespring.com/realms/user-portal/protocol/openid-connect/auth?scope=openid&response_type=code&client_id=license-users&redirect_uri=http://localhost&kc_idp_hint=foo-bar",
"openid_configuration": {
"issuer": "https://auth.licensespring.com/realms/user-portal",
"end_session_endpoint": "https://auth.licensespring.com/realms/user-portal/protocol/openid-connect/logout",
"token_endpoint": "https://auth.licensespring.com/realms/user-portal/protocol/openid-connect/token",
"introspection_endpoint": "https://auth.licensespring.com/realms/user-portal/protocol/openid-connect/token/introspect"
}
}type SSOURLRequestParams = {
product: string,
customer_account_code: string,
response_type?: 'code' | 'token' | undefined
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"product": { "type": "string" },
"customer_account_code": { "type": "string" },
"response_type": { "type": "string", "enum": ["code", "token"] }
},
"required": ["product", "customer_account_code"],
"additionalProperties": false
}type SSOURLResponseBody = {
url: string,
openid_configuration: {
issuer: string,
end_session_endpoint: string,
token_endpoint: string,
introspection_endpoint: string,
}
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"url": { "type": "string" },
"openid_configuration": {
"type": "object",
"properties": {
"issuer": { "type": "string" },
"end_session_endpoint": { "type": "string" },
"token_endpoint": { "type": "string" },
"introspection_endpoint": { "type": "string" }
}
}
},
"required": ["url"],
"additionalProperties": false
}{
status: number,
code: string,
message: string
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": { "type": "number" },
"code": { "type": "string" },
"message": { "type": "string" }
},
"required": [
"status",
"code",
"message"
],
"additionalProperties": false
}