[seam-issues] [JBoss JIRA] (SEAMREST-54) Support Authentication
Dominik Obermaier (Created) (JIRA)
jira-events at lists.jboss.org
Thu Nov 17 04:59:40 EST 2011
Support Authentication
----------------------
Key: SEAMREST-54
URL: https://issues.jboss.org/browse/SEAMREST-54
Project: Seam REST
Issue Type: Feature Request
Components: Client
Affects Versions: 3.1.0.Beta4
Reporter: Dominik Obermaier
At the moment it is not possible to use authentication with the @RestClient Annotation.
A possible API could look like this (example with constructor injection):
@Inject
public RESTService(@RestClient(value = "#{restConfiguration}", username = "#{myUsername}, password = "#{myPassword}) RestQueryService restQueryService) {
...
}
Of course the defaults for username and password should be set to "".
Another approach could be to use an @Credential annotation in conjunction with @RestClient. An API could look like this:
@Inject
public RESTService(@RestClient(value = "#{restConfiguration}") @Credential(username = "#{myUsername}, password = "#{myPassword} RestQueryService restQueryService) {
...
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list