{% extends "base.html" %} {% block title %}OAuth Clients - NanoIDP{% endblock %} {% block content %}

OAuth Clients

New Client
{% for entry in clients %} {% set client = entry.client %} {% else %} {% endfor %}
Client ID Description Secret (masked) Actions
{{ client.client_id }} {% if entry.origin == 'runtime' %} runtime {% elif entry.origin == 'cimd' %} cimd {% endif %} {{ client.description or '-' }} {% if client.is_public %} public (none) {% elif client.client_secret %} {# A fixed mask, never a part of the secret and never its length: this page is a read, and management_secret gates mutations only. #} •••••••• {% else %} - {% endif %} {% if entry.origin == 'runtime' %} managed through /api/runtime {% elif entry.origin == 'cimd' %}
{% elif entry.origin == 'declared' %}
{% if not client.is_public %}
{% endif %}
{% endif %}
No OAuth clients configured
Usage Example

Request a token using client credentials:

curl -X POST '{{ request.url_root }}token' \
  -u 'CLIENT_ID:CLIENT_SECRET' \
  -d 'grant_type=password&username=USER&password=PASS'
{% endblock %}