Rick Elrod
4820b084c1
Prettier DRF pages when using trusted proxy ( #15579 ) ( #6717 )
...
This is a rather hacky, but fixes the DRF pages when going through a
trusted proxy.
Notably: This is meant to primarily fix the DRF pages on downstream
builds while leaving the upstream to function as-is.
When using a trusted proxy, the DRF login and logout endpoints now
redirect to the Platform login page (which respects ?next) and logout
endpoint respectively.
The CSS and JS is inlined because the trusted proxy might only proxy
to /api/ and not /static/ which is a harder problem to solve.
Signed-off-by: Rick Elrod <rick@elrod.me >
2024-10-16 13:58:01 -04:00
TVo
587f0ecf98
Updated the api file to reflect 2024 date ( #15369 )
2024-07-16 19:58:55 +00:00
PabloHiro
d9b81731e9
Fix: broken reference to API url
2024-03-27 20:37:53 +01:00
Christian Adams
40d18e95c2
Explicitly turn off autocomplete for API login form ( #14232 )
2023-07-26 15:33:26 -04:00
Bill Nottingham
a98ae2a87d
Point REST API favicon at the one the UI uses
2021-07-01 16:10:33 -04:00
Bill Nottingham
c8cf28f266
Assorted renaming and string changes
2021-04-30 14:32:05 -04:00
Jeff Bradberry
78ccf3c674
Fix the broken paths to the favicon and logo in the API browser
2021-02-19 14:56:26 -05:00
Jeff Bradberry
beb1dd5ae7
Replace use of the deprecated staticfiles template library with static
2019-07-12 15:11:21 -04:00
Jeff Bradberry
3f5c018c8a
Replace the load of the staticfiles template library with static
...
The staticfiles library will be going away before too long.
2019-06-12 14:12:59 -04:00
Jeff Bradberry
12e3d0aebf
Remove rest_framework/base.html
2019-06-12 14:12:59 -04:00
Jeff Bradberry
ba4ad191fc
Add the csrf token to window.drf
...
In the same manner as the current version of base.html from DRF. This
is part 2 of the removal of base.html.
2019-06-12 14:12:59 -04:00
Jeff Bradberry
34d76422d6
Move the endpoint deprecation warning out of base.html
...
This is part 1 of the removal of awx/templates/rest_framework/base.html.
2019-06-12 14:12:59 -04:00
Bill Nottingham
faae55d085
Bump date.
2019-05-15 16:58:59 -04:00
Ryan Petrello
4159a9b6af
make deprecation warnings at /api/ much more obvious
2019-04-18 12:32:49 -04:00
Ryan Petrello
1d09c6b25a
make the API browser direct you to the proper location post-login
2018-07-09 13:58:38 -04:00
AlanCoding
c5d49be2c1
avoid error in templating error
2018-05-04 08:39:09 -04:00
adamscmRH
310f37dd37
clears authtoken & add PAT
2018-02-22 15:18:12 -05:00
Aaron Tan
1c2621cd60
Implement session-based and OAuth 2 authentications
...
Relates #21 . Please see acceptance docs for feature details.
Signed-off-by: Aaron Tan <jangsutsr@gmail.com >
2018-02-22 15:18:12 -05:00
Wayne Witzel III
96904968d8
Fix migration issues, tests, and templates
2017-11-09 17:29:48 -05:00
Matthew Jones
c7a85d9738
Mass rename from ansible_(awx|tower) -> (awx|tower)
2017-07-26 13:33:26 -04:00
Bill Nottingham
bd55669423
Merge pull request #7250 from wenottingham/po-tay-to-po-tah-to
...
Fix header logo usage in API template.
2017-07-21 14:46:13 -04:00
Jared Tabor
c74b0df447
fix for api logo name
2017-07-21 11:37:35 -07:00
Bill Nottingham
ae85ce6320
Fix logo usage in API header page
2017-07-21 14:27:14 -04:00
Bill Nottingham
e14932f74a
Remove old HA redirect template.
2017-06-30 16:39:05 -04:00
Ryan Petrello
95ea370e5e
add API versioning for /api/v2/
2017-03-30 15:11:12 -04:00
Bill Nottingham
5f4dcfe8b4
say goodbye to 2016
2017-01-13 12:44:07 -05:00
sundeep-co-in
78a8ce9479
django i18n
2016-10-18 18:10:39 +05:30
Chris Church
ab0fd8ddb1
Escape content of browsable API response.
2016-07-02 01:41:28 -04:00
AlanCoding
2d38a582ec
short Tower version docs link
2016-05-05 09:08:40 -04:00
AlanCoding
59ed24e2c2
make template docs link dynamic wrt version
2016-05-05 09:08:40 -04:00
Ken Hoes
3991016ebe
Removed logos from footer in api browser
2016-04-20 15:13:38 -04:00
Ken Hoes
792150f033
Updated logos and branding
2016-04-20 14:57:50 -04:00
Chris Church
ce5989ba31
Update browsable API styling based on UI feedback.
2016-02-12 00:07:15 -05:00
Chris Church
b08a2d1d88
Update default error pages.
2016-02-02 23:00:07 -05:00
Chris Church
60224cdbe4
Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling.
2016-02-02 17:48:04 -05:00
Matthew Jones
9dd0c7ae1f
Fix api static location references for api browser
2015-10-09 14:26:00 -04:00
Chris Church
f7b8d510dc
Implement support for ad hoc commands.
2015-03-30 13:04:19 -04:00
Luke Sneeringer
efee35bf70
Fix redirect.
2014-12-17 12:29:58 -06:00
Luke Sneeringer
9de1dc31f9
Identify the master by hostname.
2014-12-09 09:50:18 -06:00
Matthew Jones
c106ba7bee
enable autoescaping of content in the DRF template
2014-10-24 13:55:13 -04:00
Luke Sneeringer
1ae333ca1d
HA redirection.
2014-10-20 08:04:16 -05:00
Chris Church
78b5378b57
AC-1235 Speed up JS for inventory script view in browsable API.
2014-05-08 11:37:29 -04:00
Chris Church
2c319cc986
Update title for browsabl API to Ansible Tower, return dated version for development/nightly builds.
2014-04-02 00:16:48 -04:00
Chris Church
86599cf1e3
Add API resource for unified job stdout with HTML output of ANSI color codes.
2014-04-01 20:15:43 -04:00
Chris Church
352197c5d2
Removed admin support (no longer used or maintained).
2014-03-28 22:04:26 -04:00
Chris Church
16d9af6945
Updated browseable API footer text/links.
2014-02-27 09:25:46 -05:00
Chris Church
188d7b41bb
AC-939 Update browsable API button colors.
2014-01-27 15:48:38 -05:00
Chris Church
b6543be0cf
AC-939 Update browsable REST API branding to Tower.
2014-01-23 05:22:55 -05:00
Chris Church
d3ced7896f
AC-760 Update footer for browsable REST API.
2014-01-09 14:06:56 -05:00
Chris Church
d8423a3342
Update third party packages.
2014-01-02 15:09:48 -05:00