spring-security-oauth2-1.0.xsd 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns="http://www.springframework.org/schema/security/oauth2" xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns:beans="http://www.springframework.org/schema/beans" targetNamespace="http://www.springframework.org/schema/security/oauth2"
  4. elementFormDefault="qualified" attributeFormDefault="unqualified">
  5. <xs:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.1.xsd" />
  6. <xs:element name="rest-template">
  7. <xs:annotation>
  8. <xs:documentation>
  9. Creates an OAuth2RestTemplate with all the pieces needed to connect to a remote resource from
  10. a web
  11. application. Injects request and session-scoped beans into the template, so can only be
  12. used in the context of a web
  13. request.
  14. </xs:documentation>
  15. </xs:annotation>
  16. <xs:complexType>
  17. <xs:complexContent>
  18. <xs:extension base="beans:identifiedType">
  19. <xs:sequence>
  20. <xs:element ref="beans:description" minOccurs="0" />
  21. <xs:choice minOccurs="0" maxOccurs="unbounded">
  22. <xs:element ref="beans:property" />
  23. </xs:choice>
  24. </xs:sequence>
  25. <xs:attribute name="resource">
  26. <xs:annotation>
  27. <xs:documentation>
  28. The OAuth2ProtectedResourceDetails governing the configuration of this client. Mandatory.
  29. </xs:documentation>
  30. </xs:annotation>
  31. </xs:attribute>
  32. <xs:attribute name="access-token-provider" type="xs:string">
  33. <xs:annotation>
  34. <xs:documentation>
  35. The reference to the bean that manages access token acquisition. Optional (defaults to a chain
  36. including common grant types from the spec).
  37. </xs:documentation>
  38. </xs:annotation>
  39. </xs:attribute>
  40. </xs:extension>
  41. </xs:complexContent>
  42. </xs:complexType>
  43. </xs:element>
  44. <xs:element name="authorization-server">
  45. <xs:annotation>
  46. <xs:documentation>
  47. Specifies that the oauth 2 authorization and token
  48. endpoints should be created in the application
  49. context. These are
  50. implemented as regular Spring @Controller beans, so as long as the
  51. default Spring MVC set up in
  52. present in the application
  53. the endpoints should work (at /oauth/authorization and /oauth/token by
  54. default).
  55. </xs:documentation>
  56. </xs:annotation>
  57. <xs:complexType>
  58. <xs:sequence>
  59. <xs:element name="authorization-code" minOccurs="0" maxOccurs="1">
  60. <xs:annotation>
  61. <xs:documentation>
  62. The configuration of the authorization code
  63. mechanism. This
  64. mechanism enables a way for clients to
  65. obtain an
  66. access token by obtaining an authorization code.
  67. </xs:documentation>
  68. </xs:annotation>
  69. <xs:complexType>
  70. <xs:attribute name="disabled" type="xs:boolean">
  71. <xs:annotation>
  72. <xs:documentation>
  73. Whether to disable the authorization code
  74. mechanism.
  75. </xs:documentation>
  76. </xs:annotation>
  77. </xs:attribute>
  78. <xs:attribute name="authorization-code-services-ref" type="xs:string">
  79. <xs:annotation>
  80. <xs:documentation>
  81. The reference to the bean that defines the
  82. authorization code
  83. services. Default value is an
  84. instance of
  85. "org.springframework.security.oauth2.provider.authorization_code.InMemoryAuthorizationCodeServices".
  86. </xs:documentation>
  87. </xs:annotation>
  88. </xs:attribute>
  89. </xs:complexType>
  90. </xs:element>
  91. <xs:element name="implicit" minOccurs="0" maxOccurs="1">
  92. <xs:annotation>
  93. <xs:documentation>
  94. The configuration of the client credentials
  95. grant type.
  96. </xs:documentation>
  97. </xs:annotation>
  98. <xs:complexType>
  99. <xs:attribute name="disabled" type="xs:boolean">
  100. <xs:annotation>
  101. <xs:documentation>
  102. Whether to disable the implicit grant type
  103. </xs:documentation>
  104. </xs:annotation>
  105. </xs:attribute>
  106. </xs:complexType>
  107. </xs:element>
  108. <xs:element name="refresh-token" minOccurs="0" maxOccurs="1">
  109. <xs:annotation>
  110. <xs:documentation>
  111. The configuration of the refresh token grant
  112. type.
  113. </xs:documentation>
  114. </xs:annotation>
  115. <xs:complexType>
  116. <xs:attribute name="disabled" type="xs:boolean">
  117. <xs:annotation>
  118. <xs:documentation>
  119. Whether to disable the refresh token grant
  120. type
  121. </xs:documentation>
  122. </xs:annotation>
  123. </xs:attribute>
  124. </xs:complexType>
  125. </xs:element>
  126. <xs:element name="client-credentials" minOccurs="0" maxOccurs="1">
  127. <xs:annotation>
  128. <xs:documentation>
  129. The configuration of the client credentials
  130. grant type.
  131. </xs:documentation>
  132. </xs:annotation>
  133. <xs:complexType>
  134. <xs:attribute name="disabled" type="xs:boolean">
  135. <xs:annotation>
  136. <xs:documentation>
  137. Whether to disable the refresh token grant
  138. type
  139. </xs:documentation>
  140. </xs:annotation>
  141. </xs:attribute>
  142. </xs:complexType>
  143. </xs:element>
  144. <xs:element name="password" minOccurs="0" maxOccurs="1">
  145. <xs:annotation>
  146. <xs:documentation>
  147. The configuration of the resource owner password
  148. grant type.
  149. </xs:documentation>
  150. </xs:annotation>
  151. <xs:complexType>
  152. <xs:attribute name="disabled" type="xs:boolean">
  153. <xs:annotation>
  154. <xs:documentation>
  155. Whether to disable the refresh token grant
  156. type
  157. </xs:documentation>
  158. </xs:annotation>
  159. </xs:attribute>
  160. <xs:attribute name="authentication-manager-ref" type="xs:string">
  161. <xs:annotation>
  162. <xs:documentation>
  163. A reference to an authentication manager that
  164. can be used to
  165. authenticate the resource owner
  166. </xs:documentation>
  167. </xs:annotation>
  168. </xs:attribute>
  169. </xs:complexType>
  170. </xs:element>
  171. <xs:element name="custom-grant" minOccurs="0" maxOccurs="unbounded">
  172. <xs:annotation>
  173. <xs:documentation>
  174. The configuration of your custom grant type.
  175. </xs:documentation>
  176. </xs:annotation>
  177. <xs:complexType>
  178. <xs:attribute name="disabled" type="xs:boolean">
  179. <xs:annotation>
  180. <xs:documentation>
  181. Whether to disable this grant
  182. type
  183. </xs:documentation>
  184. </xs:annotation>
  185. </xs:attribute>
  186. <xs:attribute name="token-granter-ref" type="xs:string" use="required">
  187. <xs:annotation>
  188. <xs:documentation>
  189. A reference to your token granter
  190. </xs:documentation>
  191. </xs:annotation>
  192. </xs:attribute>
  193. </xs:complexType>
  194. </xs:element>
  195. </xs:sequence>
  196. <xs:attribute name="client-details-service-ref" type="xs:string">
  197. <xs:annotation>
  198. <xs:documentation>
  199. The reference to the bean that defines the client
  200. details service.
  201. </xs:documentation>
  202. </xs:annotation>
  203. </xs:attribute>
  204. <xs:attribute name="token-endpoint-url" type="xs:string">
  205. <xs:annotation>
  206. <xs:documentation>
  207. The URL at which a request for an access token
  208. will be serviced.
  209. Default value: "/oauth/token"
  210. </xs:documentation>
  211. </xs:annotation>
  212. </xs:attribute>
  213. <xs:attribute name="authorization-endpoint-url" type="xs:string">
  214. <xs:annotation>
  215. <xs:documentation>
  216. The URL at which a user is redirected for
  217. authorization. Default
  218. value: "/oauth/authorize"
  219. </xs:documentation>
  220. </xs:annotation>
  221. </xs:attribute>
  222. <!--the following attributes are less used -->
  223. <xs:attribute name="token-granter-ref" type="xs:string">
  224. <xs:annotation>
  225. <xs:documentation>
  226. The reference to the bean that defines the
  227. granter of different oauth
  228. token types.
  229. </xs:documentation>
  230. </xs:annotation>
  231. </xs:attribute>
  232. <xs:attribute name="implicit-grant-service-ref" type="xs:string">
  233. <xs:annotation>
  234. <xs:documentation>
  235. The reference to the bean that defines the
  236. implicit grant service.
  237. </xs:documentation>
  238. </xs:annotation>
  239. </xs:attribute>
  240. <xs:attribute name="token-services-ref" type="xs:string">
  241. <xs:annotation>
  242. <xs:documentation>
  243. The reference to the bean that defines the token
  244. services. Default
  245. value is an instance of
  246. "org.springframework.security.oauth2.provider.token.DefaultTokenServices".
  247. </xs:documentation>
  248. </xs:annotation>
  249. </xs:attribute>
  250. <xs:attribute name="authorization-request-manager-ref" type="xs:string">
  251. <xs:annotation>
  252. <xs:documentation>
  253. The reference to the bean that defines the manager for
  254. authorization requests from the input
  255. parameters (e.g. request parameters).
  256. Default
  257. value is an
  258. instance of
  259. "org.springframework.security.oauth2.provider.token.DefaultAuthorizationRequestManager".
  260. </xs:documentation>
  261. </xs:annotation>
  262. </xs:attribute>
  263. <xs:attribute name="user-approval-handler-ref" type="xs:string">
  264. <xs:annotation>
  265. <xs:documentation>
  266. Reference to a bean that handles user approval decisions. Using this strategy servers can
  267. selectively skip the approval process depending on decisions in the past or on the type of client.
  268. </xs:documentation>
  269. </xs:annotation>
  270. </xs:attribute>
  271. <xs:attribute name="user-approval-page" type="xs:string">
  272. <xs:annotation>
  273. <xs:documentation>
  274. The URL of the page that handles the user
  275. approval form (if needed, depending on the grant type).
  276. The default is "forward:/oauth/confirm_access" which is not handled
  277. by the authorization endpoint, so normally you
  278. will have to supply a handler
  279. for this path.
  280. </xs:documentation>
  281. </xs:annotation>
  282. </xs:attribute>
  283. <xs:attribute name="error-page" type="xs:string">
  284. <xs:annotation>
  285. <xs:documentation>
  286. The URL of the page that handles errors (default forward:/oauth/error).
  287. </xs:documentation>
  288. </xs:annotation>
  289. </xs:attribute>
  290. <xs:attribute name="approval-parameter-name" type="xs:string">
  291. <xs:annotation>
  292. <xs:documentation>
  293. The name of the form parameter that is used to
  294. indicate user
  295. approval of the client
  296. authentication
  297. request.
  298. Default value: "user_oauth_approval".
  299. </xs:documentation>
  300. </xs:annotation>
  301. </xs:attribute>
  302. <xs:attribute name="redirect-resolver-ref" type="xs:string">
  303. <xs:annotation>
  304. <xs:documentation>
  305. The reference to the bean that defines the
  306. redirect resolver, used
  307. during the user
  308. authorization.
  309. Default
  310. value is an instance of
  311. "org.springframework.security.oauth2.provider.authorization_code.DefaultRedirectResolver".
  312. </xs:documentation>
  313. </xs:annotation>
  314. </xs:attribute>
  315. </xs:complexType>
  316. </xs:element>
  317. <xs:element name="resource-server">
  318. <xs:annotation>
  319. <xs:documentation>
  320. Specifies that there are oauth 2 protected resources in
  321. the application context. This element
  322. has an
  323. id which is the bean id of the filter created. The filter
  324. should be added to the Spring Security filter chain at
  325. position before="PRE_AUTH_FILTER"
  326. </xs:documentation>
  327. </xs:annotation>
  328. <xs:complexType>
  329. <xs:complexContent>
  330. <xs:extension base="beans:identifiedType">
  331. <xs:attribute name="resource-id" type="xs:string">
  332. <xs:annotation>
  333. <xs:documentation>
  334. The resource id that is protected by this filter
  335. if any. If empty or
  336. absent then all resource ids
  337. are allowed,
  338. otherwise
  339. only tokens which are granted to a client that contains
  340. this reosurce
  341. id will be legal.
  342. </xs:documentation>
  343. </xs:annotation>
  344. </xs:attribute>
  345. <xs:attribute name="token-services-ref" type="xs:string">
  346. <xs:annotation>
  347. <xs:documentation>
  348. The reference to the bean that defines the token
  349. services. Default
  350. value is an instance of
  351. "org.springframework.security.oauth2.provider.token.DefaultTokenServices".
  352. </xs:documentation>
  353. </xs:annotation>
  354. </xs:attribute>
  355. <xs:attribute name="entry-point-ref" type="xs:string">
  356. <xs:annotation>
  357. <xs:documentation>
  358. The reference to the bean that defines the entry point for failed authentications. Defaults to
  359. a vanilla
  360. org.springframework.security.oauth2.provider.error.OAuth2AuthenticationEntryPoint.
  361. </xs:documentation>
  362. </xs:annotation>
  363. </xs:attribute>
  364. <xs:attribute name="auth-details-source-ref" type="xs:string">
  365. <xs:annotation>
  366. <xs:documentation>
  367. The reference to the bean that defines the AuthenticationDetailsSource.
  368. </xs:documentation>
  369. </xs:annotation>
  370. </xs:attribute>
  371. </xs:extension>
  372. </xs:complexContent>
  373. </xs:complexType>
  374. </xs:element>
  375. <xs:element name="client-details-service">
  376. <xs:annotation>
  377. <xs:documentation>
  378. Default element that contains the definition of the
  379. OAuth clients that are
  380. allowed to access this
  381. service.
  382. </xs:documentation>
  383. </xs:annotation>
  384. <xs:complexType>
  385. <xs:complexContent>
  386. <xs:extension base="beans:identifiedType">
  387. <xs:choice minOccurs="0" maxOccurs="unbounded">
  388. <xs:element name="client">
  389. <xs:annotation>
  390. <xs:documentation>
  391. Definition of a client that can act on behalf
  392. of a user.
  393. </xs:documentation>
  394. </xs:annotation>
  395. <xs:complexType>
  396. <xs:attribute name="client-id" type="xs:string" use="required">
  397. <xs:annotation>
  398. <xs:documentation>
  399. The client id.
  400. </xs:documentation>
  401. </xs:annotation>
  402. </xs:attribute>
  403. <xs:attribute name="secret" type="xs:string">
  404. <xs:annotation>
  405. <xs:documentation>
  406. The client secret. If the secret is
  407. undefined or empty (the
  408. default) the client does
  409. not
  410. require a
  411. secret.
  412. </xs:documentation>
  413. </xs:annotation>
  414. </xs:attribute>
  415. <xs:attribute name="redirect-uri" type="xs:string">
  416. <xs:annotation>
  417. <xs:documentation>
  418. The re-direct URI(s) established during
  419. registration (optional, comma separated).
  420. </xs:documentation>
  421. </xs:annotation>
  422. </xs:attribute>
  423. <xs:attribute name="resource-ids" type="xs:string">
  424. <xs:annotation>
  425. <xs:documentation>
  426. The resource ids to which this client can be
  427. granted access
  428. (comma-separated). If missing or
  429. empty all
  430. resources are
  431. accessible (not recommended by the spec).
  432. </xs:documentation>
  433. </xs:annotation>
  434. </xs:attribute>
  435. <xs:attribute name="scope" type="xs:string">
  436. <xs:annotation>
  437. <xs:documentation>
  438. The scopes to which the client is limited
  439. (comma-separated). If
  440. scope is undefined or empty
  441. (the
  442. default) the client
  443. is not limited by scope, but in that case
  444. the authorization
  445. service must explicitly
  446. accept unlimited
  447. access by not
  448. specifying any scopes itself.
  449. </xs:documentation>
  450. </xs:annotation>
  451. </xs:attribute>
  452. <xs:attribute name="authorized-grant-types" type="xs:string">
  453. <xs:annotation>
  454. <xs:documentation>
  455. Grant types that are authorized for the
  456. client to use
  457. (comma-separated). Currently defined
  458. grant types
  459. include
  460. "authorization_code", "password", "assertion", and
  461. "refresh_token". Default value is
  462. "authorization_code,refresh_token".
  463. </xs:documentation>
  464. </xs:annotation>
  465. </xs:attribute>
  466. <xs:attribute name="authorities" type="xs:string">
  467. <xs:annotation>
  468. <xs:documentation>
  469. Authorities that are granted to the client
  470. (comma-separated). Distinct
  471. from the authorities
  472. granted to
  473. the user on behalf
  474. of whom the client is acting.
  475. </xs:documentation>
  476. </xs:annotation>
  477. </xs:attribute>
  478. <xs:attribute name="access-token-validity" type="xs:string">
  479. <xs:annotation>
  480. <xs:documentation>
  481. The access token validity period in seconds (optional). If unspecified a global default will
  482. be applied by the token services.
  483. </xs:documentation>
  484. </xs:annotation>
  485. </xs:attribute>
  486. <xs:attribute name="refresh-token-validity" type="xs:string">
  487. <xs:annotation>
  488. <xs:documentation>
  489. The refresh token validity period in seconds (optional). If unspecified a global default
  490. will
  491. be applied by the token services.
  492. </xs:documentation>
  493. </xs:annotation>
  494. </xs:attribute>
  495. </xs:complexType>
  496. </xs:element>
  497. </xs:choice>
  498. </xs:extension>
  499. </xs:complexContent>
  500. </xs:complexType>
  501. </xs:element>
  502. <xs:element name="expression-handler">
  503. <xs:annotation>
  504. <xs:documentation>
  505. Element for declaring and configuring an expression
  506. handler for oauth
  507. security expressions. See
  508. http://static.springsource.org/spring-security/site/docs/3.0.x/reference/el-access.html
  509. </xs:documentation>
  510. </xs:annotation>
  511. <xs:complexType>
  512. <xs:complexContent>
  513. <xs:extension base="beans:identifiedType" />
  514. </xs:complexContent>
  515. </xs:complexType>
  516. </xs:element>
  517. <xs:element name="web-expression-handler">
  518. <xs:annotation>
  519. <xs:documentation>
  520. Element for declaring and configuring an expression
  521. handler for oauth
  522. security expressions in http
  523. intercept urls. See
  524. http://static.springsource.org/spring-security/site/docs/3.0.x/reference/el-access.html
  525. </xs:documentation>
  526. </xs:annotation>
  527. <xs:complexType>
  528. <xs:complexContent>
  529. <xs:extension base="beans:identifiedType" />
  530. </xs:complexContent>
  531. </xs:complexType>
  532. </xs:element>
  533. <xs:element name="client">
  534. <xs:annotation>
  535. <xs:documentation>
  536. Creates the oauth 2 client filter be be added to the
  537. application security policy.
  538. </xs:documentation>
  539. </xs:annotation>
  540. <xs:complexType>
  541. <xs:complexContent>
  542. <xs:extension base="beans:identifiedType">
  543. <xs:attribute name="redirect-strategy-ref" type="xs:string">
  544. <xs:annotation>
  545. <xs:documentation>
  546. The reference to the bean that defines the
  547. redirect strategy, used when redirecting the user for
  548. access authorization. Default value is an instance of
  549. "org.springframework.security.web.DefaultRedirectStrategy".
  550. </xs:documentation>
  551. </xs:annotation>
  552. </xs:attribute>
  553. </xs:extension>
  554. </xs:complexContent>
  555. </xs:complexType>
  556. </xs:element>
  557. <xs:element name="resource">
  558. <xs:annotation>
  559. <xs:documentation>
  560. Definition of a remote resource that is protected via
  561. OAuth2 to which this client application wants
  562. access.
  563. </xs:documentation>
  564. </xs:annotation>
  565. <xs:complexType>
  566. <xs:complexContent>
  567. <xs:extension base="beans:identifiedType">
  568. <xs:attribute name="type" type="xs:string">
  569. <xs:annotation>
  570. <xs:documentation>
  571. The grant type. Currently defined grant types
  572. include
  573. "authorization_code", "password", and
  574. "assertion".
  575. Default value
  576. is "authorization_code".
  577. </xs:documentation>
  578. </xs:annotation>
  579. </xs:attribute>
  580. <xs:attribute name="client-id" type="xs:string" use="required">
  581. <xs:annotation>
  582. <xs:documentation>
  583. The client id. This is the id by which the
  584. resource server will
  585. identify this application.
  586. </xs:documentation>
  587. </xs:annotation>
  588. </xs:attribute>
  589. <xs:attribute name="access-token-uri" type="xs:string">
  590. <xs:annotation>
  591. <xs:documentation>
  592. The uri to where the access token may be
  593. obtained.
  594. </xs:documentation>
  595. </xs:annotation>
  596. </xs:attribute>
  597. <xs:attribute name="scope" type="xs:string">
  598. <xs:annotation>
  599. <xs:documentation>
  600. Comma-separted list of string specifying the
  601. scope of the access to the
  602. resource. By default,
  603. no
  604. scope will be
  605. specified.
  606. </xs:documentation>
  607. </xs:annotation>
  608. </xs:attribute>
  609. <xs:attribute name="client-secret" type="xs:string">
  610. <xs:annotation>
  611. <xs:documentation>
  612. The secret asssociated with the resource. By
  613. default, no secret
  614. will be supplied for access to
  615. the resource.
  616. </xs:documentation>
  617. </xs:annotation>
  618. </xs:attribute>
  619. <xs:attribute name="client-authentication-scheme" type="xs:string">
  620. <xs:annotation>
  621. <xs:documentation>
  622. The scheme that is used to pass the client
  623. secret. Suggested
  624. values: "header" and "form".
  625. Default:
  626. "header".
  627. See section 2.1 of the OAuth 2 spec.
  628. </xs:documentation>
  629. </xs:annotation>
  630. </xs:attribute>
  631. <xs:attribute name="user-authorization-uri" type="xs:string">
  632. <xs:annotation>
  633. <xs:documentation>
  634. The uri to which the user will be redirected if
  635. the user is ever
  636. needed to grant an authorization
  637. code.
  638. </xs:documentation>
  639. </xs:annotation>
  640. </xs:attribute>
  641. <xs:attribute name="authentication-scheme" default="header" type="xs:string">
  642. <xs:annotation>
  643. <xs:documentation>
  644. The method for bearing the token when accessing
  645. the resource.
  646. Default value is "header". See
  647. AuthenticationScheme enum for possible values.
  648. </xs:documentation>
  649. </xs:annotation>
  650. </xs:attribute>
  651. <xs:attribute name="token-name" type="xs:string" default="access_token">
  652. <xs:annotation>
  653. <xs:documentation>
  654. The name of the bearer token. The default is
  655. "access_token", which
  656. is according to the spec,
  657. but
  658. some providers
  659. (e.g. Facebook) don't conform to the spec.
  660. </xs:documentation>
  661. </xs:annotation>
  662. </xs:attribute>
  663. <xs:attribute name="pre-established-redirect-uri" type="xs:string">
  664. <xs:annotation>
  665. <xs:documentation>
  666. Some resource servers may require a
  667. pre-established URI to which
  668. they will redirect users after
  669. users
  670. authorize an access token.
  671. </xs:documentation>
  672. </xs:annotation>
  673. </xs:attribute>
  674. <xs:attribute name="use-current-uri" type="xs:string">
  675. <xs:annotation>
  676. <xs:documentation>
  677. Boolean flag indicating that the current URI should be used as a redirect (if available) rather
  678. than the
  679. registered redirect URI. Default is true.
  680. </xs:documentation>
  681. </xs:annotation>
  682. </xs:attribute>
  683. <xs:attribute name="username" type="xs:string">
  684. <xs:annotation>
  685. <xs:documentation>
  686. The username for authentication, required only when type is "password".
  687. </xs:documentation>
  688. </xs:annotation>
  689. </xs:attribute>
  690. <xs:attribute name="password" type="xs:string">
  691. <xs:annotation>
  692. <xs:documentation>
  693. The password for authentication, required only when type is "password".
  694. </xs:documentation>
  695. </xs:annotation>
  696. </xs:attribute>
  697. </xs:extension>
  698. </xs:complexContent>
  699. </xs:complexType>
  700. </xs:element>
  701. </xs:schema>