TACTIC Open Source
Using TACTIC REST interface to get a login ticket - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: Using TACTIC REST interface to get a login ticket (/showthread.php?tid=118)

Pages: 1 2


RE: Using TACTIC REST interface to get a login ticket - listy - 12-12-2021

I was trying to Login with the Examples Celton provided, and getting this error:

--------------------------------------------------
From ExceptionLog.log
--------------------------------------------------
File "/home/apache/tactic/src/pyasm/web/app_server.py", line 130, in execute
self._get_display()
File "/home/apache/tactic/src/pyasm/web/app_server.py", line 742, in _get_display
web_app.get_display(widget)
File "/home/apache/tactic/src/pyasm/web/web_app.py", line 62, in get_display
widget = widget.get_display()
File "/home/apache/tactic_data/plugins/reactjs/check_auth/check_auth.py", line 25, in get_display
ticket_sobj = Ticket.get_by_valid_key(login_ticket)
File "/home/apache/tactic/src/pyasm/security/security.py", line 1296, in get_by_valid_key
search = Search("sthpw/ticket")
File "/home/apache/tactic/src/pyasm/search/search.py", line 160, in __init__
self.check_security()
File "/home/apache/tactic/src/pyasm/search/search.py", line 283, in check_security
raise Exception("Search Permission Denied [%s]" % search_type)

Search Permission Denied [sthpw/ticket]
--------------------------------------------------
error: 405 Search Permission Denied [sthpw/ticket]

Might be it's because guest access disabled?


RE: Using TACTIC REST interface to get a login ticket - remkonoteboom - 12-13-2021

We had done some work on the documentation for this, but I haven't put it in the open source yet. There is nothing unique about this API documentation that doesn't apply to Open Source TACTIC, except you should ignore <SITE> as your installation probably doesn't make use of this.

http://doc.southpawtech.com/doc/API/startup/quickstart_rest/

A lot of work was done in 4.8 to make TACTIC REST interface more standard using Bearer authorization format. You would be interested in the small "call_tactic" helper function that makes it easier to call REST calls to TACTIC.


RE: Using TACTIC REST interface to get a login ticket - listy - 12-13-2021

(12-13-2021, 08:32 PM)remkonoteboom Wrote: We had done some work on the documentation for this, but I haven't put it in the open source yet.  There is nothing unique about this API documentation that doesn't apply to Open Source TACTIC, except you should ignore <SITE> as your installation probably doesn't make use of this.

http://doc.southpawtech.com/doc/API/startup/quickstart_rest/

A lot of work was done in 4.8 to make TACTIC REST interface more standard using Bearer authorization format.  You would be interested in the small "call_tactic" helper function that makes it easier to call REST calls to TACTIC.
Oh Thanks!

Actually i had some issues with the examples because of "Sites"  Smile

I am in the middle of creating TACTIC+reactJS work with refine.dev
Everythng looks very promising, except, i don't know how to handle with tactic links like that http//my.site/tactic/about, http//my.site/tactic/error and etc, when i try to go directrly to those addresses i am getting 404 from tactic. Should i make custom url for every link?