Project

General

Profile

Feature #28664

API middleware redirect to login page when error status is 401

Added by Ron Lavi 11 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

API middleware redirect to login page when error status is 401


Related issues

Related to Foreman - Bug #30086: move foremanUrl into ReactAppClosed

Associated revisions

Revision 3618f541 (diff)
Added by Ron Lavi 6 months ago

Fixes #28664 - support API middleware response callbacks (#7337)

  • Fixes #28664 - API middleware `handleError` param

the handleError callback will get called on the API request error.
the consumer won't need to wait until the component
will get updated by the store, and can invoke any method they want.

  • Fixes #28664 - API middleware `handleSuccess` param

History

#1 Updated by The Foreman Bot 11 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7337 added

#2 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 2.2.0 added

#3 Updated by Ron Lavi 6 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker 6 months ago

  • Related to Bug #30086: move foremanUrl into ReactApp added

#5 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added

Also available in: Atom PDF