13
A
回答
12
從https://github.com/raml-org/raml-spec/blob/master/08_security.md#declaration:
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 queryParameters: access_token: description: | Used to send a valid OAuth 2 access token. Do not use together with the "Authorization" header type: string responses: 401: description: | Bad or expired token. This can happen if the user or Dropbox revoked or expired an access token. To fix, you should re- authenticate the user. 403: description: | Bad OAuth request (wrong consumer key, bad nonce, expired timestamp...). Unfortunately, re-authenticating the user won't help here. settings: authorizationUri: https://www.dropbox.com/1/oauth2/authorize accessTokenUri: https://api.dropbox.com/1/oauth2/token authorizationGrants: [ code, token ]
+0
這是爲我raml 0.8標準我想。什麼是有效的聲明看起來像1.0? –
相關問題
- 1. 腎錯構瘤API驗證
- 2. 如何重複使用JSON在腎錯構瘤例如
- 3. Dropwizard +腎錯構瘤 - >空資源
- 4. 腎錯構瘤的語法 - 嵌套的API資源的名字 - 花括號
- 5. 如何使用的oauth2
- 6. PHP oauth2如何使用refresh_token
- 7. 如何使用oauth2-server-laravel
- 8. 使用瘤胃創建跟蹤文件
- 9. 你如何在鏢1.0中使用OAuth2?
- 10. 如何在phalcon中使用Oauth2?
- 11. 如何創建使用OAuth2的用戶?
- 12. 如何在.net中使用ServiceAccount使用Google OAuth2?
- 13. 如何爲使用oauth2的網站構建Python爬蟲
- 14. 用oauth2使用軟件包「golang.org/x/oauth2」
- 15. 在使用Oauth2 tweepy中使用api.update_status方法的錯誤
- 16. 如何正確使用passport-oauth2使用Twitter Oauth2身份驗證服務?
- 17. 如何使用OAuth2進行CLI?
- 18. 如何使用HttpURLConnection發出oauth2請求
- 19. Spring Security OAuth2 - 如何使用OAuth2Authentication對象?
- 20. WSO2 OAuth2:如何使用AppAuth註銷iOS
- 21. Laravel 5.1:如何使用oauth2-server-laravel?
- 22. 如何從iOS使用yammer的oauth2?
- 23. Ruby on Rails:如何使用OAuth2 :: AccessToken.post?
- 24. 如何使用的oauth2在bulkloader
- 25. 如何使用OpenId執行OAuth2
- 26. 使用oauth2與python
- 27. 錯誤:使用omniauth-google-oauth2時redirect_uri_mismatch
- 28. 如何使用的OAuth2令牌使用YouTube API的Python
- 29. 如何使用redis來使用spring-security-oauth2持久化令牌
- 30. 在iframe應用中使用oauth2
爲什麼這個封閉? – Nikos
關閉原因突出顯示在上方:您的問題是脫離主題,因爲它請求非現場資源。 – njuffa
@njuffa我問一個解決方案,我得到了一個受歡迎的答案!這不是這個網站的目的? – Nikos