Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-7501

Unable to edit Redirect URL in Admin Portal

    XMLWordPrintable

Details

    • Hide
      • Set a Product to be authenticated using OIDC
      • Go to the Application listing and select an application
      • In API Credentials try clicking in Edit Redirect URL
      • The message error "This content failed to load" is poped up
      Show
      Set a Product to be authenticated using OIDC Go to the Application listing and select an application In API Credentials try clicking in Edit Redirect URL The message error "This content failed to load" is poped up
    • Hide

      Use the API endpoint Application Update:

      PUT    /admin/api/accounts/{account_id}/applications/{id}.xml
      

      and pass the redirect_url parameter there, as in the following example:

      curl -X PUT "https://tenant-name.3scale.net/admin/api/accounts/<ACCOUNT_ID>/applications/<APPLICATION_ID>.xml" -d 'access_token=<ACCESS_TOKEN>&redirect_url=https%3A%2F%2Fexample.org%2Ftest'
      
      Show
      Use the API endpoint Application Update: PUT /admin/api/accounts/{account_id}/applications/{id}.xml and pass the redirect_url parameter there, as in the following example: curl -X PUT "https: //tenant-name.3scale.net/admin/api/accounts/<ACCOUNT_ID>/applications/<APPLICATION_ID>.xml" -d 'access_token=<ACCESS_TOKEN>&redirect_url=https%3A%2F%2Fexample.org%2Ftest'

    Description

      Using the 3scale SaaS Admin Portal, for products configured to use OIDC authentication when we try to edit the Redirect URL under "/p/admin/applications/<application_id>" we are getting the error "This content failed to load".

      Checking the system log we can see the following errors:

      AbstractController::ActionNotFound (The action 'edit_redirect_url' could not be found for Provider::Admin::ApplicationsController):
      {:exception=>{:class=>AbstractController::ActionNotFound, :message=>"The action 'edit_redirect_url' could not be found for Provider::Admin::ApplicationsController", :backtrace=>["/home/bender/system_production/shared/bundle/ruby/2.4.0/gems/actionpack-5.0.7.2/lib/abstract_controller/base.rb:121:in `process'", "/home/bender/system_production/shared/bundle/ruby/2.4.0/gems/actionview-5.0.7.2/lib/action_view/rendering.rb:30:in `process'", "/home/bender/system_production/shared/bundle/ruby/2.4.0/gems/actionpack-5.0.7.2/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bender/system_production/shared/bundle/ruby/2.4.0/gems/actionpack-5.0.7.2/lib/action_controller/metal.rb:262:in `dispatch'"]}, :parameters=>{}}

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            gpereira@redhat.com Gustavo Pereira
            Jose Miguel Gallas Olmedo Jose Miguel Gallas Olmedo
            Carlo Palmieri Carlo Palmieri (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: