<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.umiacs.umd.edu/adapt/index.php?action=history&amp;feed=atom&amp;title=Pawn2%3ACall_Flow</id>
	<title>Pawn2:Call Flow - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.umiacs.umd.edu/adapt/index.php?action=history&amp;feed=atom&amp;title=Pawn2%3ACall_Flow"/>
	<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/adapt/index.php?title=Pawn2:Call_Flow&amp;action=history"/>
	<updated>2026-04-05T20:07:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://wiki.umiacs.umd.edu/adapt/index.php?title=Pawn2:Call_Flow&amp;diff=2359&amp;oldid=prev</id>
		<title>Toaster at 16:39, 24 February 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/adapt/index.php?title=Pawn2:Call_Flow&amp;diff=2359&amp;oldid=prev"/>
		<updated>2009-02-24T16:39:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Overview of basic call flow and authentication for server-side calls.&lt;br /&gt;
&lt;br /&gt;
All GWT services must implement AuthorizationCheckRemoteServiceServlet. This handles checking to ensure that a client is authorized to use a call. Services must also implement the getAuthorizationEngine() call if their methods require any type of authorization beyond a client being logged in to PAWN. &lt;br /&gt;
&lt;br /&gt;
=Basic Call Flow=&lt;br /&gt;
&lt;br /&gt;
# Service is instantiated, constructor may call setContextRequired(false) if methods in the service do NOT require an authenticated user. Currently only the login service has this set. (default: required)&lt;br /&gt;
# AuthorizationCheckRemoteServiceServlet.processCall decodes client request&lt;br /&gt;
## Logging MDC, method name and session set&lt;br /&gt;
## extract AuthenticationContext from session&lt;br /&gt;
## if AuthenticationContext is not present and context is required throw AccessDeniedException to client&lt;br /&gt;
## if getAuthorizationEngine returns non-null ServiceAuthorication, call checkAuthorization with context, method, and method parameters. ServiceAuthorication will throw an AccessDeniedException or IllegalArgumentException if a client is not authorized or passes bad data.&lt;br /&gt;
## call method with parameters. Any results and expected exceptions are encoded and returned to client. Declared exceptions should be logged by client prior to throwing.&lt;br /&gt;
# Any unexpected/runtime exception is logged and thrown back to the client.&lt;/div&gt;</summary>
		<author><name>Toaster</name></author>
	</entry>
</feed>