Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0.Beta4
    • Fix Version/s: None
    • Component/s: Client

      Description

      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)

      { ... }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dobermai Dominik Obermaier
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: