Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7584

LOG OUT button does not work when OpenID Connect is used for authentication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.11.4, 1.12.1
    • 1.13.0
    • Core UI
    • CentOS Linux 7

    Description

      When nifi-1.11.4 is integrated with Okta OpenID Connect for authentication, 'LOG OUT' button on the front page does not work.  It does not log a user out properly without redirecting to the Logout Redirect URL.  

      When the button is clicked, the following message is displayed on the browser

      {"errorCode":"invalid_client","errorSummary":"Invalid value for 'client_id' parameter.","errorLink":"invalid_client","errorId":"oae_YfJRUHCQe-BqYnPw6opFg","errorCauses":[]}

      The button makes a GET request to the following address.

      https://{hostname}.okta.com/oauth2/v1/logout?post_logout_redirect_uri=https%3A%2F%2F{nifi server dns name}%3A{port number}%2Fnifi-api%2F..%2Fnifi

      According to Okta document https://developer.okta.com/blog/2020/03/27/spring-oidc-logout-options, the logout endpoint format should be as shown below:

      https://dev-123456.okta.com/oauth2/default/v1/logout?id_token_hint=<id-token>&post_logout_redirect_uri=http://localhost:8080/

       

      And it seems that post_logout_redirect_uri should be  "https://{nifi server dns name}:{port number}/nifi-api/access/oidc/logout"

       

       

       

      Attachments

        Activity

          People

            mtien Margot Tien
            wchang3378 W Chang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h 20m
                6h 20m