mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
32 lines
1.0 KiB
Modula-2
32 lines
1.0 KiB
Modula-2
{{= data.tags.section }}
|
|
|
|
# Authentication
|
|
|
|
{{ for (var s in data.api.components.securitySchemes) { }}
|
|
{{ var sd = data.api.components.securitySchemes[s]; }}
|
|
{{? sd.type == 'apiKey' }}
|
|
* App Key ({{=s}})
|
|
- Parameter Name: **{{=sd.name}}**, in: {{=sd.in}}. {{=sd.description || ''}}
|
|
{{?}}
|
|
{{? sd.type == 'http'}}
|
|
- HTTP Authentication, scheme: {{=sd.scheme}}{{? sd.description }}<br/>{{=sd.description}}{{?}}
|
|
{{?}}
|
|
{{? sd.type == 'oauth2'}}
|
|
- oAuth2 authentication. {{=sd.description || ''}}
|
|
{{ for (var f in sd.flows) { }}
|
|
{{ var flow = sd.flows[f]; }}
|
|
- Flow: {{=f}}
|
|
{{? flow.authorizationUrl}} - Authorization URL = [{{=flow.authorizationUrl}}]({{=flow.authorizationUrl}}){{?}}
|
|
{{? flow.tokenUrl}} - Token URL = [{{=flow.tokenUrl}}]({{=flow.tokenUrl}}){{?}}
|
|
{{? flow.scopes && Object.keys(flow.scopes).length}}
|
|
|Scope|Scope Description|
|
|
|---|---|
|
|
{{ for (var sc in flow.scopes) { }}|{{=sc}}|{{=data.utils.join(flow.scopes[sc])}}|
|
|
{{ } /* of scopes */ }}
|
|
{{?}}
|
|
{{ } /* of flows */ }}
|
|
{{?}}
|
|
{{ } /* of securitySchemes */ }}
|
|
|
|
{{= data.tags.endSection }}
|