Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

How to get securitySchemes for oauth_2_0 #98

Open
vipulvaghela86 opened this issue Mar 6, 2022 · 1 comment
Open

How to get securitySchemes for oauth_2_0 #98

vipulvaghela86 opened this issue Mar 6, 2022 · 1 comment

Comments

@vipulvaghela86
Copy link

Library version used
0.5.0

Language library used with
Java

My RAML file content like below
securitySchemes:
oauth_2_0:
description: |
Dropbox supports OAuth 2.0 for authenticating all API requests.
type: OAuth 2.0
describedBy:
headers:
Authorization:
description: |
Used to send a valid OAuth 2 access token. Do not use
with the "access_token" query string parameter.
type: string

I want to get details of headers described in securitiesSchemes, how can I ?
I'm trying to read like this but seems no more information on this securities object.

WebApi api = (WebApi) webModel.encodes();
Map<String, Object> root = new LinkedHashMap<>();

    **List<SecurityRequirement> securities =  api.security();**
@uip-robot-zz
Copy link

Git2Gus App is installed but the .git2gus/config.json doesn't exist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants