Skip to content

Latest commit

 

History

History
218 lines (155 loc) · 3.66 KB

File metadata and controls

218 lines (155 loc) · 3.66 KB
title language_tabs language_clients toc_footers includes search highlight_theme headingLevel
Oidc Service v1.0.0
javascript
JavaScript
javascript--nodejs
Node.JS
javascript
request
javascript--nodejs
false
darkula
2

Oidc Service v1.0.0

Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

Oidc microservice

Base URLs:

Authentication

  • HTTP Authentication, scheme: bearer

OidcController

OidcController.confirm

Code samples

fetch('/interaction/{uid}/confirm',
{
  method: 'POST'

})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');

fetch('/interaction/{uid}/confirm',
{
  method: 'POST'

})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

POST /interaction/{uid}/confirm

Responses

Status Meaning Description Schema
200 OK Return value of OidcController.confirm None
This operation does not require authentication

OidcController.login

Code samples

const inputBody = '{}';
const headers = {
  'Content-Type':'application/x-www-form-urlencoded'
};

fetch('/interaction/{uid}/login',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {};
const headers = {
  'Content-Type':'application/x-www-form-urlencoded'
};

fetch('/interaction/{uid}/login',
{
  method: 'POST',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

POST /interaction/{uid}/login

Body parameter

{}

Parameters

Name In Type Required Description
body body object false none

Responses

Status Meaning Description Schema
200 OK Return value of OidcController.login None
This operation does not require authentication

OidcController.interaction

Code samples

const headers = {
  'Accept':'type'
};

fetch('/interaction/{uid}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');

const headers = {
  'Accept':'type'
};

fetch('/interaction/{uid}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

GET /interaction/{uid}

Example responses

Responses

Status Meaning Description Schema
200 OK login page None

Response Schema

This operation does not require authentication