Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-16535

OIDC client adapter doesn't work for Rest

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 26.1.1.Final
    • Security
    • Hide

      Make Rest request. 

       

      We tried both ways:

        A. Rest with basic authentication

        B. Rest with bearer token

      1. Authenticate to keycloak first and obtain a token
      2. Use Bearer.. as authentication header for Rest calls to aplication

      The response is always a redirect to login screen.

      Bearer only or autodetect bearer flags dont seem to have any effect.

       

      Expected: regular Rest response or 401/403 response code. NOT a redirect to login screen.

      Show
      Make Rest request.    We tried both ways:   A. Rest with basic authentication   B. Rest with bearer token Authenticate to keycloak first and obtain a token Use Bearer.. as authentication header for Rest calls to aplication The response is always a redirect to login screen. Bearer only or autodetect bearer flags dont seem to have any effect.   Expected: regular Rest response or 401/403 response code. NOT a redirect to login screen.
    • ---
    • ---

      Oidc connector works fine when used in regular browser application - the user is redirected to the Keycloak login screen and then to application once user logins.

      When using Rest, user is always redirected to login screen instead of giving 401/403 error. 

       

              fjuma1@redhat.com Farah Juma
              andrius.karpavicius Andrius Karpavicius (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: